Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.
Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git
Synced Nov 25, 09:15 UTC
md
79 lines
4.53 KB
| 1 | # First release of a new app on Google Play |
| 2 | |
| 3 | The Play Developer API cannot do everything for an app that has never been published. This page |
| 4 | lists what stays in Play Console, what `asc play` does, and the exact errors you get if you try the |
| 5 | API anyway. It was written from the first release of `com.ondeinference.OndeOnde` (2026-11-08). |
| 6 | Anything not tried is marked untested. |
| 7 | |
| 8 | The short answer to "does the first submission have to be manual?" is yes. After the first |
| 9 | release is published, the API takes over. |
| 10 | |
| 11 | ## Checklist, in order |
| 12 | |
| 13 | | # | Step | Console or `asc` | Notes | |
| 14 | |---|---|---|---| |
| 15 | | 1 | Create the app | Console only | The androidpublisher discovery document has no create endpoint. | |
| 16 | | 2 | Service account | Once per developer account | See [one-time setup](#one-time-setup-per-developer-account). One account serves every app. | |
| 17 | | 3 | First `.aab` | Console | `asc play bundles upload` puts it on a track as a draft release. On a draft app, roll it out in Console. | |
| 18 | | 4 | Version-code warning ("significantly higher than your previous") | Console | Click "Proceed anyway". A `YYYYMMDDhh` version code stays under the 2,100,000,000 cap through 2099. | |
| 19 | | 5 | One-time products | `asc play products create` | Only after an uploaded build declares `com.android.vending.BILLING`. Play does not allow creating the product before that. | |
| 20 | | 6 | Listing text, images, release notes | `asc play listings update`, `images replace`, `tracks set-notes` | Works on a draft app. All three committed. | |
| 21 | | 7 | Content rating, target audience, ads, app access, account-deletion URL, category and tags | Console only | No API. Data safety has `applications.dataSafety`, but it takes the CSV exported from Console. | |
| 22 | | 8 | Open testing countries and feedback contact | Console only | No API. | |
| 23 | | 9 | First release on production or open testing (`beta`) | **Console only** | Create the release and send it for review there. See below. | |
| 24 | |
| 25 | ### Why step 9 is manual |
| 26 | |
| 27 | On an app with no published release, the API rejects both of these, on `production` and on `beta`: |
| 28 | |
| 29 | ``` |
| 30 | Staged rollout is not permitted on draft app. |
| 31 | Only releases with status draft may be created on draft app. |
| 32 | ``` |
| 33 | |
| 34 | So on a draft app a workflow can only create draft releases. The first public release is a |
| 35 | Console step. |
| 36 | |
| 37 | Untested: whether the API can complete (not draft) a release on the internal track of a draft app. |
| 38 | The internal release of Onde Onde was rolled out from Console. |
| 39 | |
| 40 | ## One-time setup per developer account |
| 41 | |
| 42 | Done by hand once; every app on the account reuses it. |
| 43 | |
| 44 | 1. In Google Cloud, create or pick a project and enable the Google Play Android Developer API. |
| 45 | 2. Create a service account in that project and download a JSON key. |
| 46 | 3. In Play Console, Users and permissions, invite the service account's email with account-level |
| 47 | permissions. The commands in this repo need to read app information, manage store presence |
| 48 | (listings, images), release to testing tracks and production, and manage products. Which set is |
| 49 | the minimum was not tested. |
| 50 | 4. Hand the key to `asc` with `--play-service-account`, `PLAY_SERVICE_ACCOUNT_JSON_PATH`, or the |
| 51 | contents in `PLAY_SERVICE_ACCOUNT_JSON`. See [credentials](credentials.md). |
| 52 | |
| 53 | ## After the first publish |
| 54 | |
| 55 | Later releases go through the API: `asc play bundles upload`, `asc play tracks promote` and |
| 56 | staged rollout. On 2026-11-09, `tracks promote --dry-run` from internal to alpha, beta and |
| 57 | production succeeded against the published `com.ondeinference.OndeOnde`. As of 2026-11-17 that app |
| 58 | is live on production (1.0.0, versionCode 2026111110), and with a release published the draft-app |
| 59 | errors in step 9 no longer appear. A real (non-dry-run) promote through the API is still untested. |
| 60 | |
| 61 | ### When the app has rejected changes |
| 62 | |
| 63 | While a rejection is pending, Play refuses a plain commit: |
| 64 | |
| 65 | ``` |
| 66 | Changes cannot be sent for review automatically. Please set the query parameter |
| 67 | changesNotSentForReview to true. |
| 68 | ``` |
| 69 | |
| 70 | Pass `--changes-not-sent-for-review` to `bundles upload`, `tracks promote` and `tracks set-notes`. |
| 71 | The changes are committed but not sent; pressing "Send changes for review" in Publishing overview |
| 72 | is a Console step. Once the changes are sent, Play says the opposite for the same flag |
| 73 | (`changesNotSentForReview must not be set`), so leave it off when nothing is pending. |
| 74 | |
| 75 | ## Account rules that affect the first release |
| 76 | |
| 77 | - A personal developer account created after November 2023 needs a closed test with at least 12 |
| 78 | testers for 14 days before it can request production access. Organisation accounts are exempt. |
| 79 | - With Managed publishing on, an approved release waits until a person presses Publish in Console. |