Skip to main content

Google Play

How to create API credentials for Google Play

Baremetrics avatar
Written by Baremetrics
Updated this week

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

Please follow the steps below to obtain the required API credentials for using Google Play with Baremetrics.

Step 1:

Log in and enable the 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 a 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.

These 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, please let us know.


Google Play Integration Limitations

While Baremetrics supports syncing subscription data from Google Play, there are several limitations due to restrictions in Google’s API:

No Customer Email Access

Google Play does not provide access to customer email addresses. As a result, Recover (Dunning) and Cancellation Insights are not supported; we are unable to send follow-up emails.

Trial Insights Unavailable

Google Play’s current API does not support access to historical trial data. Until a more robust trial-tracking API is released, Trial Insights will not function for Google Play subscriptions.

We will continue to monitor updates from Google and expand our support as their API evolves.

Did this answer your question?