google-cloud-platformgoogle-playgoogle-play-consoleservice-accounts

Setting up a GCP Service Account to use Google Play Store Dev API


I need to create a backend logic to use Google Play Developer API.

This API does not support API Keys but should use Service Account for calls.

What I did:

  1. Created a new service account
  2. Added Owner permissions (for testing purposes)
  3. Generated the key
  4. In the Play console, I configured the API Access (https://play.google.com/console/u/0/developers//api-access) - added Admin permissions for the app and account

Running the code leads to error 401.

I am not sharing the test code, because in the same GCP project I see another service account configured some time ago, and my test backend code works well with the associated key. But not with the newly created one.

I compared all permissions between these two accounts, but it is still 401. I can assume it is related to the service account configuration itself because it is 401 (having issues with API Access might give 403). Both accounts are enabled.

Any ideas about what other differences can be to check?


Solution

  • I recommend following this blog post which shows how to set up a Google Cloud service account with the Google Play Developer API including linking a Google Cloud project.

    https://www.devdigital.com/techhub/detail/google-play-developer-api-how-to-create-a-service-account-