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.
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.
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.
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):
One important thing to take note is after you click Grant Access, you need to edit the Role and add the Manage Orders permission.
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:
- Go to your Google Play console and select “Download Reports” on the left navigation bar.
- Choose your app.
- 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
- 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.
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
- 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
- Add a data source by clicking Add a data source button in the Home section.
- In the popup, select "Google Play"
- Once you select your data source type, enter a name for your data source and click on Next.
- 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.
- 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:
- 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.