Google Play Service Account Key
Google Play Service Account Key
You need to provide the Play Store service account key to your Qonversion project settings so that we can verify your in-app purchases. Qonversion provides out-of-the-box in-app subscription infrastructure. Learn more about Qonversion and sign up for free.
Service accounts provide access to the Google Play Developer Publishing API on behalf of an application rather than an end user. Service accounts are suitable for accessing the API from an unattended server, such as an automated build server (e.g. Jenkins). All actions will be shown as originating from the service account. You can edit permissions for the service account on the βUser Accounts & Rightsβ page.
1. Open Settings
Go to Google Play Developer Console and log in using your Google Developer Account credentials. Click the Settings icon in the left menu bar.

2. Choose a project to link
Select the API Access section and click the Choose a project to link button.

Agree to the Terms of Service.

3. Link Google Cloud Project
Select the Link existing project button.

Create new project
If you don't have a Google Cloud project yet, select Create new project and then Link existing project.
Select Google Play Android Developer in the drop-down list for Google Cloud Project. Then click on the Link project button at the bottom of the page.

4. Create new service account
Scroll to the bottom of the page and click on Create new service account.

Then click the link Google Cloud Platform.

You will be redirected to Google Cloud Platform for managing your service accounts. Π‘lick the +CREATE SERVICE ACCOUNT button at the top of the page

5. Configure your service account
Set the Service account name.

Choose the Monitoring Viewer and continue.
Make sure to add Pub/Sub Admin role (to enable Google Real-Time Developer Notifications)

6. Create service key
Click the Add key button.

Download your JSON file by clicking the Create button.

Then you will see the message about private key.

7. Grant Access
If in-app products are created before granting users access or linking Google Cloud Project to the service account, it can cause problems with the receipt validation using Google Play Android Developer API. Google Play Developer API can return the following error "The current user has insufficient permissions to perform the requested operation."
When facing this problem, open the In-app products or Subscription tab respectively on the Google Play Console and make some updates. For example, edit the product description and save it.
When you configure your service account in the step 5, you need to grant users access to the service account (although Google shows the step is optional). If you skip the step, Google Play Console API access page will not show newly created service account.
So, go back to your Google Console and click Users and Permissions.

Add the app, click Apply and Invite user.

Set the role to:
- View app information (read-only)
- View financial data
- Manage orders and subscriptions.
And click the Apply button at the bottom of the page.

Then click Send Invite

8. Paste the credentials JSON to Qonversion project settings
Paste the content of the credentials JSON file that you downloaded in step 6 to your Qonversion project settings.
It takes up to 24 hours for your Google service credentials to work properly with the Android Developer API. You may see "Please provide valid JSON credentials" during the first 24 hours until the credentials start working properly.
Updated 10 months ago