/
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.
  • Step 3. Creatt 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.

    Step 5. Save the Service Account Email

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

    Step 6. Manage Keys

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

    Step 7. Add a New Key

    Click Add KeyCreate 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

    Step 10. Enter Service Account Email

    Paste the email you saved earlier

    Step 11. App Permissions

    • Select the app(s) you want to grant access to.
    • Click Apply.

    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

  • 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”

    Step 19. Assign Publisher Role

    In the Add principal window:

    • Enter the appropriate service account or email as the principal.
    • Select the role: Pub/Sub Publisher.
    • Click Save.

    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
  • Retry Policy: 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.
  • Step 22. Choose Notification Options

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

    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.