In this article, you will learn how to create a service account, grant the service account access to your Google Cloud project, and create a private key (API Key) for the service account.
Preparation:
Follow the steps to create a new Google Cloud project. You can find the detailed documentation at this link. Please note that, unlike Google's documentation, we require admin rights.
- Create Google Cloud Project
- Activate API - click here for more details on API activation
- Configure the service accounts (OAuth is not required)
Quick Guide
- Open the Google Cloud Console and navigate to IAM & Administration/Service Accounts.
- Click on Create Service Account.
- Enter the details for the service account and click Create and Continue.
- Select the role Service Account User and click Done.
- Go to the Keys tab, click Add Key and select Create New Key.
- Select JSON as the key type and click Create.
- Download the JSON file and store it securely.
- Open the Google Play Console and navigate to Users & Permissions.
- Add the service account with the copied email address and grant admin rights.
Activate API
- Open the menu APIs & Services -> Enable APIs & Services
- Click on + Enable APIs & Services
- Search for Google Play Android Developer API and select it.
- Click on ENABLE
Create Service Account
To create a service account, open the Google Cloud Console and go to IAM & Administration/Service Accounts. Click on Create Service Account, provide the necessary details such as the service account name and ID, and click Create and Continue.
Grant Project Access
In the next step, select the role Service Account User for the service account. This allows the service account to operate in your project. Click on Done to save the settings.
Create Private Key
Go to the Keys tab and click on Add Key. Select Create New Key and then choose JSON as the key type. Click Create to download the key file. You will find the file in your download folder. Store it in a secure place, as it contains the API key.
Add Service Account to Google Play Console
Open the Google Play Console and navigate to Users & Permissions. Add the previously created service account by pasting the copied email address and granting admin rights.
Summary
After following these steps, you should have successfully created an API Key for your Google Play Store account. Ensure that you store the JSON key file securely, as it is essential for authenticating your service account. You can then upload this file in the configurator.