Resource: Promotion
A Promotion resource that defines a promotion for a subscription that can be resold.
JSON representation |
---|
{ "name": string, "titles": [ { object ( |
Fields | |
---|---|
name |
Identifier. Response only. Resource name of the subscription promotion. It will have the format of "partners/{partner_id}/promotion/{promotion_id}" |
titles[] |
Output only. Localized human readable name of the promotion. |
freeTrialDuration |
Optional. Specifies the duration of the free trial of the subscription when promotionType is PROMOTION_TYPE_FREE_TRIAL |
regionCodes[] |
Output only. 2-letter ISO region code where the promotion is available in. Ex. "US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1 |
applicableProducts[] |
Output only. The product ids this promotion can be applied to. |
startTime |
Optional. Specifies the start time (inclusive) of the period that the promotion is available in. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Optional. Specifies the end time (exclusive) of the period that the promotion is available in. If unset, the promotion is available indefinitely. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
introductoryPricingDetails |
Optional. Specifies the introductory pricing details when the promotionType is PROMOTION_TYPE_INTRODUCTORY_PRICING. |
promotionType |
Output only. Output Only. Specifies the type of the promotion. |
Methods |
|
---|---|
|
To find eligible promotions for the current user. |
|
Retrieves the promotions, such as free trial, that can be used by the partner. |