# Google Play integration

How to integrate Google Play store reviews with Chattermill

Written by Mikhail Dubov  
November 17, 2021

We can integrate directly with Google Play via their API. All we need from you is a JSON key file, and then we can take care of the rest!

**To generate a JSON file:**

01. Visit the Google API console and login with your Google Play Console account

02. Create a new project titled 'Chattermill'

03. Go to API & Services in the left-hand navigation panel and select Dashboard

04. Enable API & Services if you haven't already done so

05. Type `androidpublisher` in Search for APIs & Service

06. Enable Google Play Android Developer API

07. In the left-hand menu, select `Credentials` and click `Credentials in APIs & Services` link

08. Click on `Create Credentials` and select `Service account key`

09. Select `New service account` and complete form. Select `Role = Service Account User`, then select `Key type: JSON`

10. Visit [https://play.google.com/apps/publish](https://play.google.com/apps/publish). Go to `settings` on the left, select `API Access`, and then `Service Accounts`.

11. Here, you should see the Service account you created for Chattermill. Select `Grant Permission` and then select `Read only access`.

For your reference, the JSON file should look like the below:

{ “type”: “service_account”, “project_id”: "project-123123", “private_key_id”: “1234567890123456789012345678901234567890", “private_key”: “-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n”, “client_email”: “project@project-123123.iam.gserviceaccount.com”, “client_id”: “123123...123123", “auth_uri”: “https://accounts.google.com/o/oauth2/auth", “token_uri”: “https://accounts.google.com/o/oauth2/token", “auth_provider_x509_cert_url”: “https://www.googleapis.com/oauth2/v1/certs", “client_x509_cert_url”: “https://www.googleapis.com/robot/v1/metadata/x509/project%project-123123.iam.gserviceaccount.com" }
