AI-generated Key Takeaways
- 
          The Promotion resource defines a promotion for a subscription that can be resold. 
- 
          It includes details such as name, free trial duration, applicable regions and products, validity period, pricing details, and promotion type. 
- 
          Partners can find eligible promotions and retrieve a list of available promotions, including free trials, using the provided methods. 
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. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| endTime | 
 Optional. Specifies the end time (exclusive) of the period that the promotion is available in. If unset, the promotion is available indefinitely. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| introductoryPricingDetails | 
 Optional. Specifies the introductory pricing details when the promotionType is PROMOTION_TYPE_INTRODUCTORY_PRICING. | 
| promotionType | 
 Output only. Specifies the type of the promotion. | 
| Methods | |
|---|---|
| 
 | Currently, it is only enabeld for YouTube. | 
| 
 | Currently, it doesn't support YouTube promotions. |