Enum google_api_proto::google::ads::googleads::v16::errors::recommendation_error_enum::RecommendationError
source · #[repr(i32)]pub enum RecommendationError {
Show 21 variants
Unspecified = 0,
Unknown = 1,
BudgetAmountTooSmall = 2,
BudgetAmountTooLarge = 3,
InvalidBudgetAmount = 4,
PolicyError = 5,
InvalidBidAmount = 6,
AdgroupKeywordLimit = 7,
RecommendationAlreadyApplied = 8,
RecommendationInvalidated = 9,
TooManyOperations = 10,
NoOperations = 11,
DifferentTypesNotSupported = 12,
DuplicateResourceName = 13,
RecommendationAlreadyDismissed = 14,
InvalidApplyRequest = 15,
RecommendationTypeApplyNotSupported = 17,
InvalidMultiplier = 18,
AdvertisingChannelTypeGenerateNotSupported = 19,
RecommendationTypeGenerateNotSupported = 20,
RecommendationTypesCannotBeEmpty = 21,
}
Expand description
Enum describing possible errors from applying a recommendation.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
BudgetAmountTooSmall = 2
The specified budget amount is too low for example, lower than minimum currency unit or lower than ad group minimum cost-per-click.
BudgetAmountTooLarge = 3
The specified budget amount is too large.
InvalidBudgetAmount = 4
The specified budget amount is not a valid amount, for example, not a multiple of minimum currency unit.
PolicyError = 5
The specified keyword or ad violates ad policy.
InvalidBidAmount = 6
The specified bid amount is not valid, for example, too many fractional digits, or negative amount.
AdgroupKeywordLimit = 7
The number of keywords in ad group have reached the maximum allowed.
RecommendationAlreadyApplied = 8
The recommendation requested to apply has already been applied.
RecommendationInvalidated = 9
The recommendation requested to apply has been invalidated.
TooManyOperations = 10
The number of operations in a single request exceeds the maximum allowed.
NoOperations = 11
There are no operations in the request.
DifferentTypesNotSupported = 12
Operations with multiple recommendation types are not supported when partial failure mode is not enabled.
DuplicateResourceName = 13
Request contains multiple operations with the same resource_name.
RecommendationAlreadyDismissed = 14
The recommendation requested to dismiss has already been dismissed.
InvalidApplyRequest = 15
The recommendation apply request was malformed and invalid.
RecommendationTypeApplyNotSupported = 17
The type of recommendation requested to apply is not supported.
InvalidMultiplier = 18
The target multiplier specified is invalid.
AdvertisingChannelTypeGenerateNotSupported = 19
The passed in advertising_channel_type is not supported.
RecommendationTypeGenerateNotSupported = 20
The passed in recommendation_type is not supported.
RecommendationTypesCannotBeEmpty = 21
One or more recommendation_types need to be passed into the generate recommendations request.
Implementations§
source§impl RecommendationError
impl RecommendationError
sourcepub fn from_i32(value: i32) -> Option<RecommendationError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<RecommendationError>
Converts an i32
to a RecommendationError
, or None
if value
is not a valid variant.
source§impl RecommendationError
impl RecommendationError
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 RecommendationError
impl Clone for RecommendationError
source§fn clone(&self) -> RecommendationError
fn clone(&self) -> RecommendationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationError
impl Debug for RecommendationError
source§impl Default for RecommendationError
impl Default for RecommendationError
source§fn default() -> RecommendationError
fn default() -> RecommendationError
source§impl From<RecommendationError> for i32
impl From<RecommendationError> for i32
source§fn from(value: RecommendationError) -> i32
fn from(value: RecommendationError) -> i32
source§impl Hash for RecommendationError
impl Hash for RecommendationError
source§impl Ord for RecommendationError
impl Ord for RecommendationError
source§fn cmp(&self, other: &RecommendationError) -> Ordering
fn cmp(&self, other: &RecommendationError) -> 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 RecommendationError
impl PartialEq for RecommendationError
source§fn eq(&self, other: &RecommendationError) -> bool
fn eq(&self, other: &RecommendationError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RecommendationError
impl PartialOrd for RecommendationError
source§fn partial_cmp(&self, other: &RecommendationError) -> Option<Ordering>
fn partial_cmp(&self, other: &RecommendationError) -> 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 RecommendationError
impl TryFrom<i32> for RecommendationError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<RecommendationError, DecodeError>
fn try_from(value: i32) -> Result<RecommendationError, DecodeError>
impl Copy for RecommendationError
impl Eq for RecommendationError
impl StructuralPartialEq for RecommendationError
Auto Trait Implementations§
impl Freeze for RecommendationError
impl RefUnwindSafe for RecommendationError
impl Send for RecommendationError
impl Sync for RecommendationError
impl Unpin for RecommendationError
impl UnwindSafe for RecommendationError
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