Connect Google Play
StorePilot talks to the Google Play Developer API as a service account: a Google Cloud identity that you invite into your Play Console account with only the permissions it needs.
You do this once per Play Console account. Google no longer requires linking a Cloud project in the Play Console; inviting the service account is enough.
1. Enable the API
- Open the Google Cloud console and pick a project, or create one for publishing.
- Open the Google Play Android Developer API page and select Enable.
2. Create the service account
- In the Cloud console, open IAM & Admin → Service accounts and select Create service account.
- Give it a name such as
play-publisher. It needs no Cloud roles. - Open the new account, go to Keys → Add key → Create new key, and choose JSON. The file downloads once; store it somewhere safe and never commit it.
No key file at all
If your organization blocks key creation, or you prefer not to store keys, the GitHub Action can use Workload Identity Federation instead of a JSON key.
3. Invite it into the Play Console
- In the Play Console, open Users and permissions and select Invite new users.
- Enter the service account's email address (it ends in
iam.gserviceaccount.com). - Under App permissions, add your app and grant what StorePilot needs:
| To | Grant |
|---|---|
| Upload to internal and testing tracks | Release apps to testing tracks |
| Release to production, halt, and resume | Release to production, exclude devices, and use Play App Signing |
| Pull, diff, and push the store listing | Manage store presence |
- Select Invite user. If the first call fails with a permission error right after the invitation, wait a little and try again.
4. Give StorePilot the key
| Entry point | Where the key goes |
|---|---|
| Gradle plugin | serviceAccountJson = providers.environmentVariable("PLAY_SERVICE_ACCOUNT_JSON") or serviceAccountFile = ... in googlePlay { } |
| GitHub Action | The google-play-service-account-json input, from a repository secret |
| Command line | STOREPILOT_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON (the content) or STOREPILOT_GOOGLE_PLAY_SERVICE_ACCOUNT_FILE (a path) |
Without any of these, StorePilot uses Application Default Credentials.
Check the connection
A read-only command is the quickest test:
sh
storepilot listing diff --package com.example.notesIf it fails, Troubleshooting lists the usual causes: the API is not enabled, the account was not invited, or the package name is wrong.