Skip to main content
Google Play

How to create API credentials for Google Play

Baremetrics avatar
Written by Baremetrics
Updated over a week ago

You will need to be an Admin on Baremetrics, and an Account Owner in Google Play Developer Console.

Please follow the steps below to retrieve the required API credentials to use Google Play with Baremetrics.

Step 1:

Login and enable API

  1. Go to the Google Cloud Console https://console.cloud.google.com

  2. Click on API & Services

  3. Select Enabled APIs and make sure the following APIs are enabled:
    a. Google Play Android Developer API
    b. Cloud Storage
    c. Cloud Storage API
    d. Google Cloud Storage JSON API
    e. Google Play Developer Reporting API

Step 2:

Create service account

  1. Create a service account by navigating to IAM and Admin > Service Accounts.

  2. Click on + CREATE SERVICE ACCOUNT

  3. Enter a name for the service and an optional description

Click on Create and Continue


Step 3:

Generate API key

  1. Once saved, Google will ask to grant this service account access to the project, select Owner as the role.

  2. Select the service account you've just created

  3. Select the Keys tab

  4. Click on Add Key

  5. Click on Create Key

  6. Select the JSON option

  7. Click CREATE and download the JSON key automatically

Step 4:

Grant specific permissions

Add the service account on Google Play Console

  1. Navigate to Users and Permissions and then Invite new users if you don't have users created already.

  2. Enter the email address associated with your service account (you can create one specific for Baremetrics.)

  3. Within the App permissions tab, click into the app you want to access and select View financial data and Manage orders and subscriptions.

  4. Click Apply to confirm.

  5. Then navigate to the Account permissions tab to the left of that and select View app information and download bulk reports (read-only), View financial data, orders and cancellation survey responses, and Manage orders and subscriptions.

  6. Click Add user. Your service account will be added to your Google Play account.

Permissions will need to be enabled accordingly or the integration will fail:

Step 5:

Add storage bucket and JSON keys with us

Now you'll need to retrieve your Google Play Store storage bucket ID & Service Account JSON Key:

  1. Go to your Google Play console and select Download Reports > Financial.

  2. Select "Download Reports" > "Financial" in the menu on the left.

  3. Under Estimated sales reports, click the button to Copy Cloud Storage URI.

  4. From that URI you can remove the gs:// and /reviews portions leaving only the Bucket ID, which is formatted like this: pubsite_prod_rev_123456 (this is what you'll use to connect Google with Baremetrics)

Head on over to https://app.baremetrics.com/settings/connections and add the credentials!

Please note: Sometimes Google needs a bit of time to propagate API changes. It can take upwards of 24 hours. If the issue persists after that, let us know.

Did this answer your question?