Struct gapi_grpc::google::ads::googleads::v5::common::PromotionFeedItem [−][src]
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][−]
&mut self,
value: PromotionExtensionDiscountModifier
)
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
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][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,