To obtain the KEY_FILE (a JSON key file) for accessing the Google Play Developer API, you’ll need to create a service account and generate a key in the Google Cloud Platform (GCP), then link this service account to your Google Play Developer account. Here’s a step-by-step guide:
If you don’t already have a Google Cloud Platform project, you’ll need to create one:
- Go to Google Cloud Console > APIs & Services
- Search for “Google Play Android Developer API”.
- Enable
- Go to Google Play Console > Users & Permissions > Invite user > Enter service account email created at step 2.
- Add App > Select your app.
- Go to “Financial data” and select “View Financial data” and “Manage orders and subscriptions”
- Click “Invite User” to finish linking the service account.
- Wait at least 24 hours for Google to proceed the request.