You need to provide the Play Store service account key to Qonversion, so 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.
Go to Google Play Developer Console and login using your Google Developer Account credentials. Click the Settings icon in the left menu bar.
Select API Access section and click the Choose a project to link button.
Agree to the Terms of Service.
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.
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
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)
Click the Add key button.
Download your JSON file by clicking the Create button.
Then you will see the message about private key.
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
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 8 months ago