/
Monetization data
/
Subscription and in-app
/
Google Play

How to integrate Google Play Store S2S notifications and API

This setup requires four parts:

  1. Creating Google Play Service Credentials
  2. Enabling Real-Time Developer Notifications (RTDN)
  3. Granting Access in Google Play Console
  4. Get Google Play Reports Storage URI

‍

Google Play Service Credentials

Step 1. Create a Google Cloud project

  • Go to Google Cloud Console.
  • Create a new project if needed.
  • ‍

    Step 2. Enable Google Play Developer API

  • Open the Google Play Developer API page.
  • Make sure Google Play Android Developer API is enabled.
  • Enable Google Play Developer API

    ‍

    Step 3. Create a Service Account

    Go to IAM & Admin -> Service Accounts in the left menu

    ‍

    Step 4. Click “Create Service Account”

    Enter a name (e.g., cw-service-account) and click Create and Continue.

    click Create and Continue.

    ‍

    Step 5. Save the Service Account Email

    After creation, copy the service account email and save it — you’ll need it on the step 10.

    Save the Service Account Email

    ‍

    Step 6. Manage Keys

    Click the Actions button (3 dots) → Manage keys.

    Manage Keys

    ‍

    Step 7. Add a New Key

    Click Add Key → Create new key.

    ‍

    Step 8. Choose JSON Format

  • Select JSON and click Create.
  • A .json file will be downloaded. Store it securely
  • Ensure you have both: ✅ Service Account Email✅ JSON Key File

    ‍

    Granting Permission in Google Play Console

    After the service account JSON is created, you need to grant permissions to your app(s).

    Step 9. Invite Service Account

    Go to Users and Permissions → Click Invite new users

    Invite Service Account

    ‍

    Step 10. Enter Service Account Email

    Paste the  email created on the Step 5

    Enter Service Account Email

    ‍

    Step 11. App Permissions

    • Select the app(s) you want to grant access to.
    • Choose the necessary permissions
    • Click Apply.
    Check the following:✅ View app information (read-only) ✅ View financial data ✅ View app quality information (read-only)

    ‍

    Step 12. Send the Invite

    Click Invite user

    ‍

    Step 13. Set Account Permissions

    Go to the Account permissions tab.

    ‍

    Step 14. Select Permissions

    Check the following:✅ View app information (read-only)✅ View financial data

    Step 15. Confirm App Permissions

    In the App permissions tab, ensure the selected apps are listed.

    ‍

    Step 16. Save

  • A pop-up will appear. Leave checkboxes as default.
  • Click Save.
  • ‍

    Enable S2S Real Time Developer

    Step 17. Create a Pub/Sub Topic

    If the Topic has already been created, steps 18, 19, 21, and 22 are not necessary and can be skipped
  • In Google Cloud Console, go to Pub/Sub > Topics.
  • Define a topic name (e.g., Play-Store-Notifications).
  • ‍

    Step 18. Grant publish rights

    Go to your topic and click “Add principal”

    Grant publish rights

    ‍

    Step 19. Assign Publisher Role

    In the Add principal window:

    Assign Publisher Role

    ‍

    Step 20. Create a Subscription

  • Go to Pub/Sub > Subscriptions.
  • Set up with the following:
    • Subscription ID: e.g., campaignswell-yourappname
    • Topic: Select the one created above
    • Delivery Type: Push
  • Expiration Period: Never expire
  • Acknowledgement Deadline: 60 seconds
  • Acknowledgement Deadline: 60 seconds

    ‍

  • Retry Policy: Exponential backoff — min: 1s, max: 600s
  • Exponential backoff — min: 1s, max: 600s

    ‍

    Setup Real Time Developer Notifications in Google Play Console (for each application)

    Step 21. Enable RTDN in Google Play Console

  • In the Google Play Console, go to your app.
  • Enable Real-time developer notifications.
  • Enable RTDN in Google Play Console

    ‍

    Step 22. Choose Notification Options

    Select:✅ Subscriptions✅ Voided purchases✅ All one-time products (if applicable)
    Choose Notification Options

    ‍

    Get Google Play Reports storage URI

    Step 23.Get Google Play Reports Storage URI

    In Google Play Console, find and copy the Cloud Storage URI for reporting.

    Get Google Play Reports Storage URI

    ‍