Service Account Key File
Learn how to configure Android service account key file
This key is used for server-side purchase verification. Obtaining the key is a bit tricky but you'll do it only once. You must be the owner of the project to proceed.
- Open Google Play Console settings and navigate to Setup -> API access page.
- Select the Google Cloud Project you want to link and click Link project to connect your Play account to a Google Cloud Project. If you don't have an existing project, you should create a new one.
- In the Service accounts section click Create new service account.
- Click the link to open Google Cloud Console.
- Make sure the correct project is selected and click Create service account.
- Enter the name of the service account and click Create and continue.
- Add two Roles:
- Pub/Sub Admin (to enable Real-time Developer Notifications)
- Monitoring Viewer (to allow monitoring of the notification queue).
- Find the newly created account in the list and in the options click Manage keys. Create a new JSON key and save it locally on your computer. This is the key you will upload to Adapty Dashboard, but you're not done yet;)
- Type Google Play Android Developer API in the search and open the page with the same name. Check that this API is enabled in your project.
- Go back to Google Play Console -> API Access and click Grant access on the service account that you've just created.
- Grant View app information and download bulk reports (read-only),
View financial data, orders, and cancellation survey responses, Manage orders and subscriptions and Manage store presence permissions and create the user.
- Upload the Service Account Key File (JSON file) to Adapty Dashboard. Make sure to set a Package Name too. And we strongly recommend setting up Real-time Developer Notifications.
It takes at least 24 hours for changes to take effect but there's a hack. In Google Play Console, open Your App Dashboard and in the Monetize section go to Products -> Subscriptions/In-app products. Change the description of any product and save the changes. Everything should be working now, you can revert in-app changes. If not, make sure Google Play Android Developer API is enabled in Google Cloud Project.
Updated 9 months ago