Struct gapi_grpc::google::ads::googleads::v4::common::PromotionFeedItem[][src]

pub struct PromotionFeedItem {
    pub promotion_target: Option<String>,
    pub discount_modifier: i32,
    pub promotion_start_date: Option<String>,
    pub promotion_end_date: Option<String>,
    pub occasion: i32,
    pub final_urls: Vec<String>,
    pub final_mobile_urls: Vec<String>,
    pub tracking_url_template: Option<String>,
    pub url_custom_parameters: Vec<CustomParameter>,
    pub final_url_suffix: Option<String>,
    pub language_code: Option<String>,
    pub discount_type: Option<DiscountType>,
    pub promotion_trigger: Option<PromotionTrigger>,
}

Represents a Promotion extension.

Fields

promotion_target: Option<String>

A freeform description of what the promotion is targeting. This field is required.

discount_modifier: i32

Enum that modifies the qualification of the discount.

promotion_start_date: Option<String>

Start date of when the promotion is eligible to be redeemed.

promotion_end_date: Option<String>

End date of when the promotion is eligible to be redeemed.

occasion: i32

The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.

final_urls: Vec<String>

A list of possible final URLs after all cross domain redirects. This field is required.

final_mobile_urls: Vec<String>

A list of possible final mobile URLs after all cross domain redirects.

tracking_url_template: Option<String>

URL template for constructing a tracking URL.

url_custom_parameters: Vec<CustomParameter>

A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.

final_url_suffix: Option<String>

URL template for appending params to landing page URLs served with parallel tracking.

language_code: Option<String>

The language of the promotion. Represented as BCP 47 language tag.

discount_type: Option<DiscountType>

Discount type, can be percentage off or amount off.

promotion_trigger: Option<PromotionTrigger>

Promotion trigger. Can be by promotion code or promo by eligible order amount.

Implementations

impl PromotionFeedItem[src]

pub fn discount_modifier(&self) -> PromotionExtensionDiscountModifier[src]

Returns the enum value of discount_modifier, or the default if the field is set to an invalid enum value.

pub fn set_discount_modifier(
    &mut self,
    value: PromotionExtensionDiscountModifier
)
[src]

Sets discount_modifier to the provided enum value.

pub fn occasion(&self) -> PromotionExtensionOccasion[src]

Returns the enum value of occasion, or the default if the field is set to an invalid enum value.

pub fn set_occasion(&mut self, value: PromotionExtensionOccasion)[src]

Sets occasion to the provided enum value.

Trait Implementations

impl Clone for PromotionFeedItem[src]

impl Debug for PromotionFeedItem[src]

impl Default for PromotionFeedItem[src]

impl Message for PromotionFeedItem[src]

impl PartialEq<PromotionFeedItem> for PromotionFeedItem[src]

impl StructuralPartialEq for PromotionFeedItem[src]

Auto Trait Implementations

impl RefUnwindSafe for PromotionFeedItem

impl Send for PromotionFeedItem

impl Sync for PromotionFeedItem

impl Unpin for PromotionFeedItem

impl UnwindSafe for PromotionFeedItem

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<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]