How to connect Google Play to ChartMogul

You will need to be an Admin in ChartMogul and the Account Owner in Google Play Developer Console to complete the following steps.

Before you begin

There are a few things that you need to understand and do on your Google Play console before creating a Google Play data source in ChartMogul. We listed the things you need to do before you start setting up your Google Play integration.

Package Name

Get your Google Play app’s package name (i.e. com.pecode.purchaseappdemo) by opening your Google Play console and looking at your list of published apps. It can be found below the app name of the app you want to import.

packange_name.png

Setup API Access Client and create a Service Account JSON Key

You need to setup an API access client using service account JSON key by following the steps provided on this link. You need to be the logged in as the owner when doing these steps. If you see a similar page as the one below, this means that you don't have enough access to proceed with the setup.

Screenshot_2021-04-23_133821.png

 

Please make sure that you follow these steps correctly. Also, please ensure that the Role is set to Owner and that you select JSON as the key type (see below):

json_key.png

One important thing to take note is after you click Grant Access, you need to edit the Role and add the Manage Orders permission.

roles.png

Google Play may take up to 24 hours to update the permissions for newly created accounts.

Google Play Storage Bucket ID (required when importing using the daily Sales report)

You will only need this if you choose the default integration type option and will not be sending the Google Play transaction payloads manually. You can get this by:

  1. Go to your Google Play console and select “Download Reports” on the left navigation bar.
  2. Choose your app.
  3. Once you click your app, you’ll find “Direct reports URIs” at the bottom of the page with a URL that looks like gs://pubsite_prod_rev_01234501234567890123/reviews
  4. pubsite_prod_rev_01234501234567890123 is your Google Play Storage Bucket ID.

Selecting the Integration type

Our Google Play integration can be configured in two ways - one doesn’t  require development work (first option and is set as the default) and the other that does. Each integration type has its own advantages and disadvantages which we’ve explained here. Please make sure that you read and understand how each integration type behaves so you are aware of its tendencies and limitations.

integration_type_option.png

If you select the “I’ll send the payloads via the payloads URL” option, ChartMogul will not automatically import new or existing data. The steps in this article will help you create a payloads URL which will allow your developer to send data with minimal formatting.

After completing the steps below you will need a developer to manually send data known as payloads. Without sending payloads, customer data will not populate in ChartMogul.

The steps to use that payloads URL once it's been generated can be found in our developer tutorial.

Connecting your Google Play account

  1. Click the data platform icon on the left menu to navigate to the Data platform tab. Alternatively, you can click the link mentioned below to directly move to the data platform tab - https://app.chartmogul.com/#/data-platform
  2. Add a data source by clicking Add a data source button in the Home section.data_source.png
  3. In the popup, select "Google Play"google_play.png
  4. Once you select your data source type, enter a name for your data source and click on Next.ds_name.png
  5. Complete the form by filling out the fields with the data we asked you to get from the Before you begin section of this article. Once all the fields have been filled out, click Connect.credentials.png
  6. If you managed to input all the correct data and if you choose “Import my data using the daily Sales report” as the integration type, the import should start automatically:import_1.png
  7. If you choose “I’ll send the payloads via the payloads URL” as the integration type and you entered all the data correctly into the form, a Payloads URL will be generated and displayed. It can be found between the UUID field and the Re-sync button (see below). Use the Payloads URL to import historical and new Google Play purchases into ChartMogul. Read the developer tutorial for importing purchase payloads.import_2.png
Was this article helpful?