Google Play

How to create API credentials for Google Play

Baremetrics avatar
Written by Baremetrics
Updated over a week ago

If you haven't already, start a trial here: https://app.baremetrics.com/signup

Step 1:

Please follow the steps below to retrieve the required API credentials:

Click on API & Services as shown above & retrieve your app package name:

You’ll need your app’s package name when connecting Google Play as a source in Baremetrics😊

Step 2:

Set up API access & make sure the following APIs are enabled.

  1. Use the drop-down to select a project.

  2. Navigate to APIs and Services > Enabled APIs and services to make sure that the required APIs and services are enabled:

  • Google Play Android Developer API

  • Cloud Storage

  • Cloud Storage API

  • Google Cloud Storage JSON API

  • Google Play Developer Reporting API

Step 3:

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

Enter a name for the service account and an optional description, once added click on Create and continue.

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

Next, select the service account associated:

This step will require you to manage the new API keys:

  • Select the Keys tab

  • Click on Add Key or Create Key

  • Select JSON as the Key type.

  • Finally, click CREATE.

Google generates a JSON file that your browser should download automatically. You’ll use this file when adding Google Play as a source in Baremetrics.

Step 4:

Within the App permissions tab, click the app that you want to give access and select View financial data and Manage orders and subscriptions. Permissions will need to be enabled accordingly or the integration will fail:

Step 5:

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. Head to the developer console: https://play.google.com/apps/publish

  3. Select "Download Reports" in the menu on the left.

  4. Select your app.

  5. At the bottom of the page, you'll find "Direct report URIs:" with a URL that looks something like: 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 between you changing or creating API keys and these changes propagating. We've found that giving it some time - an hour or so often fixes it… Obviously, if the issue persists, please let us know and we'll look further into it!

Did this answer your question?