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.

  1. Open Google Play Console settings and navigate to Setup -> API access page.
3356
  1. 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.
2748
  1. In the Service accounts section click Create new service account.
2712
  1. Click the link to open Google Cloud Console.
1262
  1. Make sure the correct project is selected and click Create service account.
1392
  1. Enter the name of the service account and click Create and continue.
1212
  1. Add two Roles:
  • Pub/Sub Admin (to enable Real-time Developer Notifications)
  • Monitoring Viewer (to allow monitoring of the notification queue).
878 854 1414
  1. 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;)
2796 1248 1172
  1. 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.
2174 1246
  1. Go back to Google Play Console -> API Access and click Grant access on the service account that you've just created.
2784
  1. 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.
2712
  1. 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.
2668

📘

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.