An API key is required to connect a Branded App to Google Play Console. The steps below cover creating a Google Cloud project, generating API credentials, and enabling the necessary APIs.
What is an API key?
API stands for Application Programming Interface. APIs provide the means for different software applications to communicate with each other.
An API key is a unique string of letters and numbers used to identify a software app when it tries to communicate with another app. When a Branded App reaches out to the Google Play Console to exchange data, Google uses the API key to confirm identity. Without an API key, Google won’t be able to recognize the app.
Create the Google API key
Tip:
You must be logged into a single Gmail / Google account to successfully complete all of the following steps. We recommend completing the steps in an incognito browser window to ensure you aren’t logged into more than one Google account.
Create a Google Cloud project
- Log into the Google Cloud Console (you must be logged in as the account owner) and agree to the terms and conditions:
- In the top left corner, click on the dropdown menu to Select a Project:
- When the next dialog box appears, select New Project in the top right corner:
- Enter the Project name and click Create:
- It will take a moment to complete. Once it does, click the Select Project link in the notification window at the top right:
Locate API credentials
- Click on APIs & Services in the left menu.
- Then, select Credentials:
- When the next page loads, if it’s not already selected, click on Credentials again:
- Locate the project dropdown menu at the top left next to Google Cloud and make sure the project is selected.
(In the screenshot below, the project name displays as My PGMacDesign Project. Your project name will be different.)
Create API credentials
- With the project selected, make sure you’re on the Credentials tab on the left.
- Click + Create Credentials.
- Select Service account:
- Navigate to “Step 1: Service account details”.
- Enter a Service account name of your choice (for example, your business name).
- The Service account ID will be created automatically.
- Enter a short Service account description (for example, “Service account for my Android app”).
- Click Create and Continue:
- Navigate to “Step 2: Grant this service account access to project”.
- Click Select a role.
- Select Basic as the access type and Owner as the role type.
- Click Continue:
- Skip “Step 3: Grant users access to this service account”.
Leave this section blank.
- Click Done to continue:
Create an API key
You should now see a Service Account listed on the Credentials page under Service Accounts:
- First, copy the Service Account Email Address and set it aside for now as you’ll be using it in a later step.
- Then click on the Service Account Email Address to open the account.
- Select the Keys tab.
- Click Add Key.
- Select Create new key:
- When prompted to select the key type for download, select JSON.
You must select the JSON option for this step.
- Click Create:
The JSON file will download to your computer locally (you’ll typically find it in your Downloads folder). This is the file you’ll need to upload to Kajabi during the intake process.
Enable the API
Next, you’ll need to enable the API within the Google Cloud Console.
To enable the API:
- Click this link: https://console.cloud.google.com/apis/library/androidpublisher.googleapis.com
- Then, click the blue ENABLE button:
A progress spinner will appear for a minute or so, then you’ll be redirected to a page. At this point the API has been properly enabled.
One additional API that needs to be enabled is Firebase.
- Go here: Firebase Management API - Google Cloud Console
- Then, click Enable:
The page should automatically redirect you. To confirm it was successfully enabled, click on the same link and the screen should now look like this:
Confirm that you see API Enabled on the right side.
Add an authorized user
- Navigate to the Google Play Console and make sure you’re not clicked into a specific app.
- Click on Users and permissions in the menu at the left of the screen.
- Then, click the blue Invite new users button:
- Paste in the Service Account Email Address you just copied in the previous step.
- Then select the Admin checkbox under Account permissions.
- Click Invite User:
