View Source GoogleApi.Content.V21.Model.Promotion (google_api_content v0.66.0)

Represents a promotion. See the following articles for more details. Promotions feed specification Local promotions feed specification * Promotions on Buy on Google product data specification

Attributes

  • itemGroupIdExclusion (type: list(String.t), default: nil) - Product filter by item group ID exclusion for the promotion.
  • promotionStatus (type: GoogleApi.Content.V21.Model.PromotionPromotionStatus.t, default: nil) - Output only. The current status of the promotion.
  • shippingServiceNames (type: list(String.t), default: nil) - Shipping service names for the promotion.
  • storeApplicability (type: String.t, default: nil) - Whether the promotion applies to all stores, or only specified stores. Local Inventory ads promotions throw an error if no store applicability is included. An INVALID_ARGUMENT error is thrown if store_applicability is set to ALL_STORES and store_code or score_code_exclusion is set to a value.
  • orderLimit (type: integer(), default: nil) - Order limit for the promotion.
  • promotionDisplayDates (type: String.t, default: nil) - String representation of the promotion display dates. Deprecated. Use promotion_display_time_period instead.
  • moneyOffAmount (type: GoogleApi.Content.V21.Model.PriceAmount.t, default: nil) - The money off amount offered in the promotion.
  • redemptionChannel (type: list(String.t), default: nil) - Required. Redemption channel for the promotion. At least one channel is required.
  • limitValue (type: GoogleApi.Content.V21.Model.PriceAmount.t, default: nil) - Maximum purchase value for the promotion.
  • targetCountry (type: String.t, default: nil) - Required. The target country used as part of the unique identifier. Can be AU, CA, DE, FR, GB, IN, US, BR, ES, NL, JP, IT or KR.
  • percentOff (type: integer(), default: nil) - The percentage discount offered in the promotion.
  • productTypeExclusion (type: list(String.t), default: nil) - Product filter by product type exclusion for the promotion.
  • longTitle (type: String.t, default: nil) - Required. Long title for the promotion.
  • contentLanguage (type: String.t, default: nil) - Required. The content language used as part of the unique identifier. en content language is available for all target countries. fr content language is available for CA and FR target countries. de content language is available for DE target country. nl content language is available for NL target country. it content language is available for IT target country. pt content language is available for BR target country. ja content language is available for JP target country. ko content language is available for KR target country.
  • itemId (type: list(String.t), default: nil) - Product filter by item ID for the promotion.
  • minimumPurchaseAmount (type: GoogleApi.Content.V21.Model.PriceAmount.t, default: nil) - Minimum purchase amount for the promotion.
  • productType (type: list(String.t), default: nil) - Product filter by product type for the promotion.
  • couponValueType (type: String.t, default: nil) - Required. Coupon value type for the promotion.
  • limitQuantity (type: integer(), default: nil) - Maximum purchase quantity for the promotion.
  • storeCode (type: list(String.t), default: nil) - Store codes to include for the promotion.
  • itemGroupId (type: list(String.t), default: nil) - Product filter by item group ID for the promotion.
  • productApplicability (type: String.t, default: nil) - Required. Applicability of the promotion to either all products or only specific products.
  • genericRedemptionCode (type: String.t, default: nil) - Generic redemption code for the promotion. To be used with the offerType field.
  • minimumPurchaseQuantity (type: integer(), default: nil) - Minimum purchase quantity for the promotion.
  • promotionEffectiveDates (type: String.t, default: nil) - String representation of the promotion effective dates. Deprecated. Use promotion_effective_time_period instead.
  • promotionDestinationIds (type: list(String.t), default: nil) - Destination ID for the promotion.
  • brandExclusion (type: list(String.t), default: nil) - Product filter by brand exclusion for the promotion.
  • itemIdExclusion (type: list(String.t), default: nil) - Product filter by item ID exclusion for the promotion.
  • promotionUrl (type: String.t, default: nil) - URL to the page on the merchant's site where the promotion shows. Local Inventory ads promotions throw an error if no promo url is included. URL is used to confirm that the promotion is valid and can be redeemed.
  • freeGiftValue (type: GoogleApi.Content.V21.Model.PriceAmount.t, default: nil) - Free gift value for the promotion.
  • freeGiftItemId (type: String.t, default: nil) - Free gift item ID for the promotion.
  • offerType (type: String.t, default: nil) - Required. Type of the promotion.
  • promotionDisplayTimePeriod (type: GoogleApi.Content.V21.Model.TimePeriod.t, default: nil) - TimePeriod representation of the promotion's display dates.
  • getThisQuantityDiscounted (type: integer(), default: nil) - The number of items discounted in the promotion.
  • freeGiftDescription (type: String.t, default: nil) - Free gift description for the promotion.
  • moneyBudget (type: GoogleApi.Content.V21.Model.PriceAmount.t, default: nil) - Cost cap for the promotion.
  • storeCodeExclusion (type: list(String.t), default: nil) - Store codes to exclude for the promotion.
  • promotionId (type: String.t, default: nil) - Required. The user provided promotion ID to uniquely identify the promotion.
  • id (type: String.t, default: nil) - Output only. The REST promotion ID to uniquely identify the promotion. Content API methods that operate on promotions take this as their promotionId parameter. The REST ID for a promotion is of the form channel:contentLanguage:targetCountry:promotionId The channel field has a value of "online", "in_store", or "online_in_store".
  • brand (type: list(String.t), default: nil) - Product filter by brand for the promotion.
  • promotionEffectiveTimePeriod (type: GoogleApi.Content.V21.Model.TimePeriod.t, default: nil) - Required. TimePeriod representation of the promotion's effective dates.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.Promotion{
  brand: [String.t()] | nil,
  brandExclusion: [String.t()] | nil,
  contentLanguage: String.t() | nil,
  couponValueType: String.t() | nil,
  freeGiftDescription: String.t() | nil,
  freeGiftItemId: String.t() | nil,
  freeGiftValue: GoogleApi.Content.V21.Model.PriceAmount.t() | nil,
  genericRedemptionCode: String.t() | nil,
  getThisQuantityDiscounted: integer() | nil,
  id: String.t() | nil,
  itemGroupId: [String.t()] | nil,
  itemGroupIdExclusion: [String.t()] | nil,
  itemId: [String.t()] | nil,
  itemIdExclusion: [String.t()] | nil,
  limitQuantity: integer() | nil,
  limitValue: GoogleApi.Content.V21.Model.PriceAmount.t() | nil,
  longTitle: String.t() | nil,
  minimumPurchaseAmount: GoogleApi.Content.V21.Model.PriceAmount.t() | nil,
  minimumPurchaseQuantity: integer() | nil,
  moneyBudget: GoogleApi.Content.V21.Model.PriceAmount.t() | nil,
  moneyOffAmount: GoogleApi.Content.V21.Model.PriceAmount.t() | nil,
  offerType: String.t() | nil,
  orderLimit: integer() | nil,
  percentOff: integer() | nil,
  productApplicability: String.t() | nil,
  productType: [String.t()] | nil,
  productTypeExclusion: [String.t()] | nil,
  promotionDestinationIds: [String.t()] | nil,
  promotionDisplayDates: String.t() | nil,
  promotionDisplayTimePeriod: GoogleApi.Content.V21.Model.TimePeriod.t() | nil,
  promotionEffectiveDates: String.t() | nil,
  promotionEffectiveTimePeriod:
    GoogleApi.Content.V21.Model.TimePeriod.t() | nil,
  promotionId: String.t() | nil,
  promotionStatus:
    GoogleApi.Content.V21.Model.PromotionPromotionStatus.t() | nil,
  promotionUrl: String.t() | nil,
  redemptionChannel: [String.t()] | nil,
  shippingServiceNames: [String.t()] | nil,
  storeApplicability: String.t() | nil,
  storeCode: [String.t()] | nil,
  storeCodeExclusion: [String.t()] | nil,
  targetCountry: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.