Enum google_api_proto::google::ads::googleads::v16::errors::ad_group_ad_error_enum::AdGroupAdError
source · #[repr(i32)]pub enum AdGroupAdError {
Show 13 variants
Unspecified = 0,
Unknown = 1,
AdGroupAdLabelDoesNotExist = 2,
AdGroupAdLabelAlreadyExists = 3,
AdNotUnderAdgroup = 4,
CannotOperateOnRemovedAdgroupad = 5,
CannotCreateDeprecatedAds = 6,
CannotCreateTextAds = 7,
EmptyField = 8,
ResourceReferencedInMultipleOps = 9,
AdTypeCannotBePaused = 10,
AdTypeCannotBeRemoved = 11,
CannotUpdateDeprecatedAds = 12,
}
Expand description
Enum describing possible ad group ad errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
AdGroupAdLabelDoesNotExist = 2
No link found between the adgroup ad and the label.
AdGroupAdLabelAlreadyExists = 3
The label has already been attached to the adgroup ad.
AdNotUnderAdgroup = 4
The specified ad was not found in the adgroup
CannotOperateOnRemovedAdgroupad = 5
Removed ads may not be modified
CannotCreateDeprecatedAds = 6
An ad of this type is deprecated and cannot be created. Only deletions are permitted.
CannotCreateTextAds = 7
Text ads are deprecated and cannot be created. Use expanded text ads instead.
EmptyField = 8
A required field was not specified or is an empty string.
ResourceReferencedInMultipleOps = 9
An ad may only be modified once per call
AdTypeCannotBePaused = 10
AdGroupAds with the given ad type cannot be paused.
AdTypeCannotBeRemoved = 11
AdGroupAds with the given ad type cannot be removed.
CannotUpdateDeprecatedAds = 12
An ad of this type is deprecated and cannot be updated. Only removals are permitted.
Implementations§
source§impl AdGroupAdError
impl AdGroupAdError
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 AdGroupAdError
impl Clone for AdGroupAdError
source§fn clone(&self) -> AdGroupAdError
fn clone(&self) -> AdGroupAdError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AdGroupAdError
impl Debug for AdGroupAdError
source§impl Default for AdGroupAdError
impl Default for AdGroupAdError
source§fn default() -> AdGroupAdError
fn default() -> AdGroupAdError
source§impl From<AdGroupAdError> for i32
impl From<AdGroupAdError> for i32
source§fn from(value: AdGroupAdError) -> i32
fn from(value: AdGroupAdError) -> i32
source§impl Hash for AdGroupAdError
impl Hash for AdGroupAdError
source§impl Ord for AdGroupAdError
impl Ord for AdGroupAdError
source§fn cmp(&self, other: &AdGroupAdError) -> Ordering
fn cmp(&self, other: &AdGroupAdError) -> 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 AdGroupAdError
impl PartialEq for AdGroupAdError
source§fn eq(&self, other: &AdGroupAdError) -> bool
fn eq(&self, other: &AdGroupAdError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AdGroupAdError
impl PartialOrd for AdGroupAdError
source§fn partial_cmp(&self, other: &AdGroupAdError) -> Option<Ordering>
fn partial_cmp(&self, other: &AdGroupAdError) -> 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 AdGroupAdError
impl TryFrom<i32> for AdGroupAdError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AdGroupAdError, DecodeError>
fn try_from(value: i32) -> Result<AdGroupAdError, DecodeError>
impl Copy for AdGroupAdError
impl Eq for AdGroupAdError
impl StructuralPartialEq for AdGroupAdError
Auto Trait Implementations§
impl Freeze for AdGroupAdError
impl RefUnwindSafe for AdGroupAdError
impl Send for AdGroupAdError
impl Sync for AdGroupAdError
impl Unpin for AdGroupAdError
impl UnwindSafe for AdGroupAdError
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