Excerpt | ||
---|---|---|
| ||
OverviewCreating a Google Play Developer account is essential for anyone looking to publish Android apps to a broad audience. It is a straightforward process, but there are some specific steps and details to bear in mind, especially if you're creating an account for a company. Setting up a |
...
Google Account for Your Company
|
...
|
...
Initiating the Developer Account Setup on Google Console
|
...
|
...
There is a one-time registration fee of around $25 to create a Google Play Developer account. Make sure to process this payment. |
...
The requirement for setting up a developer account is to upload your government ID document e.g. driving license, and also your organization’s details, e.g. certificate of incorporation, VAT registration deed.
|
Granting Access to tech@spaceos.io
...
Info |
---|
It's always a good practice to have a backup person in your company with access to the Owner account. This ensures continuity in case the primary account manager is unavailable. |
Enabling API
After configuring your Google Cloud project, you need to enable the Google Play Developer API interface in it.
To enable the Google Play Developer API interface:
Open the Google Play Developer API page in the Google Cloud Console.
Click Enable.
Set up OAuth and service accounts You need to set up access to the Google Play Developer API using an OAuth client or service account. In most cases, a service account should be used to access the API.
Service accounts must be used in a secure environment, such as a server. The service account's login details must be managed securely, so they are not visible to anyone who does not have permission to use the API.
An OAuth client ID should be used if you want to access the API on behalf of a single user. For example, if your website needs to access the Google Play Developer API on behalf of a user from a web client, you can use the client ID. The user will be authenticated using a Google account, not a service account. This allows you to make API calls on behalf of the user without compromising the service account's login details.
Service account: a secure software service will have access to the API (most common method) OAuth clients: the user will gain access to the API Using a service account You can create a service account in the Google Play Console.
In the Google Cloud console, select Service accounts.
Click Create service account and follow the instructions.
Open the Users and Permissions page in the Google Play Console.
Click Invite new users.
Enter the service account's email address in the email address field and grant the necessary permissions to perform actions.
To use Google Play Payment APIs, you must grant these permissions:
View financial data, orders, and survey responses on cancellations
Manage orders and subscriptions
Click Invite user.
From this point, access to the Google Play Developer API via the service account should be possible. More information can be found in the article about using OAuth 2.0 in server-to-server applications.
Using OAuth clients
You can allow users to perform actions using the API with their own login details using an OAuth client. The user's actions are limited to those allowed on the Users and Permissions page in the Google Play Console.
Before you create OAuth clients, you need to set up brand information for your service. More information can be found in the article Configuring the OAuth consent screen.
In the Google Cloud console, open the OAuth consent screen page.
Follow the instructions to create an OAuth consent screen.
To create an OAuth client:
In the Google Cloud console, open Credentials.
Click Create credentials > OAuth client ID.
Select the type of application and follow the instructions.
Additional Information
Take advantage of these tips and guidelines to start using the API in Google Play.
Obtaining the developer ID Some APIs require the developer ID in the Google Play Console. It is a long number assigned when creating a developer account on Google Play. The developer ID can be found in the URL of almost every page in the Google Play Console, e.g., the API Access page.
For example, consider the URL of the Google Play Console:
https://play.google.com/console/developers/1234567890123456789/api-access In the URL above, the developer ID is 1234567890123456789.
Info |
---|
Note: If an app is transferred from one Google Play developer account to another, the associated developer ID will change. This means that after the transfer is completed, you must use the developer ID for the new Google Play developer account in the API calls for that app. |