Enum gapi_grpc::google::ads::googleads::v6::enums::promotion_placeholder_field_enum::PromotionPlaceholderField[][src]

#[repr(i32)]pub enum PromotionPlaceholderField {
    Unspecified,
    Unknown,
    PromotionTarget,
    DiscountModifier,
    PercentOff,
    MoneyAmountOff,
    PromotionCode,
    OrdersOverAmount,
    PromotionStart,
    PromotionEnd,
    Occasion,
    FinalUrls,
    FinalMobileUrls,
    TrackingUrl,
    Language,
    FinalUrlSuffix,
}

Possible values for Promotion placeholder fields.

Variants

Unspecified

Not specified.

Unknown

Used for return value only. Represents value unknown in this version.

PromotionTarget

Data Type: STRING. The text that appears on the ad when the extension is shown.

DiscountModifier

Data Type: STRING. Allows you to add “up to” phrase to the promotion, in case you have variable promotion rates.

PercentOff

Data Type: INT64. Takes a value in micros, where 1 million micros represents 1%, and is shown as a percentage when rendered.

MoneyAmountOff

Data Type: MONEY. Requires a currency and an amount of money.

PromotionCode

Data Type: STRING. A string that the user enters to get the discount.

OrdersOverAmount

Data Type: MONEY. A minimum spend before the user qualifies for the promotion.

PromotionStart

Data Type: DATE. The start date of the promotion.

PromotionEnd

Data Type: DATE. The end date of the promotion.

Occasion

Data Type: STRING. Describes the associated event for the promotion using one of the PromotionExtensionOccasion enum values, for example NEW_YEARS.

FinalUrls

Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded URLs.

FinalMobileUrls

Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded URLs.

TrackingUrl

Data Type: URL. Tracking template for the ad when using Upgraded URLs.

Language

Data Type: STRING. A string represented by a language code for the promotion.

FinalUrlSuffix

Data Type: STRING. Final URL suffix for the ad when using parallel tracking.

Implementations

impl PromotionPlaceholderField[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of PromotionPlaceholderField.

pub fn from_i32(value: i32) -> Option<PromotionPlaceholderField>[src]

Converts an i32 to a PromotionPlaceholderField, or None if value is not a valid variant.

Trait Implementations

impl Clone for PromotionPlaceholderField[src]

impl Copy for PromotionPlaceholderField[src]

impl Debug for PromotionPlaceholderField[src]

impl Default for PromotionPlaceholderField[src]

impl Eq for PromotionPlaceholderField[src]

impl From<PromotionPlaceholderField> for i32[src]

impl Hash for PromotionPlaceholderField[src]

impl Ord for PromotionPlaceholderField[src]

impl PartialEq<PromotionPlaceholderField> for PromotionPlaceholderField[src]

impl PartialOrd<PromotionPlaceholderField> for PromotionPlaceholderField[src]

impl StructuralEq for PromotionPlaceholderField[src]

impl StructuralPartialEq for PromotionPlaceholderField[src]

Auto Trait Implementations

impl RefUnwindSafe for PromotionPlaceholderField

impl Send for PromotionPlaceholderField

impl Sync for PromotionPlaceholderField

impl Unpin for PromotionPlaceholderField

impl UnwindSafe for PromotionPlaceholderField

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]