Enum google_api_proto::google::ads::googleads::v15::errors::campaign_criterion_error_enum::CampaignCriterionError
source · #[repr(i32)]pub enum CampaignCriterionError {
Show 27 variants
Unspecified = 0,
Unknown = 1,
ConcreteTypeRequired = 2,
InvalidPlacementUrl = 3,
CannotExcludeCriteriaType = 4,
CannotSetStatusForCriteriaType = 5,
CannotSetStatusForExcludedCriteria = 6,
CannotTargetAndExclude = 7,
TooManyOperations = 8,
OperatorNotSupportedForCriterionType = 9,
ShoppingCampaignSalesCountryNotSupportedForSalesChannel = 10,
CannotAddExistingField = 11,
CannotUpdateNegativeCriterion = 12,
CannotSetNegativeKeywordThemeConstantCriterion = 13,
InvalidKeywordThemeConstant = 14,
MissingKeywordThemeConstantOrFreeFormKeywordTheme = 15,
CannotTargetBothProximityAndLocationCriteriaForSmartCampaign = 16,
CannotTargetMultipleProximityCriteriaForSmartCampaign = 17,
LocationNotLaunchedForLocalServicesCampaign = 18,
LocationInvalidForLocalServicesCampaign = 19,
CannotTargetCountryForLocalServicesCampaign = 20,
LocationNotInHomeCountryForLocalServicesCampaign = 21,
CannotAddOrRemoveLocationForLocalServicesCampaign = 22,
AtLeastOnePositiveLocationRequiredForLocalServicesCampaign = 23,
AtLeastOneLocalServiceIdCriterionRequiredForLocalServicesCampaign = 24,
LocalServiceIdNotFoundForCategory = 25,
CannotAttachBrandListToNonQualifiedSearchCampaign = 26,
}
Expand description
Enum describing possible campaign criterion errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
ConcreteTypeRequired = 2
Concrete type of criterion (keyword v.s. placement) is required for CREATE and UPDATE operations.
InvalidPlacementUrl = 3
Invalid placement URL.
CannotExcludeCriteriaType = 4
Criteria type can not be excluded for the campaign by the customer. like AOL account type cannot target site type criteria
CannotSetStatusForCriteriaType = 5
Cannot set the campaign criterion status for this criteria type.
CannotSetStatusForExcludedCriteria = 6
Cannot set the campaign criterion status for an excluded criteria.
CannotTargetAndExclude = 7
Cannot target and exclude the same criterion.
TooManyOperations = 8
The mutate contained too many operations.
OperatorNotSupportedForCriterionType = 9
This operator cannot be applied to a criterion of this type.
ShoppingCampaignSalesCountryNotSupportedForSalesChannel = 10
The Shopping campaign sales country is not supported for ProductSalesChannel targeting.
CannotAddExistingField = 11
The existing field can’t be updated with CREATE operation. It can be updated with UPDATE operation only.
CannotUpdateNegativeCriterion = 12
Negative criteria are immutable, so updates are not allowed.
CannotSetNegativeKeywordThemeConstantCriterion = 13
Only free form names are allowed for negative Smart campaign keyword theme.
InvalidKeywordThemeConstant = 14
Invalid Smart campaign keyword theme constant criterion.
MissingKeywordThemeConstantOrFreeFormKeywordTheme = 15
A Smart campaign keyword theme constant or free-form Smart campaign keyword theme is required.
CannotTargetBothProximityAndLocationCriteriaForSmartCampaign = 16
A Smart campaign may not target proximity and location criteria simultaneously.
CannotTargetMultipleProximityCriteriaForSmartCampaign = 17
A Smart campaign may not target multiple proximity criteria.
LocationNotLaunchedForLocalServicesCampaign = 18
Location is not launched for Local Services Campaigns.
LocationInvalidForLocalServicesCampaign = 19
A Local Services campaign may not target certain criteria types.
CannotTargetCountryForLocalServicesCampaign = 20
Country locations are not supported for Local Services campaign.
LocationNotInHomeCountryForLocalServicesCampaign = 21
Location is not within the home country of Local Services campaign.
CannotAddOrRemoveLocationForLocalServicesCampaign = 22
Local Services profile does not exist for a particular Local Services campaign.
AtLeastOnePositiveLocationRequiredForLocalServicesCampaign = 23
Local Services campaign must have at least one target location.
AtLeastOneLocalServiceIdCriterionRequiredForLocalServicesCampaign = 24
At least one positive local service ID criterion is required for a Local Services campaign.
LocalServiceIdNotFoundForCategory = 25
Local service ID is not found under selected categories in local services campaign setting.
CannotAttachBrandListToNonQualifiedSearchCampaign = 26
For search advertising channel, brand lists can only be applied to exclusive targeting, broad match campaigns for inclusive targeting or PMax generated campaigns.
Implementations§
source§impl CampaignCriterionError
impl CampaignCriterionError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of CampaignCriterionError
.
sourcepub fn from_i32(value: i32) -> Option<CampaignCriterionError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CampaignCriterionError>
Converts an i32
to a CampaignCriterionError
, or None
if value
is not a valid variant.
source§impl CampaignCriterionError
impl CampaignCriterionError
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 CampaignCriterionError
impl Clone for CampaignCriterionError
source§fn clone(&self) -> CampaignCriterionError
fn clone(&self) -> CampaignCriterionError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignCriterionError
impl Debug for CampaignCriterionError
source§impl Default for CampaignCriterionError
impl Default for CampaignCriterionError
source§fn default() -> CampaignCriterionError
fn default() -> CampaignCriterionError
source§impl From<CampaignCriterionError> for i32
impl From<CampaignCriterionError> for i32
source§fn from(value: CampaignCriterionError) -> i32
fn from(value: CampaignCriterionError) -> i32
source§impl Hash for CampaignCriterionError
impl Hash for CampaignCriterionError
source§impl Ord for CampaignCriterionError
impl Ord for CampaignCriterionError
source§fn cmp(&self, other: &CampaignCriterionError) -> Ordering
fn cmp(&self, other: &CampaignCriterionError) -> 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 CampaignCriterionError
impl PartialEq for CampaignCriterionError
source§fn eq(&self, other: &CampaignCriterionError) -> bool
fn eq(&self, other: &CampaignCriterionError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CampaignCriterionError
impl PartialOrd for CampaignCriterionError
source§fn partial_cmp(&self, other: &CampaignCriterionError) -> Option<Ordering>
fn partial_cmp(&self, other: &CampaignCriterionError) -> 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 CampaignCriterionError
impl TryFrom<i32> for CampaignCriterionError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CampaignCriterionError, DecodeError>
fn try_from(value: i32) -> Result<CampaignCriterionError, DecodeError>
impl Copy for CampaignCriterionError
impl Eq for CampaignCriterionError
impl StructuralPartialEq for CampaignCriterionError
Auto Trait Implementations§
impl Freeze for CampaignCriterionError
impl RefUnwindSafe for CampaignCriterionError
impl Send for CampaignCriterionError
impl Sync for CampaignCriterionError
impl Unpin for CampaignCriterionError
impl UnwindSafe for CampaignCriterionError
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