In this article you will learn how to create a service account, grant the service account access to your Google Cloud project, and create the 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 a Google Cloud project
- Enable the API
- Configure the service accounts (OAuth is not necessary)
Quick Guide
- Open the Google Cloud Console and navigate to IAM and Administration/Service Accounts.
- Click on Create Service Account.
- Enter the details for the service account and click on Create and continue.
- Select the role Service Account User and click on Done.
- Go to the Keys tab, click on Add Key and select Create new key.
- Select JSON as the key type and click on Create.
- Download the JSON file and save it securely.
- Open the Google Play Console and navigate to Users and Permissions.
- Add the service account using the copied email address and grant admin rights.
Create Service Account
To create a service account, open the Google Cloud Console and go to IAM and Administration/Service Accounts. Click on Create Service Account, enter the necessary details like the name and ID of the service account, and click on 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 JSON as the key type. Click on Create to download the key file. You will find the file in the download folder. Save 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 and 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 keep the JSON key file secure as it is essential for the authentication of your service account. You can then upload this file in the configurator.