blob: 56eb51009203b6a6738fedfc5b4c39e325d8b16f [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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 Developer API</a> . <a href="androidpublisher_v3.edits.html">edits</a> . <a href="androidpublisher_v3.edits.tracks.html">tracks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(packageName, editId, track)</a></code></p>
79<p class="firstline">Fetches the track configuration for the specified track type. Includes the APK version codes that are in this track.</p>
80<p class="toc_element">
81 <code><a href="#list">list(packageName, editId)</a></code></p>
82<p class="firstline">Lists all the track configurations for this edit.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#patch">patch(packageName, editId, track, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Updates the track configuration for the specified track type. This method supports patch semantics.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#update">update(packageName, editId, track, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Updates the track configuration for the specified track type.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="get">get(packageName, editId, track)</code>
92 <pre>Fetches the track configuration for the specified track type. Includes the APK version codes that are in this track.
93
94Args:
Bu Sun Kim65020912020-05-20 12:08:20 -070095 packageName: string, Unique identifier for the Android app that is being updated; for example, &quot;com.spiffygame&quot;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096 editId: string, Unique identifier for this edit. (required)
97 track: string, The track to read or modify. (required)
98
99Returns:
100 An object of the form:
101
102 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 &quot;releases&quot;: [ # A list of all active releases in this track during a read request. On an update request, it represents desired changes.
104 {
105 &quot;controls&quot;: [
106 {
107 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 &quot;end&quot;: &quot;A String&quot;,
110 &quot;start&quot;: &quot;A String&quot;,
111 },
112 ],
113 &quot;stratifiedSamplings&quot;: [
114 {
115 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;end&quot;: &quot;A String&quot;,
118 &quot;start&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700119 },
120 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;stratum&quot;: {
122 &quot;brand&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 },
124 },
125 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;versionCodes&quot;: [
127 &quot;A String&quot;,
128 ],
129 },
130 ],
131 &quot;countryTargeting&quot;: {
132 &quot;countries&quot;: [
133 &quot;A String&quot;,
134 ],
135 &quot;includeRestOfWorld&quot;: True or False,
136 },
137 &quot;inAppUpdatePriority&quot;: 42, # In-app update priority of the release. All newly added APKs in the release will be considered at this priority. in_app_update_priority can take values between [0, 5]. 5 is the highest priority. Default priority is 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.
138 &quot;name&quot;: &quot;A String&quot;, # The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs.
139 &quot;pinnedVersions&quot;: [
140 {
141 &quot;targetings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700142 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;countryCodes&quot;: [
144 &quot;A String&quot;,
145 ],
146 &quot;devices&quot;: [
147 {
148 &quot;brand&quot;: &quot;A String&quot;,
149 &quot;device&quot;: &quot;A String&quot;,
150 &quot;product&quot;: &quot;A String&quot;,
151 },
152 ],
153 &quot;phoneskyVersions&quot;: [
154 &quot;A String&quot;,
155 ],
156 &quot;sdkVersions&quot;: [
157 42,
158 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700159 },
160 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;versionCodes&quot;: [
162 &quot;A String&quot;,
163 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700164 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 ],
166 &quot;releaseNotes&quot;: [ # The description of what is new in the app in this release.
167 {
168 &quot;language&quot;: &quot;A String&quot;, # The language code, in BCP 47 format (eg &quot;en-US&quot;).
169 &quot;text&quot;: &quot;A String&quot;, # The text in the given `language`.
170 },
171 ],
172 &quot;rollbackEnabled&quot;: True or False,
173 &quot;sampling&quot;: {
174 &quot;modRanges&quot;: [
175 {
176 &quot;end&quot;: &quot;A String&quot;,
177 &quot;start&quot;: &quot;A String&quot;,
178 },
179 ],
180 &quot;modulus&quot;: &quot;A String&quot;,
181 &quot;salt&quot;: 42,
182 &quot;stratifiedSamplings&quot;: [
183 {
184 &quot;modRanges&quot;: [
185 {
186 &quot;end&quot;: &quot;A String&quot;,
187 &quot;start&quot;: &quot;A String&quot;,
188 },
189 ],
190 &quot;stratum&quot;: {
191 &quot;brand&quot;: &quot;A String&quot;,
192 },
193 },
194 ],
195 &quot;useAndroidId&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;status&quot;: &quot;A String&quot;, # The desired status of this release.
198 &quot;userFraction&quot;: 3.14, # Fraction of users who are eligible to receive the release. 0 &lt; fraction &lt; 1. To be set, release status must be &quot;inProgress&quot; or &quot;halted&quot;.
199 &quot;versionCodes&quot;: [ # A list of all version codes of APKs that will be exposed to the users of this track when this release is rolled out. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases.
200 &quot;A String&quot;,
201 ],
202 },
203 ],
204 &quot;track&quot;: &quot;A String&quot;, # Identifier for this track.
205 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700206</div>
207
208<div class="method">
209 <code class="details" id="list">list(packageName, editId)</code>
210 <pre>Lists all the track configurations for this edit.
211
212Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 packageName: string, Unique identifier for the Android app that is being updated; for example, &quot;com.spiffygame&quot;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 editId: string, Unique identifier for this edit. (required)
215
216Returns:
217 An object of the form:
218
219 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 &quot;kind&quot;: &quot;androidpublisher#tracksListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;androidpublisher#tracksListResponse&quot;.
221 &quot;tracks&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700222 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;releases&quot;: [ # A list of all active releases in this track during a read request. On an update request, it represents desired changes.
224 {
225 &quot;controls&quot;: [
226 {
227 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;end&quot;: &quot;A String&quot;,
230 &quot;start&quot;: &quot;A String&quot;,
231 },
232 ],
233 &quot;stratifiedSamplings&quot;: [
234 {
235 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700236 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;end&quot;: &quot;A String&quot;,
238 &quot;start&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700239 },
240 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;stratum&quot;: {
242 &quot;brand&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700243 },
244 },
245 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;versionCodes&quot;: [
247 &quot;A String&quot;,
248 ],
249 },
250 ],
251 &quot;countryTargeting&quot;: {
252 &quot;countries&quot;: [
253 &quot;A String&quot;,
254 ],
255 &quot;includeRestOfWorld&quot;: True or False,
256 },
257 &quot;inAppUpdatePriority&quot;: 42, # In-app update priority of the release. All newly added APKs in the release will be considered at this priority. in_app_update_priority can take values between [0, 5]. 5 is the highest priority. Default priority is 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.
258 &quot;name&quot;: &quot;A String&quot;, # The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs.
259 &quot;pinnedVersions&quot;: [
260 {
261 &quot;targetings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;countryCodes&quot;: [
264 &quot;A String&quot;,
265 ],
266 &quot;devices&quot;: [
267 {
268 &quot;brand&quot;: &quot;A String&quot;,
269 &quot;device&quot;: &quot;A String&quot;,
270 &quot;product&quot;: &quot;A String&quot;,
271 },
272 ],
273 &quot;phoneskyVersions&quot;: [
274 &quot;A String&quot;,
275 ],
276 &quot;sdkVersions&quot;: [
277 42,
278 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700279 },
280 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 &quot;versionCodes&quot;: [
282 &quot;A String&quot;,
283 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700284 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 ],
286 &quot;releaseNotes&quot;: [ # The description of what is new in the app in this release.
287 {
288 &quot;language&quot;: &quot;A String&quot;, # The language code, in BCP 47 format (eg &quot;en-US&quot;).
289 &quot;text&quot;: &quot;A String&quot;, # The text in the given `language`.
290 },
291 ],
292 &quot;rollbackEnabled&quot;: True or False,
293 &quot;sampling&quot;: {
294 &quot;modRanges&quot;: [
295 {
296 &quot;end&quot;: &quot;A String&quot;,
297 &quot;start&quot;: &quot;A String&quot;,
298 },
299 ],
300 &quot;modulus&quot;: &quot;A String&quot;,
301 &quot;salt&quot;: 42,
302 &quot;stratifiedSamplings&quot;: [
303 {
304 &quot;modRanges&quot;: [
305 {
306 &quot;end&quot;: &quot;A String&quot;,
307 &quot;start&quot;: &quot;A String&quot;,
308 },
309 ],
310 &quot;stratum&quot;: {
311 &quot;brand&quot;: &quot;A String&quot;,
312 },
313 },
314 ],
315 &quot;useAndroidId&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;status&quot;: &quot;A String&quot;, # The desired status of this release.
318 &quot;userFraction&quot;: 3.14, # Fraction of users who are eligible to receive the release. 0 &lt; fraction &lt; 1. To be set, release status must be &quot;inProgress&quot; or &quot;halted&quot;.
319 &quot;versionCodes&quot;: [ # A list of all version codes of APKs that will be exposed to the users of this track when this release is rolled out. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases.
320 &quot;A String&quot;,
321 ],
322 },
323 ],
324 &quot;track&quot;: &quot;A String&quot;, # Identifier for this track.
325 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700326 ],
327 }</pre>
328</div>
329
330<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700331 <code class="details" id="patch">patch(packageName, editId, track, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700332 <pre>Updates the track configuration for the specified track type. This method supports patch semantics.
333
334Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 packageName: string, Unique identifier for the Android app that is being updated; for example, &quot;com.spiffygame&quot;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700336 editId: string, Unique identifier for this edit. (required)
337 track: string, The track to read or modify. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700338 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700339 The object takes the form of:
340
341{
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;releases&quot;: [ # A list of all active releases in this track during a read request. On an update request, it represents desired changes.
343 {
344 &quot;controls&quot;: [
345 {
346 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700347 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;end&quot;: &quot;A String&quot;,
349 &quot;start&quot;: &quot;A String&quot;,
350 },
351 ],
352 &quot;stratifiedSamplings&quot;: [
353 {
354 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700355 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700356 &quot;end&quot;: &quot;A String&quot;,
357 &quot;start&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 },
359 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 &quot;stratum&quot;: {
361 &quot;brand&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700362 },
363 },
364 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 &quot;versionCodes&quot;: [
366 &quot;A String&quot;,
367 ],
368 },
369 ],
370 &quot;countryTargeting&quot;: {
371 &quot;countries&quot;: [
372 &quot;A String&quot;,
373 ],
374 &quot;includeRestOfWorld&quot;: True or False,
375 },
376 &quot;inAppUpdatePriority&quot;: 42, # In-app update priority of the release. All newly added APKs in the release will be considered at this priority. in_app_update_priority can take values between [0, 5]. 5 is the highest priority. Default priority is 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.
377 &quot;name&quot;: &quot;A String&quot;, # The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs.
378 &quot;pinnedVersions&quot;: [
379 {
380 &quot;targetings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700381 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700382 &quot;countryCodes&quot;: [
383 &quot;A String&quot;,
384 ],
385 &quot;devices&quot;: [
386 {
387 &quot;brand&quot;: &quot;A String&quot;,
388 &quot;device&quot;: &quot;A String&quot;,
389 &quot;product&quot;: &quot;A String&quot;,
390 },
391 ],
392 &quot;phoneskyVersions&quot;: [
393 &quot;A String&quot;,
394 ],
395 &quot;sdkVersions&quot;: [
396 42,
397 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700398 },
399 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;versionCodes&quot;: [
401 &quot;A String&quot;,
402 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700403 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 ],
405 &quot;releaseNotes&quot;: [ # The description of what is new in the app in this release.
406 {
407 &quot;language&quot;: &quot;A String&quot;, # The language code, in BCP 47 format (eg &quot;en-US&quot;).
408 &quot;text&quot;: &quot;A String&quot;, # The text in the given `language`.
409 },
410 ],
411 &quot;rollbackEnabled&quot;: True or False,
412 &quot;sampling&quot;: {
413 &quot;modRanges&quot;: [
414 {
415 &quot;end&quot;: &quot;A String&quot;,
416 &quot;start&quot;: &quot;A String&quot;,
417 },
418 ],
419 &quot;modulus&quot;: &quot;A String&quot;,
420 &quot;salt&quot;: 42,
421 &quot;stratifiedSamplings&quot;: [
422 {
423 &quot;modRanges&quot;: [
424 {
425 &quot;end&quot;: &quot;A String&quot;,
426 &quot;start&quot;: &quot;A String&quot;,
427 },
428 ],
429 &quot;stratum&quot;: {
430 &quot;brand&quot;: &quot;A String&quot;,
431 },
432 },
433 ],
434 &quot;useAndroidId&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700435 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 &quot;status&quot;: &quot;A String&quot;, # The desired status of this release.
437 &quot;userFraction&quot;: 3.14, # Fraction of users who are eligible to receive the release. 0 &lt; fraction &lt; 1. To be set, release status must be &quot;inProgress&quot; or &quot;halted&quot;.
438 &quot;versionCodes&quot;: [ # A list of all version codes of APKs that will be exposed to the users of this track when this release is rolled out. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases.
439 &quot;A String&quot;,
440 ],
441 },
442 ],
443 &quot;track&quot;: &quot;A String&quot;, # Identifier for this track.
444}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445
446
447Returns:
448 An object of the form:
449
450 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;releases&quot;: [ # A list of all active releases in this track during a read request. On an update request, it represents desired changes.
452 {
453 &quot;controls&quot;: [
454 {
455 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700456 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 &quot;end&quot;: &quot;A String&quot;,
458 &quot;start&quot;: &quot;A String&quot;,
459 },
460 ],
461 &quot;stratifiedSamplings&quot;: [
462 {
463 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700464 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700465 &quot;end&quot;: &quot;A String&quot;,
466 &quot;start&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700467 },
468 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 &quot;stratum&quot;: {
470 &quot;brand&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700471 },
472 },
473 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700474 &quot;versionCodes&quot;: [
475 &quot;A String&quot;,
476 ],
477 },
478 ],
479 &quot;countryTargeting&quot;: {
480 &quot;countries&quot;: [
481 &quot;A String&quot;,
482 ],
483 &quot;includeRestOfWorld&quot;: True or False,
484 },
485 &quot;inAppUpdatePriority&quot;: 42, # In-app update priority of the release. All newly added APKs in the release will be considered at this priority. in_app_update_priority can take values between [0, 5]. 5 is the highest priority. Default priority is 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.
486 &quot;name&quot;: &quot;A String&quot;, # The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs.
487 &quot;pinnedVersions&quot;: [
488 {
489 &quot;targetings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700490 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700491 &quot;countryCodes&quot;: [
492 &quot;A String&quot;,
493 ],
494 &quot;devices&quot;: [
495 {
496 &quot;brand&quot;: &quot;A String&quot;,
497 &quot;device&quot;: &quot;A String&quot;,
498 &quot;product&quot;: &quot;A String&quot;,
499 },
500 ],
501 &quot;phoneskyVersions&quot;: [
502 &quot;A String&quot;,
503 ],
504 &quot;sdkVersions&quot;: [
505 42,
506 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700507 },
508 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 &quot;versionCodes&quot;: [
510 &quot;A String&quot;,
511 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700512 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700513 ],
514 &quot;releaseNotes&quot;: [ # The description of what is new in the app in this release.
515 {
516 &quot;language&quot;: &quot;A String&quot;, # The language code, in BCP 47 format (eg &quot;en-US&quot;).
517 &quot;text&quot;: &quot;A String&quot;, # The text in the given `language`.
518 },
519 ],
520 &quot;rollbackEnabled&quot;: True or False,
521 &quot;sampling&quot;: {
522 &quot;modRanges&quot;: [
523 {
524 &quot;end&quot;: &quot;A String&quot;,
525 &quot;start&quot;: &quot;A String&quot;,
526 },
527 ],
528 &quot;modulus&quot;: &quot;A String&quot;,
529 &quot;salt&quot;: 42,
530 &quot;stratifiedSamplings&quot;: [
531 {
532 &quot;modRanges&quot;: [
533 {
534 &quot;end&quot;: &quot;A String&quot;,
535 &quot;start&quot;: &quot;A String&quot;,
536 },
537 ],
538 &quot;stratum&quot;: {
539 &quot;brand&quot;: &quot;A String&quot;,
540 },
541 },
542 ],
543 &quot;useAndroidId&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;status&quot;: &quot;A String&quot;, # The desired status of this release.
546 &quot;userFraction&quot;: 3.14, # Fraction of users who are eligible to receive the release. 0 &lt; fraction &lt; 1. To be set, release status must be &quot;inProgress&quot; or &quot;halted&quot;.
547 &quot;versionCodes&quot;: [ # A list of all version codes of APKs that will be exposed to the users of this track when this release is rolled out. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases.
548 &quot;A String&quot;,
549 ],
550 },
551 ],
552 &quot;track&quot;: &quot;A String&quot;, # Identifier for this track.
553 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700554</div>
555
556<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700557 <code class="details" id="update">update(packageName, editId, track, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700558 <pre>Updates the track configuration for the specified track type.
559
560Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 packageName: string, Unique identifier for the Android app that is being updated; for example, &quot;com.spiffygame&quot;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 editId: string, Unique identifier for this edit. (required)
563 track: string, The track to read or modify. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700564 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700565 The object takes the form of:
566
567{
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &quot;releases&quot;: [ # A list of all active releases in this track during a read request. On an update request, it represents desired changes.
569 {
570 &quot;controls&quot;: [
571 {
572 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700573 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;end&quot;: &quot;A String&quot;,
575 &quot;start&quot;: &quot;A String&quot;,
576 },
577 ],
578 &quot;stratifiedSamplings&quot;: [
579 {
580 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700582 &quot;end&quot;: &quot;A String&quot;,
583 &quot;start&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700584 },
585 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;stratum&quot;: {
587 &quot;brand&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700588 },
589 },
590 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 &quot;versionCodes&quot;: [
592 &quot;A String&quot;,
593 ],
594 },
595 ],
596 &quot;countryTargeting&quot;: {
597 &quot;countries&quot;: [
598 &quot;A String&quot;,
599 ],
600 &quot;includeRestOfWorld&quot;: True or False,
601 },
602 &quot;inAppUpdatePriority&quot;: 42, # In-app update priority of the release. All newly added APKs in the release will be considered at this priority. in_app_update_priority can take values between [0, 5]. 5 is the highest priority. Default priority is 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.
603 &quot;name&quot;: &quot;A String&quot;, # The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs.
604 &quot;pinnedVersions&quot;: [
605 {
606 &quot;targetings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700607 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700608 &quot;countryCodes&quot;: [
609 &quot;A String&quot;,
610 ],
611 &quot;devices&quot;: [
612 {
613 &quot;brand&quot;: &quot;A String&quot;,
614 &quot;device&quot;: &quot;A String&quot;,
615 &quot;product&quot;: &quot;A String&quot;,
616 },
617 ],
618 &quot;phoneskyVersions&quot;: [
619 &quot;A String&quot;,
620 ],
621 &quot;sdkVersions&quot;: [
622 42,
623 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700624 },
625 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 &quot;versionCodes&quot;: [
627 &quot;A String&quot;,
628 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700629 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 ],
631 &quot;releaseNotes&quot;: [ # The description of what is new in the app in this release.
632 {
633 &quot;language&quot;: &quot;A String&quot;, # The language code, in BCP 47 format (eg &quot;en-US&quot;).
634 &quot;text&quot;: &quot;A String&quot;, # The text in the given `language`.
635 },
636 ],
637 &quot;rollbackEnabled&quot;: True or False,
638 &quot;sampling&quot;: {
639 &quot;modRanges&quot;: [
640 {
641 &quot;end&quot;: &quot;A String&quot;,
642 &quot;start&quot;: &quot;A String&quot;,
643 },
644 ],
645 &quot;modulus&quot;: &quot;A String&quot;,
646 &quot;salt&quot;: 42,
647 &quot;stratifiedSamplings&quot;: [
648 {
649 &quot;modRanges&quot;: [
650 {
651 &quot;end&quot;: &quot;A String&quot;,
652 &quot;start&quot;: &quot;A String&quot;,
653 },
654 ],
655 &quot;stratum&quot;: {
656 &quot;brand&quot;: &quot;A String&quot;,
657 },
658 },
659 ],
660 &quot;useAndroidId&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700661 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 &quot;status&quot;: &quot;A String&quot;, # The desired status of this release.
663 &quot;userFraction&quot;: 3.14, # Fraction of users who are eligible to receive the release. 0 &lt; fraction &lt; 1. To be set, release status must be &quot;inProgress&quot; or &quot;halted&quot;.
664 &quot;versionCodes&quot;: [ # A list of all version codes of APKs that will be exposed to the users of this track when this release is rolled out. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases.
665 &quot;A String&quot;,
666 ],
667 },
668 ],
669 &quot;track&quot;: &quot;A String&quot;, # Identifier for this track.
670}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700671
672
673Returns:
674 An object of the form:
675
676 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700677 &quot;releases&quot;: [ # A list of all active releases in this track during a read request. On an update request, it represents desired changes.
678 {
679 &quot;controls&quot;: [
680 {
681 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700682 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700683 &quot;end&quot;: &quot;A String&quot;,
684 &quot;start&quot;: &quot;A String&quot;,
685 },
686 ],
687 &quot;stratifiedSamplings&quot;: [
688 {
689 &quot;modRanges&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700690 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 &quot;end&quot;: &quot;A String&quot;,
692 &quot;start&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700693 },
694 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700695 &quot;stratum&quot;: {
696 &quot;brand&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700697 },
698 },
699 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;versionCodes&quot;: [
701 &quot;A String&quot;,
702 ],
703 },
704 ],
705 &quot;countryTargeting&quot;: {
706 &quot;countries&quot;: [
707 &quot;A String&quot;,
708 ],
709 &quot;includeRestOfWorld&quot;: True or False,
710 },
711 &quot;inAppUpdatePriority&quot;: 42, # In-app update priority of the release. All newly added APKs in the release will be considered at this priority. in_app_update_priority can take values between [0, 5]. 5 is the highest priority. Default priority is 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.
712 &quot;name&quot;: &quot;A String&quot;, # The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs.
713 &quot;pinnedVersions&quot;: [
714 {
715 &quot;targetings&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700716 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;countryCodes&quot;: [
718 &quot;A String&quot;,
719 ],
720 &quot;devices&quot;: [
721 {
722 &quot;brand&quot;: &quot;A String&quot;,
723 &quot;device&quot;: &quot;A String&quot;,
724 &quot;product&quot;: &quot;A String&quot;,
725 },
726 ],
727 &quot;phoneskyVersions&quot;: [
728 &quot;A String&quot;,
729 ],
730 &quot;sdkVersions&quot;: [
731 42,
732 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700733 },
734 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 &quot;versionCodes&quot;: [
736 &quot;A String&quot;,
737 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 ],
740 &quot;releaseNotes&quot;: [ # The description of what is new in the app in this release.
741 {
742 &quot;language&quot;: &quot;A String&quot;, # The language code, in BCP 47 format (eg &quot;en-US&quot;).
743 &quot;text&quot;: &quot;A String&quot;, # The text in the given `language`.
744 },
745 ],
746 &quot;rollbackEnabled&quot;: True or False,
747 &quot;sampling&quot;: {
748 &quot;modRanges&quot;: [
749 {
750 &quot;end&quot;: &quot;A String&quot;,
751 &quot;start&quot;: &quot;A String&quot;,
752 },
753 ],
754 &quot;modulus&quot;: &quot;A String&quot;,
755 &quot;salt&quot;: 42,
756 &quot;stratifiedSamplings&quot;: [
757 {
758 &quot;modRanges&quot;: [
759 {
760 &quot;end&quot;: &quot;A String&quot;,
761 &quot;start&quot;: &quot;A String&quot;,
762 },
763 ],
764 &quot;stratum&quot;: {
765 &quot;brand&quot;: &quot;A String&quot;,
766 },
767 },
768 ],
769 &quot;useAndroidId&quot;: True or False,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700770 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700771 &quot;status&quot;: &quot;A String&quot;, # The desired status of this release.
772 &quot;userFraction&quot;: 3.14, # Fraction of users who are eligible to receive the release. 0 &lt; fraction &lt; 1. To be set, release status must be &quot;inProgress&quot; or &quot;halted&quot;.
773 &quot;versionCodes&quot;: [ # A list of all version codes of APKs that will be exposed to the users of this track when this release is rolled out. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases.
774 &quot;A String&quot;,
775 ],
776 },
777 ],
778 &quot;track&quot;: &quot;A String&quot;, # Identifier for this track.
779 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700780</div>
781
782</body></html>