Skip to main content
Version: 3.0

Google Play Store credentials

Google Play Store credentials are used for server-side purchase verification, without them Adapty can't validate and process transactions. Obtaining the credentials is a bit tricky but this guide will help you.

1. Enable APIs in the Google Cloud Console

  1. Select the Google Cloud Project you want to use or create a new one. Please make sure to use the same Google Cloud Project during all the steps of this guide.
  1. Go to the Google Play Android Developer API page and click Enable.
  1. Go to the Google Play Developer Reporting API page and click Enable.

2. Create a Service account in the Google Cloud Console

  1. Go to Google Cloud Console -> IAM & Admin -> Service accounts. Please make sure to use the same Google Cloud Project you used in the previous steps. Click Create Service Account.
  1. Enter its name and copy its ID (email address) for future use. Click Create and Continue.
  1. In the next step you should add two Roles:
  • Pub/Sub Admin (to enable Real-time Developer Notifications)
  • Monitoring Viewer (to allow monitoring of the notification queue).
  1. Don't enter anything in this step and click Done.
  1. Find the newly created account in the list and in the actions click Manage keys. Create a new JSON key and save it locally on your computer. This is the key you will upload to the Adapty Dashboard.

3. Grant permissions in the Google Play Console

  1. Go to the Users and permissions page in the Google Play Console and click Invite new users.
  1. Enter the email of the service account you've created in section 2 of this guide.
  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 by clicking Invite user. You can grant permissions to the whole account or to one/several applications.

4. Upload Google credentials to Adapty Dashboard

  1. Go to Adapty -> App Settings -> Android SDK. Upload the Service Account Key File (JSON file) to the Adapty Dashboard. Make sure to set a Package Name too. If you've done everything correctly, Adapty will generate an RTDN topic for you. Copy it and set up Real-time Developer Notifications.
note

It takes at least 24 hours for changes to take effect but there's a hack. In Google Play Console, open any application 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.