- Resource: Promotion
- ProductApplicability
- OfferType
- RedemptionChannel
- CouponValueType
- TimePeriod
- StoreApplicability
- PromotionStatus
- DestinationStatus
- State
- PromotionIssue
- Methods
Resource: Promotion
Represents a promotion. See the following articles for more details.
JSON representation |
---|
{ "id": string, "targetCountry": string, "contentLanguage": string, "promotionId": string, "productApplicability": enum ( |
Fields | |
---|---|
id |
Output only. The REST promotion ID to uniquely identify the promotion. Content API methods that operate on promotions take this as their
channel field has a value of "online" , "in_store" , or "online_in_store" .
|
target |
Required. The target country used as part of the unique identifier. Can be |
content |
Required. The content language used as part of the unique identifier. |
promotion |
Required. The user provided promotion ID to uniquely identify the promotion. |
product |
Required. Applicability of the promotion to either all products or only specific products. |
offer |
Required. Type of the promotion. |
long |
Required. Long title for the promotion. |
promotionEffectiveDates |
String representation of the promotion effective dates. Deprecated. Use |
redemption |
Required. Redemption channel for the promotion. At least one channel is required. |
coupon |
Required. Coupon value type for the promotion. |
promotion |
Destination ID for the promotion. |
item |
Product filter by item ID for the promotion. |
brand[] |
Product filter by brand for the promotion. |
item |
Product filter by item group ID for the promotion. |
product |
Product filter by product type for the promotion. |
item |
Product filter by item ID exclusion for the promotion. |
brand |
Product filter by brand exclusion for the promotion. |
item |
Product filter by item group ID exclusion for the promotion. |
product |
Product filter by product type exclusion for the promotion. |
shipping |
Shipping service names for the promotion. |
promotion |
Required. |
store |
Store codes to include for the promotion. |
store |
Store codes to exclude for the promotion. |
promotion |
Output only. The current status of the promotion. |
generic |
Generic redemption code for the promotion. To be used with the |
promotionDisplayDates |
String representation of the promotion display dates. Deprecated. Use |
minimum |
Minimum purchase amount for the promotion. |
minimum |
Minimum purchase quantity for the promotion. |
limit |
Maximum purchase quantity for the promotion. |
limit |
Maximum purchase value for the promotion. |
percent |
The percentage discount offered in the promotion. |
money |
The money off amount offered in the promotion. |
get |
The number of items discounted in the promotion. |
free |
Free gift value for the promotion. |
free |
Free gift description for the promotion. |
free |
Free gift item ID for the promotion. |
money |
Cost cap for the promotion. |
order |
Order limit for the promotion. |
promotion |
|
store |
Whether the promotion applies to all stores, or only specified stores. Local pos.inventory ads promotions throw an error if no store applicability is included. An INVALID_ARGUMENT error is thrown if storeApplicability is set to ALL_STORES and storeCode or score_code_exclusion is set to a value. |
promotion |
URL to the page on the merchant's site where the promotion shows. Local pos.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. |
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. |
RedemptionChannel
Channel of a promotion.
Enums | |
---|---|
REDEMPTION_CHANNEL_UNSPECIFIED |
Indicates that the channel is unspecified. |
IN_STORE |
Indicates that the channel is in store. |
ONLINE |
Indicates that the channel is online. |
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. buy_this_quantity and get_this_quantity must be present. moneyOffAmount must also be present. |
BUY_M_GET_N_PERCENT_OFF |
Buy M quantity, get N percent off coupon value type. buy_this_quantity and get_this_quantity must be present. percent_off_percentage must also be present. |
BUY_M_GET_MONEY_OFF |
Buy M quantity, get money off. buy_this_quantity and moneyOffAmount must be present. |
BUY_M_GET_PERCENT_OFF |
Buy M quantity, get money off. buy_this_quantity and percent_off_percentage must be present. |
FREE_GIFT |
Free gift with description only. |
FREE_GIFT_WITH_VALUE |
Free gift with value (description is optional). |
FREE_GIFT_WITH_ITEM_ID |
Free gift with item ID (description is optional). |
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. |
TimePeriod
A message that represents a time period.
JSON representation |
---|
{ "startTime": string, "endTime": string } |
Fields | |
---|---|
start |
The starting timestamp. |
end |
The ending timestamp. |
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 |
The intended destinations for the promotion. |
promotion |
A list of issues associated with the promotion. |
creation |
Date on which the promotion has been created in ISO 8601 format: Date, time, and offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z" |
last |
Date on which the promotion status has been last updated in ISO 8601 format: Date, time, and offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z" |
DestinationStatus
The destination status of the promotion.
JSON representation |
---|
{
"destination": string,
"status": enum ( |
Fields | |
---|---|
destination |
The name of the destination. |
status |
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. |
PromotionIssue
The issue associated with the promotion.
JSON representation |
---|
{ "code": string, "detail": string } |
Fields | |
---|---|
code |
Code of the issue. |
detail |
Explanation of the issue. |
Methods |
|
---|---|
|
Inserts a promotion for your Merchant Center account. |
|
Retrieves a promotion from your Merchant Center account. |
|
List all promotions from your Merchant Center account. |