Enum google_api_proto::google::ads::googleads::v16::enums::promotion_placeholder_field_enum::PromotionPlaceholderField
source · #[repr(i32)]pub enum PromotionPlaceholderField {
Show 16 variants
Unspecified = 0,
Unknown = 1,
PromotionTarget = 2,
DiscountModifier = 3,
PercentOff = 4,
MoneyAmountOff = 5,
PromotionCode = 6,
OrdersOverAmount = 7,
PromotionStart = 8,
PromotionEnd = 9,
Occasion = 10,
FinalUrls = 11,
FinalMobileUrls = 12,
TrackingUrl = 13,
Language = 14,
FinalUrlSuffix = 15,
}
Expand description
Possible values for Promotion placeholder fields.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
PromotionTarget = 2
Data Type: STRING. The text that appears on the ad when the extension is shown.
DiscountModifier = 3
Data Type: STRING. Lets you add “up to” phrase to the promotion, in case you have variable promotion rates.
PercentOff = 4
Data Type: INT64. Takes a value in micros, where 1 million micros represents 1%, and is shown as a percentage when rendered.
MoneyAmountOff = 5
Data Type: MONEY. Requires a currency and an amount of money.
PromotionCode = 6
Data Type: STRING. A string that the user enters to get the discount.
OrdersOverAmount = 7
Data Type: MONEY. A minimum spend before the user qualifies for the promotion.
PromotionStart = 8
Data Type: DATE. The start date of the promotion.
PromotionEnd = 9
Data Type: DATE. The end date of the promotion.
Occasion = 10
Data Type: STRING. Describes the associated event for the promotion using one of the PromotionExtensionOccasion enum values, for example NEW_YEARS.
FinalUrls = 11
Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded URLs.
FinalMobileUrls = 12
Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded URLs.
TrackingUrl = 13
Data Type: URL. Tracking template for the ad when using Upgraded URLs.
Language = 14
Data Type: STRING. A string represented by a language code for the promotion.
FinalUrlSuffix = 15
Data Type: STRING. Final URL suffix for the ad when using parallel tracking.
Implementations§
source§impl PromotionPlaceholderField
impl PromotionPlaceholderField
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of PromotionPlaceholderField
.
sourcepub fn from_i32(value: i32) -> Option<PromotionPlaceholderField>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PromotionPlaceholderField>
Converts an i32
to a PromotionPlaceholderField
, or None
if value
is not a valid variant.
source§impl PromotionPlaceholderField
impl PromotionPlaceholderField
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 PromotionPlaceholderField
impl Clone for PromotionPlaceholderField
source§fn clone(&self) -> PromotionPlaceholderField
fn clone(&self) -> PromotionPlaceholderField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PromotionPlaceholderField
impl Debug for PromotionPlaceholderField
source§impl Default for PromotionPlaceholderField
impl Default for PromotionPlaceholderField
source§fn default() -> PromotionPlaceholderField
fn default() -> PromotionPlaceholderField
source§impl From<PromotionPlaceholderField> for i32
impl From<PromotionPlaceholderField> for i32
source§fn from(value: PromotionPlaceholderField) -> i32
fn from(value: PromotionPlaceholderField) -> i32
source§impl Hash for PromotionPlaceholderField
impl Hash for PromotionPlaceholderField
source§impl Ord for PromotionPlaceholderField
impl Ord for PromotionPlaceholderField
source§fn cmp(&self, other: &PromotionPlaceholderField) -> Ordering
fn cmp(&self, other: &PromotionPlaceholderField) -> 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 PromotionPlaceholderField
impl PartialEq for PromotionPlaceholderField
source§fn eq(&self, other: &PromotionPlaceholderField) -> bool
fn eq(&self, other: &PromotionPlaceholderField) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PromotionPlaceholderField
impl PartialOrd for PromotionPlaceholderField
source§fn partial_cmp(&self, other: &PromotionPlaceholderField) -> Option<Ordering>
fn partial_cmp(&self, other: &PromotionPlaceholderField) -> 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 PromotionPlaceholderField
impl TryFrom<i32> for PromotionPlaceholderField
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PromotionPlaceholderField, UnknownEnumValue>
fn try_from(value: i32) -> Result<PromotionPlaceholderField, UnknownEnumValue>
impl Copy for PromotionPlaceholderField
impl Eq for PromotionPlaceholderField
impl StructuralPartialEq for PromotionPlaceholderField
Auto Trait Implementations§
impl Freeze for PromotionPlaceholderField
impl RefUnwindSafe for PromotionPlaceholderField
impl Send for PromotionPlaceholderField
impl Sync for PromotionPlaceholderField
impl Unpin for PromotionPlaceholderField
impl UnwindSafe for PromotionPlaceholderField
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