Debian Codegraph @

docs/dyn/androidpublisher_v3.monetization.subscriptions.basePlans.offers.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="androidpublisher_v3.html">Google Play Android Developer API</a> . <a href="androidpublisher_v3.monetization.html">monetization</a> . <a href="androidpublisher_v3.monetization.subscriptions.html">subscriptions</a> . <a href="androidpublisher_v3.monetization.subscriptions.basePlans.html">basePlans</a> . <a href="androidpublisher_v3.monetization.subscriptions.basePlans.offers.html">offers</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#activate">activate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Activates a subscription offer. Once activated, subscription offers will be available to new subscribers.</p>
80 <p class="toc_element">
81 <code><a href="#batchGet">batchGet(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Reads one or more subscription offers.</p>
83 <p class="toc_element">
84 <code><a href="#batchUpdate">batchUpdate(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.</p>
86 <p class="toc_element">
87 <code><a href="#batchUpdateStates">batchUpdateStates(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.</p>
89 <p class="toc_element">
90 <code><a href="#close">close()</a></code></p>
91 <p class="firstline">Close httplib2 connections.</p>
92 <p class="toc_element">
93 <code><a href="#create">create(packageName, productId, basePlanId, body=None, offerId=None, regionsVersion_version=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated.</p>
95 <p class="toc_element">
96 <code><a href="#deactivate">deactivate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their subscription, but the offer will become unavailable to new subscribers.</p>
98 <p class="toc_element">
99 <code><a href="#delete">delete(packageName, productId, basePlanId, offerId, x__xgafv=None)</a></code></p>
100 <p class="firstline">Deletes a subscription offer. Can only be done for draft offers. This action is irreversible.</p>
101 <p class="toc_element">
102 <code><a href="#get">get(packageName, productId, basePlanId, offerId, x__xgafv=None)</a></code></p>
103 <p class="firstline">Reads a single offer</p>
104 <p class="toc_element">
105 <code><a href="#list">list(packageName, productId, basePlanId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Lists all offers under a given subscription.</p>
107 <p class="toc_element">
108 <code><a href="#list_next">list_next()</a></code></p>
109 <p class="firstline">Retrieves the next page of results.</p>
110 <p class="toc_element">
111 <code><a href="#patch">patch(packageName, productId, basePlanId, offerId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Updates an existing subscription offer.</p>
113 <h3>Method Details</h3>
114 <div class="method">
115 <code class="details" id="activate">activate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</code>
116 <pre>Activates a subscription offer. Once activated, subscription offers will be available to new subscribers.
117
118 Args:
119 packageName: string, Required. The parent app (package name) of the offer to activate. (required)
120 productId: string, Required. The parent subscription (ID) of the offer to activate. (required)
121 basePlanId: string, Required. The parent base plan (ID) of the offer to activate. (required)
122 offerId: string, Required. The unique offer ID of the offer to activate. (required)
123 body: object, The request body.
124 The object takes the form of:
125
126 { # Request message for ActivateSubscriptionOffer.
127 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to activate.
128 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
129 &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to activate.
130 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to activate.
131 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to activate.
132 }
133
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138
139 Returns:
140 An object of the form:
141
142 { # A single, temporary offer
143 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
144 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
145 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
146 { # Represents a custom tag specified for a product offer.
147 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
148 },
149 ],
150 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
151 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
152 },
153 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
154 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
155 { # A single phase of a subscription offer.
156 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
157 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
158 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
159 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
160 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
161 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
162 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
163 },
164 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
165 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
166 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
167 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
168 },
169 },
170 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
171 },
172 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
173 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
174 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
175 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
176 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
177 },
178 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
179 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
180 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
181 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
182 },
183 },
184 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
185 },
186 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
187 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
188 { # Configuration for a single phase of a subscription offer in a single region.
189 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
190 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
191 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
192 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
193 },
194 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
195 },
196 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
197 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
198 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
199 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
200 },
201 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
202 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
203 },
204 ],
205 },
206 ],
207 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
208 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
209 { # Configuration for a subscription offer in a single region.
210 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
211 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
212 },
213 ],
214 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
215 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
216 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
217 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
218 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
219 },
220 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
221 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
222 },
223 },
224 },
225 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
226 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
227 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
228 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
229 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
230 },
231 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
232 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
233 },
234 },
235 },
236 },
237 }</pre>
238 </div>
239
240 <div class="method">
241 <code class="details" id="batchGet">batchGet(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
242 <pre>Reads one or more subscription offers.
243
244 Args:
245 packageName: string, Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the package_name field on all the requests. (required)
246 productId: string, Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
247 basePlanId: string, Required. The parent base plan (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read offers from multiple base plans. (required)
248 body: object, The request body.
249 The object takes the form of:
250
251 { # Request message for BatchGetSubscriptionOffers endpoint.
252 &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must update different subscriptions.
253 { # Request message for GetSubscriptionOffer.
254 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to get.
255 &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to get.
256 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to get.
257 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to get.
258 },
259 ],
260 }
261
262 x__xgafv: string, V1 error format.
263 Allowed values
264 1 - v1 error format
265 2 - v2 error format
266
267 Returns:
268 An object of the form:
269
270 { # Response message for BatchGetSubscriptionOffers endpoint.
271 &quot;subscriptionOffers&quot;: [
272 { # A single, temporary offer
273 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
274 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
275 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
276 { # Represents a custom tag specified for a product offer.
277 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
278 },
279 ],
280 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
281 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
282 },
283 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
284 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
285 { # A single phase of a subscription offer.
286 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
287 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
288 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
289 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
290 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
291 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
292 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
293 },
294 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
295 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
296 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
297 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
298 },
299 },
300 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
301 },
302 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
303 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
304 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
305 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
306 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
307 },
308 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
309 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
310 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
311 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
312 },
313 },
314 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
315 },
316 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
317 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
318 { # Configuration for a single phase of a subscription offer in a single region.
319 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
320 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
321 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
322 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
323 },
324 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
325 },
326 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
327 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
328 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
329 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
330 },
331 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
332 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
333 },
334 ],
335 },
336 ],
337 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
338 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
339 { # Configuration for a subscription offer in a single region.
340 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
341 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
342 },
343 ],
344 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
345 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
346 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
347 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
348 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
349 },
350 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
351 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
352 },
353 },
354 },
355 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
356 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
357 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
358 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
359 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
360 },
361 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
362 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
363 },
364 },
365 },
366 },
367 },
368 ],
369 }</pre>
370 </div>
371
372 <div class="method">
373 <code class="details" id="batchUpdate">batchUpdate(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
374 <pre>Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
375
376 Args:
377 packageName: string, Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources. (required)
378 productId: string, Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
379 basePlanId: string, Required. The parent base plan (ID) for which the offers should be updated. May be specified as &#x27;-&#x27; to update offers from multiple base plans. (required)
380 body: object, The request body.
381 The object takes the form of:
382
383 { # Request message for BatchUpdateSubscriptionOffers.
384 &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must update different subscription offers.
385 { # Request message for UpdateSubscriptionOffer.
386 &quot;allowMissing&quot;: True or False, # Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn&#x27;t exist, an offer will be created. If a new offer is created, update_mask is ignored.
387 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
388 &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Required. The version of the available regions being used for the subscription_offer.
389 &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
390 },
391 &quot;subscriptionOffer&quot;: { # A single, temporary offer # Required. The subscription offer to update.
392 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
393 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
394 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
395 { # Represents a custom tag specified for a product offer.
396 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
397 },
398 ],
399 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
400 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
401 },
402 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
403 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
404 { # A single phase of a subscription offer.
405 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
406 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
407 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
408 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
409 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
410 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
411 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
412 },
413 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
414 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
415 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
416 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
417 },
418 },
419 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
420 },
421 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
422 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
423 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
424 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
425 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
426 },
427 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
428 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
429 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
430 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
431 },
432 },
433 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
434 },
435 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
436 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
437 { # Configuration for a single phase of a subscription offer in a single region.
438 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
439 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
440 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
441 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
442 },
443 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
444 },
445 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
446 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
447 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
448 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
449 },
450 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
451 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
452 },
453 ],
454 },
455 ],
456 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
457 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
458 { # Configuration for a subscription offer in a single region.
459 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
460 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
461 },
462 ],
463 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
464 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
465 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
466 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
467 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
468 },
469 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
470 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
471 },
472 },
473 },
474 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
475 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
476 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
477 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
478 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
479 },
480 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
481 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
482 },
483 },
484 },
485 },
486 },
487 &quot;updateMask&quot;: &quot;A String&quot;, # Required. The list of fields to be updated.
488 },
489 ],
490 }
491
492 x__xgafv: string, V1 error format.
493 Allowed values
494 1 - v1 error format
495 2 - v2 error format
496
497 Returns:
498 An object of the form:
499
500 { # Response message for BatchUpdateSubscriptionOffers.
501 &quot;subscriptionOffers&quot;: [ # The updated subscription offers list.
502 { # A single, temporary offer
503 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
504 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
505 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
506 { # Represents a custom tag specified for a product offer.
507 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
508 },
509 ],
510 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
511 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
512 },
513 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
514 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
515 { # A single phase of a subscription offer.
516 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
517 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
518 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
519 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
520 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
521 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
522 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
523 },
524 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
525 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
526 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
527 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
528 },
529 },
530 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
531 },
532 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
533 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
534 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
535 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
536 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
537 },
538 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
539 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
540 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
541 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
542 },
543 },
544 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
545 },
546 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
547 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
548 { # Configuration for a single phase of a subscription offer in a single region.
549 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
550 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
551 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
552 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
553 },
554 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
555 },
556 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
557 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
558 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
559 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
560 },
561 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
562 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
563 },
564 ],
565 },
566 ],
567 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
568 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
569 { # Configuration for a subscription offer in a single region.
570 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
571 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
572 },
573 ],
574 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
575 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
576 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
577 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
578 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
579 },
580 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
581 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
582 },
583 },
584 },
585 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
586 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
587 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
588 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
589 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
590 },
591 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
592 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
593 },
594 },
595 },
596 },
597 },
598 ],
599 }</pre>
600 </div>
601
602 <div class="method">
603 <code class="details" id="batchUpdateStates">batchUpdateStates(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
604 <pre>Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
605
606 Args:
607 packageName: string, Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources. (required)
608 productId: string, Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
609 basePlanId: string, Required. The parent base plan (ID) for which the offers should be updated. May be specified as &#x27;-&#x27; to update offers from multiple base plans. (required)
610 body: object, The request body.
611 The object takes the form of:
612
613 { # Request message for BatchUpdateSubscriptionOfferStates.
614 &quot;requests&quot;: [ # Required. The update request list of up to 100 elements. All requests must update different offers.
615 { # Request message to update the state of a subscription offer.
616 &quot;activateSubscriptionOfferRequest&quot;: { # Request message for ActivateSubscriptionOffer. # Activates an offer. Once activated, the offer will be available to new subscribers.
617 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to activate.
618 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
619 &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to activate.
620 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to activate.
621 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to activate.
622 },
623 &quot;deactivateSubscriptionOfferRequest&quot;: { # Request message for DeactivateSubscriptionOffer. # Deactivates an offer. Once deactivated, the offer will become unavailable to new subscribers, but existing subscribers will maintain their subscription
624 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to deactivate.
625 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
626 &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to deactivate.
627 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to deactivate.
628 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to deactivate.
629 },
630 },
631 ],
632 }
633
634 x__xgafv: string, V1 error format.
635 Allowed values
636 1 - v1 error format
637 2 - v2 error format
638
639 Returns:
640 An object of the form:
641
642 { # Response message for BatchUpdateSubscriptionOfferStates.
643 &quot;subscriptionOffers&quot;: [ # The updated subscription offers list.
644 { # A single, temporary offer
645 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
646 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
647 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
648 { # Represents a custom tag specified for a product offer.
649 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
650 },
651 ],
652 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
653 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
654 },
655 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
656 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
657 { # A single phase of a subscription offer.
658 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
659 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
660 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
661 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
662 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
663 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
664 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
665 },
666 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
667 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
668 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
669 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
670 },
671 },
672 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
673 },
674 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
675 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
676 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
677 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
678 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
679 },
680 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
681 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
682 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
683 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
684 },
685 },
686 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
687 },
688 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
689 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
690 { # Configuration for a single phase of a subscription offer in a single region.
691 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
692 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
693 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
694 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
695 },
696 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
697 },
698 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
699 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
700 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
701 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
702 },
703 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
704 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
705 },
706 ],
707 },
708 ],
709 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
710 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
711 { # Configuration for a subscription offer in a single region.
712 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
713 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
714 },
715 ],
716 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
717 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
718 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
719 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
720 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
721 },
722 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
723 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
724 },
725 },
726 },
727 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
728 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
729 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
730 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
731 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
732 },
733 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
734 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
735 },
736 },
737 },
738 },
739 },
740 ],
741 }</pre>
742 </div>
743
744 <div class="method">
745 <code class="details" id="close">close()</code>
746 <pre>Close httplib2 connections.</pre>
747 </div>
748
749 <div class="method">
750 <code class="details" id="create">create(packageName, productId, basePlanId, body=None, offerId=None, regionsVersion_version=None, x__xgafv=None)</code>
751 <pre>Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated.
752
753 Args:
754 packageName: string, Required. The parent app (package name) for which the offer should be created. Must be equal to the package_name field on the Subscription resource. (required)
755 productId: string, Required. The parent subscription (ID) for which the offer should be created. Must be equal to the product_id field on the SubscriptionOffer resource. (required)
756 basePlanId: string, Required. The parent base plan (ID) for which the offer should be created. Must be equal to the base_plan_id field on the SubscriptionOffer resource. (required)
757 body: object, The request body.
758 The object takes the form of:
759
760 { # A single, temporary offer
761 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
762 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
763 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
764 { # Represents a custom tag specified for a product offer.
765 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
766 },
767 ],
768 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
769 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
770 },
771 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
772 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
773 { # A single phase of a subscription offer.
774 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
775 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
776 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
777 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
778 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
779 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
780 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
781 },
782 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
783 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
784 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
785 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
786 },
787 },
788 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
789 },
790 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
791 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
792 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
793 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
794 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
795 },
796 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
797 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
798 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
799 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
800 },
801 },
802 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
803 },
804 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
805 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
806 { # Configuration for a single phase of a subscription offer in a single region.
807 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
808 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
809 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
810 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
811 },
812 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
813 },
814 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
815 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
816 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
817 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
818 },
819 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
820 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
821 },
822 ],
823 },
824 ],
825 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
826 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
827 { # Configuration for a subscription offer in a single region.
828 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
829 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
830 },
831 ],
832 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
833 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
834 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
835 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
836 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
837 },
838 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
839 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
840 },
841 },
842 },
843 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
844 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
845 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
846 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
847 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
848 },
849 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
850 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
851 },
852 },
853 },
854 },
855 }
856
857 offerId: string, Required. The ID to use for the offer. For the requirements on this format, see the documentation of the offer_id field on the SubscriptionOffer resource.
858 regionsVersion_version: string, Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
859 x__xgafv: string, V1 error format.
860 Allowed values
861 1 - v1 error format
862 2 - v2 error format
863
864 Returns:
865 An object of the form:
866
867 { # A single, temporary offer
868 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
869 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
870 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
871 { # Represents a custom tag specified for a product offer.
872 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
873 },
874 ],
875 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
876 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
877 },
878 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
879 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
880 { # A single phase of a subscription offer.
881 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
882 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
883 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
884 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
885 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
886 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
887 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
888 },
889 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
890 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
891 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
892 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
893 },
894 },
895 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
896 },
897 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
898 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
899 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
900 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
901 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
902 },
903 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
904 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
905 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
906 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
907 },
908 },
909 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
910 },
911 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
912 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
913 { # Configuration for a single phase of a subscription offer in a single region.
914 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
915 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
916 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
917 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
918 },
919 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
920 },
921 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
922 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
923 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
924 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
925 },
926 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
927 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
928 },
929 ],
930 },
931 ],
932 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
933 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
934 { # Configuration for a subscription offer in a single region.
935 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
936 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
937 },
938 ],
939 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
940 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
941 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
942 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
943 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
944 },
945 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
946 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
947 },
948 },
949 },
950 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
951 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
952 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
953 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
954 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
955 },
956 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
957 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
958 },
959 },
960 },
961 },
962 }</pre>
963 </div>
964
965 <div class="method">
966 <code class="details" id="deactivate">deactivate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</code>
967 <pre>Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their subscription, but the offer will become unavailable to new subscribers.
968
969 Args:
970 packageName: string, Required. The parent app (package name) of the offer to deactivate. (required)
971 productId: string, Required. The parent subscription (ID) of the offer to deactivate. (required)
972 basePlanId: string, Required. The parent base plan (ID) of the offer to deactivate. (required)
973 offerId: string, Required. The unique offer ID of the offer to deactivate. (required)
974 body: object, The request body.
975 The object takes the form of:
976
977 { # Request message for DeactivateSubscriptionOffer.
978 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to deactivate.
979 &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
980 &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to deactivate.
981 &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to deactivate.
982 &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to deactivate.
983 }
984
985 x__xgafv: string, V1 error format.
986 Allowed values
987 1 - v1 error format
988 2 - v2 error format
989
990 Returns:
991 An object of the form:
992
993 { # A single, temporary offer
994 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
995 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
996 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
997 { # Represents a custom tag specified for a product offer.
998 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
999 },
1000 ],
1001 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
1002 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
1003 },
1004 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
1005 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
1006 { # A single phase of a subscription offer.
1007 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
1008 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
1009 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
1010 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1011 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1012 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1013 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1014 },
1015 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1016 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1017 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1018 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1019 },
1020 },
1021 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
1022 },
1023 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
1024 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1025 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1026 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1027 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1028 },
1029 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1030 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1031 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1032 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1033 },
1034 },
1035 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
1036 },
1037 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
1038 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
1039 { # Configuration for a single phase of a subscription offer in a single region.
1040 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
1041 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1042 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1043 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1044 },
1045 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
1046 },
1047 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
1048 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1049 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1050 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1051 },
1052 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
1053 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
1054 },
1055 ],
1056 },
1057 ],
1058 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
1059 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
1060 { # Configuration for a subscription offer in a single region.
1061 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
1062 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1063 },
1064 ],
1065 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
1066 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
1067 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
1068 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
1069 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1070 },
1071 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1072 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1073 },
1074 },
1075 },
1076 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
1077 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
1078 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
1079 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
1080 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1081 },
1082 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1083 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1084 },
1085 },
1086 },
1087 },
1088 }</pre>
1089 </div>
1090
1091 <div class="method">
1092 <code class="details" id="delete">delete(packageName, productId, basePlanId, offerId, x__xgafv=None)</code>
1093 <pre>Deletes a subscription offer. Can only be done for draft offers. This action is irreversible.
1094
1095 Args:
1096 packageName: string, Required. The parent app (package name) of the offer to delete. (required)
1097 productId: string, Required. The parent subscription (ID) of the offer to delete. (required)
1098 basePlanId: string, Required. The parent base plan (ID) of the offer to delete. (required)
1099 offerId: string, Required. The unique offer ID of the offer to delete. (required)
1100 x__xgafv: string, V1 error format.
1101 Allowed values
1102 1 - v1 error format
1103 2 - v2 error format
1104 </pre>
1105 </div>
1106
1107 <div class="method">
1108 <code class="details" id="get">get(packageName, productId, basePlanId, offerId, x__xgafv=None)</code>
1109 <pre>Reads a single offer
1110
1111 Args:
1112 packageName: string, Required. The parent app (package name) of the offer to get. (required)
1113 productId: string, Required. The parent subscription (ID) of the offer to get. (required)
1114 basePlanId: string, Required. The parent base plan (ID) of the offer to get. (required)
1115 offerId: string, Required. The unique offer ID of the offer to get. (required)
1116 x__xgafv: string, V1 error format.
1117 Allowed values
1118 1 - v1 error format
1119 2 - v2 error format
1120
1121 Returns:
1122 An object of the form:
1123
1124 { # A single, temporary offer
1125 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
1126 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
1127 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
1128 { # Represents a custom tag specified for a product offer.
1129 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
1130 },
1131 ],
1132 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
1133 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
1134 },
1135 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
1136 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
1137 { # A single phase of a subscription offer.
1138 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
1139 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
1140 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
1141 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1142 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1143 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1144 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1145 },
1146 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1147 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1148 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1149 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1150 },
1151 },
1152 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
1153 },
1154 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
1155 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1156 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1157 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1158 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1159 },
1160 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1161 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1162 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1163 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1164 },
1165 },
1166 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
1167 },
1168 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
1169 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
1170 { # Configuration for a single phase of a subscription offer in a single region.
1171 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
1172 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1173 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1174 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1175 },
1176 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
1177 },
1178 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
1179 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1180 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1181 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1182 },
1183 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
1184 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
1185 },
1186 ],
1187 },
1188 ],
1189 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
1190 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
1191 { # Configuration for a subscription offer in a single region.
1192 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
1193 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1194 },
1195 ],
1196 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
1197 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
1198 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
1199 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
1200 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1201 },
1202 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1203 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1204 },
1205 },
1206 },
1207 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
1208 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
1209 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
1210 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
1211 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1212 },
1213 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1214 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1215 },
1216 },
1217 },
1218 },
1219 }</pre>
1220 </div>
1221
1222 <div class="method">
1223 <code class="details" id="list">list(packageName, productId, basePlanId, pageSize=None, pageToken=None, x__xgafv=None)</code>
1224 <pre>Lists all offers under a given subscription.
1225
1226 Args:
1227 packageName: string, Required. The parent app (package name) for which the subscriptions should be read. (required)
1228 productId: string, Required. The parent subscription (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read all offers under an app. (required)
1229 basePlanId: string, Required. The parent base plan (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read all offers under a subscription or an app. Must be specified as &#x27;-&#x27; if product_id is specified as &#x27;-&#x27;. (required)
1230 pageSize: integer, The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
1231 pageToken: string, A page token, received from a previous `ListSubscriptionsOffers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscriptionOffers` must match the call that provided the page token.
1232 x__xgafv: string, V1 error format.
1233 Allowed values
1234 1 - v1 error format
1235 2 - v2 error format
1236
1237 Returns:
1238 An object of the form:
1239
1240 { # Response message for ListSubscriptionOffers.
1241 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1242 &quot;subscriptionOffers&quot;: [ # The subscription offers from the specified subscription.
1243 { # A single, temporary offer
1244 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
1245 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
1246 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
1247 { # Represents a custom tag specified for a product offer.
1248 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
1249 },
1250 ],
1251 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
1252 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
1253 },
1254 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
1255 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
1256 { # A single phase of a subscription offer.
1257 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
1258 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
1259 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
1260 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1261 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1262 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1263 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1264 },
1265 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1266 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1267 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1268 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1269 },
1270 },
1271 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
1272 },
1273 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
1274 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1275 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1276 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1277 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1278 },
1279 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1280 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1281 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1282 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1283 },
1284 },
1285 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
1286 },
1287 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
1288 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
1289 { # Configuration for a single phase of a subscription offer in a single region.
1290 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
1291 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1292 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1293 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1294 },
1295 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
1296 },
1297 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
1298 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1299 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1300 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1301 },
1302 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
1303 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
1304 },
1305 ],
1306 },
1307 ],
1308 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
1309 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
1310 { # Configuration for a subscription offer in a single region.
1311 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
1312 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1313 },
1314 ],
1315 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
1316 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
1317 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
1318 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
1319 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1320 },
1321 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1322 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1323 },
1324 },
1325 },
1326 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
1327 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
1328 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
1329 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
1330 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1331 },
1332 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1333 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1334 },
1335 },
1336 },
1337 },
1338 },
1339 ],
1340 }</pre>
1341 </div>
1342
1343 <div class="method">
1344 <code class="details" id="list_next">list_next()</code>
1345 <pre>Retrieves the next page of results.
1346
1347 Args:
1348 previous_request: The request for the previous page. (required)
1349 previous_response: The response from the request for the previous page. (required)
1350
1351 Returns:
1352 A request object that you can call &#x27;execute()&#x27; on to request the next
1353 page. Returns None if there are no more items in the collection.
1354 </pre>
1355 </div>
1356
1357 <div class="method">
1358 <code class="details" id="patch">patch(packageName, productId, basePlanId, offerId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</code>
1359 <pre>Updates an existing subscription offer.
1360
1361 Args:
1362 packageName: string, Required. Immutable. The package name of the app the parent subscription belongs to. (required)
1363 productId: string, Required. Immutable. The ID of the parent subscription this offer belongs to. (required)
1364 basePlanId: string, Required. Immutable. The ID of the base plan to which this offer is an extension. (required)
1365 offerId: string, Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. (required)
1366 body: object, The request body.
1367 The object takes the form of:
1368
1369 { # A single, temporary offer
1370 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
1371 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
1372 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
1373 { # Represents a custom tag specified for a product offer.
1374 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
1375 },
1376 ],
1377 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
1378 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
1379 },
1380 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
1381 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
1382 { # A single phase of a subscription offer.
1383 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
1384 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
1385 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
1386 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1387 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1388 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1389 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1390 },
1391 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1392 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1393 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1394 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1395 },
1396 },
1397 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
1398 },
1399 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
1400 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1401 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1402 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1403 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1404 },
1405 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1406 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1407 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1408 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1409 },
1410 },
1411 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
1412 },
1413 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
1414 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
1415 { # Configuration for a single phase of a subscription offer in a single region.
1416 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
1417 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1418 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1419 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1420 },
1421 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
1422 },
1423 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
1424 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1425 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1426 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1427 },
1428 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
1429 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
1430 },
1431 ],
1432 },
1433 ],
1434 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
1435 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
1436 { # Configuration for a subscription offer in a single region.
1437 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
1438 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1439 },
1440 ],
1441 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
1442 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
1443 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
1444 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
1445 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1446 },
1447 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1448 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1449 },
1450 },
1451 },
1452 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
1453 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
1454 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
1455 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
1456 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1457 },
1458 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1459 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1460 },
1461 },
1462 },
1463 },
1464 }
1465
1466 allowMissing: boolean, Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn&#x27;t exist, an offer will be created. If a new offer is created, update_mask is ignored.
1467 latencyTolerance: string, Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
1468 Allowed values
1469 PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED - Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
1470 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE - The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.
1471 PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT - The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods.
1472 regionsVersion_version: string, Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
1473 updateMask: string, Required. The list of fields to be updated.
1474 x__xgafv: string, V1 error format.
1475 Allowed values
1476 1 - v1 error format
1477 2 - v2 error format
1478
1479 Returns:
1480 An object of the form:
1481
1482 { # A single, temporary offer
1483 &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
1484 &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
1485 &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
1486 { # Represents a custom tag specified for a product offer.
1487 &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
1488 },
1489 ],
1490 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
1491 &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
1492 },
1493 &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
1494 &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
1495 { # A single phase of a subscription offer.
1496 &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
1497 &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
1498 &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
1499 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1500 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1501 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1502 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1503 },
1504 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1505 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1506 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1507 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1508 },
1509 },
1510 &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
1511 },
1512 &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
1513 &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
1514 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1515 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1516 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1517 },
1518 &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
1519 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1520 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1521 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1522 },
1523 },
1524 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
1525 },
1526 &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
1527 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
1528 { # Configuration for a single phase of a subscription offer in a single region.
1529 &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
1530 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1531 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1532 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1533 },
1534 &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
1535 },
1536 &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
1537 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
1538 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1539 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1540 },
1541 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
1542 &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
1543 },
1544 ],
1545 },
1546 ],
1547 &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
1548 &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
1549 { # Configuration for a subscription offer in a single region.
1550 &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
1551 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
1552 },
1553 ],
1554 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
1555 &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
1556 &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
1557 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
1558 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1559 },
1560 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1561 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1562 },
1563 },
1564 },
1565 &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
1566 &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
1567 &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
1568 &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
1569 &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
1570 },
1571 &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
1572 &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
1573 },
1574 },
1575 },
1576 },
1577 }</pre>
1578 </div>
1579
1580 </body></html>