@smbcloud / smbcloud-ascapi Mirror · read-only / commits / d048ba3
Fork 0

Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.

Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git

Synced Nov 25, 09:15 UTC

Document the manual gates in a new app's first Google Play release

The API cannot create an app, fill the content forms, or make the first production or open-testing release on a draft app. Record the order, the exact errors, the one-time service account setup, and what is still untested. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Seto Elkahfi committed Nov 8, 2026 at 14:04 UTC d048ba3ec6cc6c20f98865dff56fc296b8e4e7ee
3 files changed +72 -1
.agents/AGENTS.md
+8
@@ -325,6 +325,14 @@ failed upload keeps the old set. MCP exposes only the reads
325 CLI-only, like review submission. The operations live in
326 `crates/frontend/src/play.rs`.
327
328 +**New apps.** An app that has never been published is a draft app, and the API cannot take
329 +it public. Creating the app, the content forms, and the first production or open-testing release
330 +are Console steps. The API answers `Staged rollout is not permitted on draft app.` or
331 +`Only releases with status draft may be created on draft app.` when you try. Do not retry with other
332 +flags; send the release from Console. `products create` also needs an uploaded build that
333 +declares `com.android.vending.BILLING`. The full order is in
334 +[`docs/google-play-new-app.md`](../docs/google-play-new-app.md).
335 +
336 ## Microsoft Store (CLI)
337
338 `crates/msstore` is a sibling of `crates/play` and does not depend on `core`.
docs/README.md
+1 -1
@@ -1,3 +1,3 @@
1 # Docs
2
3 -[Install](install.md) · [Credentials](credentials.md) · [AppGallery](appgallery.md) · [Architecture](architecture.md)
3 +[Install](install.md) · [Credentials](credentials.md) · [AppGallery](appgallery.md) · [New app on Google Play](google-play-new-app.md) · [Architecture](architecture.md)
docs/google-play-new-app.md new
+63
@@ -0,0 +1,63 @@
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` has no bundle upload yet (issue #61). Upload it as a draft internal release, then 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 are expected to go through the API: `asc play tracks promote` and staged rollout.
56 +Untested for Onde Onde until Google approves its first open test. When someone runs a dry run of
57 +`tracks promote` against a published app and it succeeds, change "expected" to "verified" here.
58 +
59 +## Account rules that affect the first release
60 +
61 +- A personal developer account created after November 2023 needs a closed test with at least 12
62 + testers for 14 days before it can request production access. Organisation accounts are exempt.
63 +- With Managed publishing on, an approved release waits until a person presses Publish in Console.