Enum google_api_proto::google::ads::googleads::v14::errors::campaign_budget_error_enum::CampaignBudgetError
source · #[repr(i32)]pub enum CampaignBudgetError {
Show 21 variants
Unspecified = 0,
Unknown = 1,
CampaignBudgetCannotBeShared = 17,
CampaignBudgetRemoved = 2,
CampaignBudgetInUse = 3,
CampaignBudgetPeriodNotAvailable = 4,
CannotModifyFieldOfImplicitlySharedCampaignBudget = 6,
CannotUpdateCampaignBudgetToImplicitlyShared = 7,
CannotUpdateCampaignBudgetToExplicitlySharedWithoutName = 8,
CannotUpdateCampaignBudgetToExplicitlyShared = 9,
CannotUseImplicitlySharedCampaignBudgetWithMultipleCampaigns = 10,
DuplicateName = 11,
MoneyAmountInWrongCurrency = 12,
MoneyAmountLessThanCurrencyMinimumCpc = 13,
MoneyAmountTooLarge = 14,
NegativeMoneyAmount = 15,
NonMultipleOfMinimumCurrencyUnit = 16,
TotalBudgetAmountMustBeUnsetForBudgetPeriodDaily = 18,
InvalidPeriod = 19,
CannotUseAcceleratedDeliveryMode = 20,
BudgetAmountMustBeUnsetForCustomBudgetPeriod = 21,
}
Expand description
Enum describing possible campaign budget errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
The campaign budget cannot be shared.
CampaignBudgetRemoved = 2
The requested campaign budget no longer exists.
CampaignBudgetInUse = 3
The campaign budget is associated with at least one campaign, and so the campaign budget cannot be removed.
CampaignBudgetPeriodNotAvailable = 4
Customer is not on the allow-list for this campaign budget period.
This field is not mutable on implicitly shared campaign budgets
Cannot change explicitly shared campaign budgets back to implicitly shared ones.
An implicit campaign budget without a name cannot be changed to explicitly shared campaign budget.
Cannot change an implicitly shared campaign budget to an explicitly shared one.
Only explicitly shared campaign budgets can be used with multiple campaigns.
DuplicateName = 11
A campaign budget with this name already exists.
MoneyAmountInWrongCurrency = 12
A money amount was not in the expected currency.
MoneyAmountLessThanCurrencyMinimumCpc = 13
A money amount was less than the minimum CPC for currency.
MoneyAmountTooLarge = 14
A money amount was greater than the maximum allowed.
NegativeMoneyAmount = 15
A money amount was negative.
NonMultipleOfMinimumCurrencyUnit = 16
A money amount was not a multiple of a minimum unit.
TotalBudgetAmountMustBeUnsetForBudgetPeriodDaily = 18
Total budget amount must be unset when BudgetPeriod is DAILY.
InvalidPeriod = 19
The period of the budget is not allowed.
CannotUseAcceleratedDeliveryMode = 20
Cannot use accelerated delivery method on this budget.
BudgetAmountMustBeUnsetForCustomBudgetPeriod = 21
Budget amount must be unset when BudgetPeriod is CUSTOM.
Implementations§
source§impl CampaignBudgetError
impl CampaignBudgetError
sourcepub fn from_i32(value: i32) -> Option<CampaignBudgetError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CampaignBudgetError>
Converts an i32
to a CampaignBudgetError
, or None
if value
is not a valid variant.
source§impl CampaignBudgetError
impl CampaignBudgetError
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 CampaignBudgetError
impl Clone for CampaignBudgetError
source§fn clone(&self) -> CampaignBudgetError
fn clone(&self) -> CampaignBudgetError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignBudgetError
impl Debug for CampaignBudgetError
source§impl Default for CampaignBudgetError
impl Default for CampaignBudgetError
source§fn default() -> CampaignBudgetError
fn default() -> CampaignBudgetError
source§impl From<CampaignBudgetError> for i32
impl From<CampaignBudgetError> for i32
source§fn from(value: CampaignBudgetError) -> i32
fn from(value: CampaignBudgetError) -> i32
source§impl Hash for CampaignBudgetError
impl Hash for CampaignBudgetError
source§impl Ord for CampaignBudgetError
impl Ord for CampaignBudgetError
source§fn cmp(&self, other: &CampaignBudgetError) -> Ordering
fn cmp(&self, other: &CampaignBudgetError) -> 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 CampaignBudgetError
impl PartialEq for CampaignBudgetError
source§fn eq(&self, other: &CampaignBudgetError) -> bool
fn eq(&self, other: &CampaignBudgetError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CampaignBudgetError
impl PartialOrd for CampaignBudgetError
source§fn partial_cmp(&self, other: &CampaignBudgetError) -> Option<Ordering>
fn partial_cmp(&self, other: &CampaignBudgetError) -> 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 CampaignBudgetError
impl TryFrom<i32> for CampaignBudgetError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CampaignBudgetError, DecodeError>
fn try_from(value: i32) -> Result<CampaignBudgetError, DecodeError>
impl Copy for CampaignBudgetError
impl Eq for CampaignBudgetError
impl StructuralPartialEq for CampaignBudgetError
Auto Trait Implementations§
impl Freeze for CampaignBudgetError
impl RefUnwindSafe for CampaignBudgetError
impl Send for CampaignBudgetError
impl Sync for CampaignBudgetError
impl Unpin for CampaignBudgetError
impl UnwindSafe for CampaignBudgetError
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