- Resource: Promotion
- RedemptionChannel
- Attributes
- ProductApplicability
- OfferType
- CouponValueType
- DestinationEnum
- StoreApplicability
- PromotionStatus
- DestinationStatus
- State
- ItemLevelIssue
- Severity
- Methods
Resource: Promotion
Represents a promotion. See the following articles for more details.
Required promotion input attributes to pass data validation checks are primarily defined below:
After inserting, updating a promotion input, it may take several minutes before the final promotion can be retrieved.
JSON representation |
---|
{ "name": string, "promotionId": string, "contentLanguage": string, "targetCountry": string, "redemptionChannel": [ enum ( |
Fields | |
---|---|
name |
Identifier. The name of the promotion. Format: |
promotion |
Required. The user provided promotion ID to uniquely identify the promotion. Follow minimum requirements to prevent promotion disapprovals. |
content |
Required. The two-letter ISO 639-1 language code for the promotion. Promotions is only for selected languages. |
target |
Required. The target country used as part of the unique identifier. Represented as a CLDR territory code. Promotions are only available in selected countries, Free Listings and Shopping ads Local Inventory ads |
redemption |
Required. Redemption channel for the promotion. At least one channel is required. |
data |
Output only. The primary data source of the promotion. |
attributes |
Optional. A list of promotion attributes. |
custom |
Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, |
promotion |
Output only. The status of a promotion, data validation issues, that is, information about a promotion computed asynchronously. |
version |
Optional. Represents the existing version (freshness) of the promotion, which can be used to preserve the right order when multiple updates are done at the same time. If set, the insertion is prevented when version number is lower than the current version number of the existing promotion. Re-insertion (for example, promotion refresh after 30 days) can be performed with the current If the operation is prevented, the aborted exception will be thrown. |
RedemptionChannel
Channel of a promotion.
Enums | |
---|---|
REDEMPTION_CHANNEL_UNSPECIFIED |
Indicates that the channel is unspecified. |
IN_STORE |
Indicates that the channel is in store. This is same as local channel used for products . |
ONLINE |
Indicates that the channel is online. |
Attributes
Attributes.
JSON representation |
---|
{ "productApplicability": enum ( |
Fields | |
---|---|
product |
Required. Applicability of the promotion to either all products or only specific products. |
offer |
Required. Type of the promotion. Use this attribute to indicate whether or not customers need a coupon code to redeem your promotion. |
generic |
Optional. Generic redemption code for the promotion. To be used with the |
long |
Required. Long title for the promotion. |
coupon |
Required. The coupon value type attribute to signal the type of promotion that you are running. Depending on type of the selected coupon value some attributes are required. |
promotion |
Required. The list of destinations where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use |
item |
Optional. Product filter by item ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability |
brand |
Optional. Product filter by brand for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability |
item |
Optional. Product filter by item group ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability [productApplicability] attribute is set to specific_products. |
product |
Optional. Product filter by product type for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability |
item |
Optional. Product filter by item ID exclusion for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability |
brand |
Optional. Product filter by brand exclusion for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability |
item |
Optional. Product filter by item group ID. The product filter attributes only applies when the products eligible for promotion product applicability |
product |
Optional. Product filter by product type exclusion for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability |
minimum |
Optional. Minimum purchase amount for the promotion. |
minimum |
Optional. Minimum purchase quantity for the promotion. |
limit |
Optional. Maximum purchase quantity for the promotion. |
limit |
Optional. Maximum product price for promotion. |
percent |
Optional. The percentage discount offered in the promotion. |
money |
Optional. The money off amount offered in the promotion. |
get |
Optional. The number of items discounted in the promotion. The attribute is set when |
free |
Optional. Free gift value for the promotion. |
free |
Optional. Free gift description for the promotion. |
free |
Optional. Free gift item ID for the promotion. |
promotion |
Required. |
promotion |
Optional. |
store |
Optional. 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 |
store |
Optional. Store codes to include for the promotion. The store filter attributes only applies when the Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory data specification for more information. |
store |
Optional. Store codes to exclude for the promotion. The store filter attributes only applies when the |
promotion |
Optional. URL to the page on the merchant's site where the promotion shows. Local Inventory ads promotions throw an error if no |
ProductApplicability
Which product or list of products the promotion applies to.
Enums | |
---|---|
PRODUCT_APPLICABILITY_UNSPECIFIED |
Which products the promotion applies to is unknown. |
ALL_PRODUCTS |
Applicable to all products. |
SPECIFIC_PRODUCTS |
Applicable to only a single product or list of products. |
OfferType
Offer type of a promotion.
Enums | |
---|---|
OFFER_TYPE_UNSPECIFIED |
Unknown offer type. |
NO_CODE |
Offer type without a code. |
GENERIC_CODE |
Offer type with a code. Generic redemption code for the promotion is required when offerType = GENERIC_CODE . |
CouponValueType
Coupon value type of a promotion.
Enums | |
---|---|
COUPON_VALUE_TYPE_UNSPECIFIED |
Indicates that the coupon value type is unspecified. |
MONEY_OFF |
Money off coupon value type. |
PERCENT_OFF |
Percent off coupon value type. |
BUY_M_GET_N_MONEY_OFF |
Buy M quantity, get N money off coupon value type. minimumPurchaseQuantity and getThisQuantityDiscounted must be present. moneyOffAmount must also be present. |
BUY_M_GET_N_PERCENT_OFF |
Buy M quantity, get N percent off coupon value type. minimumPurchaseQuantity and getThisQuantityDiscounted must be present. percent_off_percentage must also be present. |
BUY_M_GET_MONEY_OFF |
Buy M quantity, get money off. minimumPurchaseQuantity and moneyOffAmount must be present. |
BUY_M_GET_PERCENT_OFF |
Buy M quantity, get money off. minimumPurchaseQuantity and percent_off_percentage must be present. |
FREE_GIFT |
Free gift with description only. |
FREE_GIFT_WITH_VALUE |
Free gift with monetary value. |
FREE_GIFT_WITH_ITEM_ID |
Free gift with item ID. |
FREE_SHIPPING_STANDARD |
Standard free shipping coupon value type. |
FREE_SHIPPING_OVERNIGHT |
Overnight free shipping coupon value type. |
FREE_SHIPPING_TWO_DAY |
Two day free shipping coupon value type. |
DestinationEnum
Destination values.
Enums | |
---|---|
DESTINATION_ENUM_UNSPECIFIED |
Not specified. |
SHOPPING_ADS |
Shopping ads. |
DISPLAY_ADS |
Display ads. |
LOCAL_INVENTORY_ADS |
Local inventory ads. |
FREE_LISTINGS |
Free listings. |
FREE_LOCAL_LISTINGS |
Free local product listings. |
YOUTUBE_SHOPPING |
YouTube Shopping. |
YOUTUBE_SHOPPING_CHECKOUT |
Youtube shopping checkout. |
YOUTUBE_AFFILIATE |
Youtube affiliate. |
FREE_VEHICLE_LISTINGS |
Free vehicle listings. |
VEHICLE_ADS |
Vehicle ads. |
CLOUD_RETAIL |
Cloud retail. |
LOCAL_CLOUD_RETAIL |
Local cloud retail. |
StoreApplicability
Store codes or list of store codes the promotion applies to. Only for Local inventory ads promotions.
Enums | |
---|---|
STORE_APPLICABILITY_UNSPECIFIED |
Which store codes the promotion applies to is unknown. |
ALL_STORES |
Promotion applies to all stores. |
SPECIFIC_STORES |
Promotion applies to only the specified stores. |
PromotionStatus
The status of the promotion.
JSON representation |
---|
{ "destinationStatuses": [ { object ( |
Fields | |
---|---|
destination |
Output only. The intended destinations for the promotion. |
item |
Output only. A list of issues associated with the promotion. |
creation |
Output only. Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example |
last |
Output only. Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example |
DestinationStatus
The status for the specified destination.
JSON representation |
---|
{ "reportingContext": enum ( |
Fields | |
---|---|
reporting |
Output only. The name of the promotion destination. |
status |
Output only. The status for the specified destination. |
State
The current state of the promotion.
Enums | |
---|---|
STATE_UNSPECIFIED |
Unknown promotion state. |
IN_REVIEW |
The promotion is under review. |
REJECTED |
The promotion is disapproved. |
LIVE |
The promotion is approved and active. |
STOPPED |
The promotion is stopped by merchant. |
EXPIRED |
The promotion is no longer active. |
PENDING |
The promotion is not stopped, and all reviews are approved, but the active date is in the future. |
ItemLevelIssue
The issue associated with the promotion.
JSON representation |
---|
{ "code": string, "severity": enum ( |
Fields | |
---|---|
code |
Output only. The error code of the issue. |
severity |
Output only. How this issue affects serving of the promotion. |
resolution |
Output only. Whether the issue can be resolved by the merchant. |
attribute |
Output only. The attribute's name, if the issue is caused by a single attribute. |
reporting |
Output only. The destination the issue applies to. |
description |
Output only. A short issue description in English. |
detail |
Output only. A detailed issue description in English. |
documentation |
Output only. The URL of a web page to help with resolving this issue. |
applicable |
Output only. List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer. |
Severity
The severity of the issue.
Enums | |
---|---|
SEVERITY_UNSPECIFIED |
Not specified. |
NOT_IMPACTED |
This issue represents a warning and does not have a direct affect on the promotion. |
DEMOTED |
The promotion is demoted and most likely have limited performance in search results |
DISAPPROVED |
Issue disapproves the promotion. |
Methods |
|
---|---|
|
Retrieves the promotion from your Merchant Center account. |
|
Inserts a promotion for your Merchant Center account. |
|
Lists the promotions in your Merchant Center account. |