Connect to Google Play
Connecting Botsi to Google Play takes three things: your app's Package Name, the Google Play Developer API enabled in a Google Cloud project, and a service account key file that authorizes Botsi to use it.
This page covers collecting them. Two related pages finish the job: the service account also needs permissions in the Play Console (Grant Permissions), and two further APIs need enabling (Enable Developer APIs).
Finding your Package Name#
- Go to the Google Play Developer Console.
- Select your app.
- Choose Dashboard or App Details in the left menu.
- Copy the Package Name. It looks like
com.example.app.
Enabling the Google Play Developer API#
- Go to the Google Cloud Console.
- Select your project, or create one.
- Open the Google Play Android Developer API page.
- Search for Google Play Developer API and choose Enable.
Creating the service account key file#
The service account key links your Google Cloud project to the Play Developer Console and grants the permissions needed for in-app purchase operations.
- Open the Service Accounts page in the Google Cloud Console.
- Choose + Create service account, or select an existing one.
- Enter the service account details, then grant it access to the project.
- Choose Done. The service account appears in the list.
- In the Actions column, open the kebab menu and choose Manage keys.
- Choose Add key → Create new key.
- Select JSON as the key type and choose Create.
The key downloads automatically. Store it somewhere safe. You upload it to Botsi in the next section.
Choosing the role#
The straightforward option is Owner or Editor, plus Pub/Sub Admin.
For a least-privilege setup, create a custom role with exactly these permissions:
iam.serviceAccounts.actAs
pubsub.topics.attachSubscription
pubsub.topics.get
pubsub.topics.create
pubsub.topics.getIamPolicy
pubsub.topics.setIamPolicy
pubsub.subscriptions.get
pubsub.subscriptions.create
androidpublisher.purchases.subscriptions.get
androidpublisher.purchases.products.get
androidpublisher.inappproducts.getThe JSON key is a credential
Anyone holding it can act as this service account against your Play Console data. Do not commit it to a repository, and do not paste it into a support ticket.
Upload it to Botsi and keep your copy somewhere access-controlled.
Entering the credentials in Botsi#
- Go to the Botsi dashboard at https://app.botsi.com and choose Home.
- Find your app and choose Setup Guide under App Setup.
- On the Connect App Stores tab, enable the toggle for Google Play Store availability.
- Choose Android App Settings.
- Paste the Package Name into its field.
- Upload the service account JSON file.
- Choose Save.