Enum google_api_proto::google::ads::googleads::v15::enums::budget_type_enum::BudgetType
source · #[repr(i32)]pub enum BudgetType {
Unspecified = 0,
Unknown = 1,
Standard = 2,
FixedCpa = 4,
SmartCampaign = 5,
LocalServices = 6,
}
Expand description
Possible Budget types.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Standard = 2
Budget type for standard Google Ads usage. Caps daily spend at two times the specified budget amount. Full details: https://support.google.com/google-ads/answer/6385083
FixedCpa = 4
Budget type with a fixed cost-per-acquisition (conversion). Full details: https://support.google.com/google-ads/answer/7528254
This type is only supported by campaigns with AdvertisingChannelType.DISPLAY (excluding AdvertisingChannelSubType.DISPLAY_GMAIL), BiddingStrategyType.TARGET_CPA and PaymentMode.CONVERSIONS.
SmartCampaign = 5
Budget type for Smart Campaign. Full details: https://support.google.com/google-ads/answer/7653509
This type is only supported by campaigns with AdvertisingChannelType.SMART and AdvertisingChannelSubType.SMART_CAMPAIGN.
LocalServices = 6
Budget type for Local Services Campaign. Full details: https://support.google.com/localservices/answer/7434558
This type is only supported by campaigns with AdvertisingChannelType.LOCAL_SERVICES.
Implementations§
source§impl BudgetType
impl BudgetType
source§impl BudgetType
impl BudgetType
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 BudgetType
impl Clone for BudgetType
source§fn clone(&self) -> BudgetType
fn clone(&self) -> BudgetType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BudgetType
impl Debug for BudgetType
source§impl Default for BudgetType
impl Default for BudgetType
source§fn default() -> BudgetType
fn default() -> BudgetType
source§impl From<BudgetType> for i32
impl From<BudgetType> for i32
source§fn from(value: BudgetType) -> i32
fn from(value: BudgetType) -> i32
source§impl Hash for BudgetType
impl Hash for BudgetType
source§impl Ord for BudgetType
impl Ord for BudgetType
source§fn cmp(&self, other: &BudgetType) -> Ordering
fn cmp(&self, other: &BudgetType) -> 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 BudgetType
impl PartialEq for BudgetType
source§fn eq(&self, other: &BudgetType) -> bool
fn eq(&self, other: &BudgetType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BudgetType
impl PartialOrd for BudgetType
source§fn partial_cmp(&self, other: &BudgetType) -> Option<Ordering>
fn partial_cmp(&self, other: &BudgetType) -> 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 BudgetType
impl TryFrom<i32> for BudgetType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<BudgetType, DecodeError>
fn try_from(value: i32) -> Result<BudgetType, DecodeError>
impl Copy for BudgetType
impl Eq for BudgetType
impl StructuralPartialEq for BudgetType
Auto Trait Implementations§
impl Freeze for BudgetType
impl RefUnwindSafe for BudgetType
impl Send for BudgetType
impl Sync for BudgetType
impl Unpin for BudgetType
impl UnwindSafe for BudgetType
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