How to create a private key and set up permissions for Google Play
In order to deliver your application to Google Play you need to do two things:
- Create a service account with a private key in
- Set up the appropriate permissions from the Google Play Developer Console:
Step 1: Create service account
- Open the Google Play Developers Console (you’ll need to log in if you haven’t done it already)
In the left sidebar, click the Settings → API access
Now click Create Service Account. A pop-up will appear:
Open the Google API Console. Click the Create Service Account button:
Enter the details and check Furnish a new private key—make sure to select JSON as the key type
- Click the Create button to create the service account—the private key for the service account will be downloaded
WARNING: At this point the JSON private key has been downloaded to your computer (you’ll need to upload this file to Buddy in the next step). Make sure that you store the private key in a secure place as you won’t be able to retrieve it if it’s lost.
Step 2: Set up permissions
- Return to the Google Play Developer Console
- In the Service Accounts panel, find the account that you’ve just created and click Grant Access
Here you can adjust permissions for the service account. Make sure to select Release manager in the Role dropdown
- Click Add User when done.
Congratulations! You can now deploy your application to the Google Play store.