Skip to content

Search the documentation by title, section, or page text.

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#

  1. Go to the Google Play Developer Console.
  2. Select your app.
  3. Choose Dashboard or App Details in the left menu.
  4. Copy the Package Name. It looks like com.example.app.

Enabling the Google Play Developer API#

  1. Go to the Google Cloud Console.
  2. Select your project, or create one.
  3. Open the Google Play Android Developer API page.
  4. 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.

  1. Open the Service Accounts page in the Google Cloud Console.
  2. Choose + Create service account, or select an existing one.
  3. Enter the service account details, then grant it access to the project.
  4. Choose Done. The service account appears in the list.
  5. In the Actions column, open the kebab menu and choose Manage keys.
  6. Choose Add key → Create new key.
  7. 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.get

Entering the credentials in Botsi#

  1. Go to the Botsi dashboard at https://app.botsi.com and choose Home.
  2. Find your app and choose Setup Guide under App Setup.
  3. On the Connect App Stores tab, enable the toggle for Google Play Store availability.
  4. Choose Android App Settings.
  5. Paste the Package Name into its field.
  6. Upload the service account JSON file.
  7. Choose Save.