Skip to main content

Google Play Credentials

Requests to the Google Play Developer API requires authentication and scope. To authenticate your server, you will need to create a service account and download a JSON key file google-app-credentials.json. The path to the file should be passed as the GOOGLE_APPLICATION_CREDENTIALS environment variable.


It can take up to 36 hours for your Play Credentials to work properly with Google Play Developer API. Yoy may see Invalid Play Store credentials error message.

Your Google Play Developer Account needs to be linked to Google Cloud Project.

  1. Go to Google Play Developer Console.
  2. From the left menu, under Set up, select API access.
  3. Scroll down and click Choose a project to link.
  4. Select the project you want to link, then agree to the terms of service.

Create a service account

Next, you will need to create a service account.

  1. From Google Play Console, go to Create service account
  2. Select a project if you have not done so already.
  3. In the top menu, click Create new service account.
  4. Enter a name for the service account.
  5. Add two Roles:
    • Pub/Sub Admin - This role enables server notifications.
    • Monitoring Viewer - This role allows monitoring of the notification queue
  6. Click Done.
  7. In the Google Cloud Console, select Actions > Manage keys.
  8. Select Add Key > Create new key.
  9. Make sure JSON is selected, and click Create.

Set the .env key GOOGLE_APPLICATION_CREDENTIALS to the JSON file path.