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.
- 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.
- Go to the Google Play Android Developer API page and click Enable.
- Go to the Google Play Developer Reporting API page and click Enable.
- 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.
- Enter its name and copy its ID (email address) for future use. Click Create and Continue.
- 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).
- Don't enter anything in this step and click Done.
- 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.
- Go to the Users and permissions page in the Google Play Console and click Invite new users.
- Enter the email of the service account you've created in section 2 of this guide.
- 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.
- 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.
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.
Updated about 1 month ago