Skip to content

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 ​

  1. Open the Google Cloud console and pick a project, or create one for publishing.
  2. Open the Google Play Android Developer API page and select Enable.

2. Create the service account ​

  1. In the Cloud console, open IAM & Admin → Service accounts and select Create service account.
  2. Give it a name such as play-publisher. It needs no Cloud roles.
  3. 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 ​

  1. In the Play Console, open Users and permissions and select Invite new users.
  2. Enter the service account's email address (it ends in iam.gserviceaccount.com).
  3. Under App permissions, add your app and grant what StorePilot needs:
ToGrant
Upload to internal and testing tracksRelease apps to testing tracks
Release to production, halt, and resumeRelease to production, exclude devices, and use Play App Signing
Pull, diff, and push the store listingManage store presence
  1. 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 pointWhere the key goes
Gradle pluginserviceAccountJson = providers.environmentVariable("PLAY_SERVICE_ACCOUNT_JSON") or serviceAccountFile = ... in googlePlay { }
GitHub ActionThe google-play-service-account-json input, from a repository secret
Command lineSTOREPILOT_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.notes

If it fails, Troubleshooting lists the usual causes: the API is not enabled, the account was not invited, or the package name is wrong.

Released under the Apache License 2.0.