Enum google_api_proto::google::ads::googleads::v14::errors::setting_error_enum::SettingError
source · #[repr(i32)]pub enum SettingError {
Show 14 variants
Unspecified = 0,
Unknown = 1,
SettingTypeIsNotAvailable = 3,
SettingTypeIsNotCompatibleWithCampaign = 4,
TargetingSettingContainsInvalidCriterionTypeGroup = 5,
TargetingSettingDemographicCriterionTypeGroupsMustBeSetToTargetAll = 6,
TargetingSettingCannotChangeTargetAllToFalseForDemographicCriterionTypeGroup = 7,
DynamicSearchAdsSettingAtLeastOneFeedIdMustBePresent = 8,
DynamicSearchAdsSettingContainsInvalidDomainName = 9,
DynamicSearchAdsSettingContainsSubdomainName = 10,
DynamicSearchAdsSettingContainsInvalidLanguageCode = 11,
TargetAllIsNotAllowedForPlacementInSearchCampaign = 12,
SettingValueNotCompatibleWithCampaign = 20,
BidOnlyIsNotAllowedToBeModifiedWithCustomerMatchTargeting = 21,
}
Expand description
Enum describing possible setting errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
SettingTypeIsNotAvailable = 3
The campaign setting is not available for this Google Ads account.
SettingTypeIsNotCompatibleWithCampaign = 4
The setting is not compatible with the campaign.
TargetingSettingContainsInvalidCriterionTypeGroup = 5
The supplied TargetingSetting contains an invalid CriterionTypeGroup. See CriterionTypeGroup documentation for CriterionTypeGroups allowed in Campaign or AdGroup TargetingSettings.
TargetingSettingDemographicCriterionTypeGroupsMustBeSetToTargetAll = 6
TargetingSetting must not explicitly set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT, INCOME_RANGE) to false (it’s okay to not set them at all, in which case the system will set them to true automatically).
TargetingSettingCannotChangeTargetAllToFalseForDemographicCriterionTypeGroup = 7
TargetingSetting cannot change any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT, INCOME_RANGE) from true to false.
DynamicSearchAdsSettingAtLeastOneFeedIdMustBePresent = 8
At least one feed id should be present.
DynamicSearchAdsSettingContainsInvalidDomainName = 9
The supplied DynamicSearchAdsSetting contains an invalid domain name.
DynamicSearchAdsSettingContainsSubdomainName = 10
The supplied DynamicSearchAdsSetting contains a subdomain name.
DynamicSearchAdsSettingContainsInvalidLanguageCode = 11
The supplied DynamicSearchAdsSetting contains an invalid language code.
TargetAllIsNotAllowedForPlacementInSearchCampaign = 12
TargetingSettings in search campaigns should not have CriterionTypeGroup.PLACEMENT set to targetAll.
SettingValueNotCompatibleWithCampaign = 20
The setting value is not compatible with the campaign type.
BidOnlyIsNotAllowedToBeModifiedWithCustomerMatchTargeting = 21
Switching from observation setting to targeting setting is not allowed for Customer Match lists. See https://support.google.com/google-ads/answer/6299717.
Implementations§
source§impl SettingError
impl SettingError
source§impl SettingError
impl SettingError
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 SettingError
impl Clone for SettingError
source§fn clone(&self) -> SettingError
fn clone(&self) -> SettingError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SettingError
impl Debug for SettingError
source§impl Default for SettingError
impl Default for SettingError
source§fn default() -> SettingError
fn default() -> SettingError
source§impl From<SettingError> for i32
impl From<SettingError> for i32
source§fn from(value: SettingError) -> i32
fn from(value: SettingError) -> i32
source§impl Hash for SettingError
impl Hash for SettingError
source§impl Ord for SettingError
impl Ord for SettingError
source§fn cmp(&self, other: &SettingError) -> Ordering
fn cmp(&self, other: &SettingError) -> 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 SettingError
impl PartialEq for SettingError
source§fn eq(&self, other: &SettingError) -> bool
fn eq(&self, other: &SettingError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SettingError
impl PartialOrd for SettingError
source§fn partial_cmp(&self, other: &SettingError) -> Option<Ordering>
fn partial_cmp(&self, other: &SettingError) -> 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 SettingError
impl TryFrom<i32> for SettingError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<SettingError, DecodeError>
fn try_from(value: i32) -> Result<SettingError, DecodeError>
impl Copy for SettingError
impl Eq for SettingError
impl StructuralPartialEq for SettingError
Auto Trait Implementations§
impl Freeze for SettingError
impl RefUnwindSafe for SettingError
impl Send for SettingError
impl Sync for SettingError
impl Unpin for SettingError
impl UnwindSafe for SettingError
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