Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 2.41 KB

google-play.mdx

File metadata and controls

61 lines (50 loc) · 2.41 KB
position description
2
Google Play credentials guide.

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.

:::info 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. :::

Link your developer account

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: :::note
  • Pub/Sub Admin - This role enables server notifications.
  • Monitoring Viewer - This role allows monitoring of the notification queue
::: ![](/img/credentials/google-play-api-access-create-service-account-roles.png) 6. Click **Done**. 7. In the Google Cloud Console, select **Actions** > **Manage keys**. ![](/img/credentials/google-play-api-access-create-service-account-keys.png) 8. Select **Add Key** > **Create new key**. ![](/img/credentials/google-play-api-access-create-service-account-keys-create.png) 9. Make sure **JSON** is selected, and click **Create**. ![](/img/credentials/google-play-api-access-create-service-account-keys-create-json.png)

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