Enum google_api_proto::google::ads::googleads::v16::errors::customer_lifecycle_goal_error_enum::CustomerLifecycleGoalError
source · #[repr(i32)]pub enum CustomerLifecycleGoalError {
Unspecified = 0,
Unknown = 1,
CustomerAcquisitionValueMissing = 2,
CustomerAcquisitionInvalidValue = 3,
CustomerAcquisitionInvalidHighLifetimeValue = 4,
CustomerAcquisitionValueCannotBeCleared = 5,
CustomerAcquisitionHighLifetimeValueCannotBeCleared = 6,
InvalidExistingUserList = 7,
InvalidHighLifetimeValueUserList = 8,
}
Expand description
Enum describing possible customer lifecycle goal errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
CustomerAcquisitionValueMissing = 2
CustomerLifecycleGoal.customer_acquisition_goal_value_settings.value must be set.
CustomerAcquisitionInvalidValue = 3
CustomerLifecycleGoal.customer_acquisition_goal_value_settings.value must be no less than 0.01.
CustomerAcquisitionInvalidHighLifetimeValue = 4
CustomerLifecycleGoal.customer_acquisition_goal_value_settings.high_lifetime_value must be no less than 0.01. Also, to set this field, CustomerLifecycleGoal.customer_acquisition_goal_value_settings.value must also be present, and high_lifetime_value must be greater than value.
CustomerAcquisitionValueCannotBeCleared = 5
CustomerLifecycleGoal.customer_acquisition_goal_value_settings.value cannot be cleared. This value would have no effect as long as none of your campaigns adopt the customer acquisitiong goal.
CustomerAcquisitionHighLifetimeValueCannotBeCleared = 6
CustomerLifecycleGoal.customer_acquisition_goal_value_settings.high_lifetime_value cannot be cleared. This value would have no effect as long as none of your campaigns adopt the high value optimization of customer acquisitiong goal.
InvalidExistingUserList = 7
Found invalid value in CustomerLifecycleGoal.lifecycle_goal_customer_definition_settings.existing_user_lists. The userlist must be accessible, active and belong to one of the following types: CRM_BASED, RULE_BASED, REMARKETING.
InvalidHighLifetimeValueUserList = 8
Found invalid value in CustomerLifecycleGoal.lifecycle_goal_customer_definition_settings.high_lifetime_value_user_lists. The userlist must be accessible, active and belong to one of the following types: CRM_BASED, RULE_BASED, REMARKETING.
Implementations§
source§impl CustomerLifecycleGoalError
impl CustomerLifecycleGoalError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of CustomerLifecycleGoalError
.
sourcepub fn from_i32(value: i32) -> Option<CustomerLifecycleGoalError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CustomerLifecycleGoalError>
Converts an i32
to a CustomerLifecycleGoalError
, or None
if value
is not a valid variant.
source§impl CustomerLifecycleGoalError
impl CustomerLifecycleGoalError
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for CustomerLifecycleGoalError
impl Clone for CustomerLifecycleGoalError
source§fn clone(&self) -> CustomerLifecycleGoalError
fn clone(&self) -> CustomerLifecycleGoalError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomerLifecycleGoalError
impl Debug for CustomerLifecycleGoalError
source§impl Default for CustomerLifecycleGoalError
impl Default for CustomerLifecycleGoalError
source§fn default() -> CustomerLifecycleGoalError
fn default() -> CustomerLifecycleGoalError
source§impl From<CustomerLifecycleGoalError> for i32
impl From<CustomerLifecycleGoalError> for i32
source§fn from(value: CustomerLifecycleGoalError) -> i32
fn from(value: CustomerLifecycleGoalError) -> i32
source§impl Hash for CustomerLifecycleGoalError
impl Hash for CustomerLifecycleGoalError
source§impl Ord for CustomerLifecycleGoalError
impl Ord for CustomerLifecycleGoalError
source§fn cmp(&self, other: &CustomerLifecycleGoalError) -> Ordering
fn cmp(&self, other: &CustomerLifecycleGoalError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CustomerLifecycleGoalError
impl PartialEq for CustomerLifecycleGoalError
source§fn eq(&self, other: &CustomerLifecycleGoalError) -> bool
fn eq(&self, other: &CustomerLifecycleGoalError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CustomerLifecycleGoalError
impl PartialOrd for CustomerLifecycleGoalError
source§fn partial_cmp(&self, other: &CustomerLifecycleGoalError) -> Option<Ordering>
fn partial_cmp(&self, other: &CustomerLifecycleGoalError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for CustomerLifecycleGoalError
impl TryFrom<i32> for CustomerLifecycleGoalError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CustomerLifecycleGoalError, DecodeError>
fn try_from(value: i32) -> Result<CustomerLifecycleGoalError, DecodeError>
impl Copy for CustomerLifecycleGoalError
impl Eq for CustomerLifecycleGoalError
impl StructuralPartialEq for CustomerLifecycleGoalError
Auto Trait Implementations§
impl Freeze for CustomerLifecycleGoalError
impl RefUnwindSafe for CustomerLifecycleGoalError
impl Send for CustomerLifecycleGoalError
impl Sync for CustomerLifecycleGoalError
impl Unpin for CustomerLifecycleGoalError
impl UnwindSafe for CustomerLifecycleGoalError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request