> For the complete documentation index, see [llms.txt](https://doc.appflow.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.appflow.ai/docs/sdk-set-up-instructions/android-sdk/google-play-store-credentials/google-real-time-developer-notifications-rtdn.md).

# Google real-time developer notifications(RTDN)

Discover how to configure Google real-time developer notifications(RTDN) to enable data accuracy.

[Real-time developer notifications(RTDN) ](https://developer.android.com/google/play/billing/rtdn-reference)is a mechanism to receive notifications from Google whenever there is a change in a user"s entitlement within your app.&#x20;

By setting up RTDN, you can instantly receive updates as they occur in the Play Store, ensuring accurate tracking of user status and obtaining precise data.

Before setting up the RTDN, please make sure that the [Cloud Pub/Sub API](https://console.cloud.google.com/apis/library/pubsub.googleapis.com) is enabled.

<figure><img src="https://1902080327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUSTYqtR8RNNkx3qqWf9%2Fuploads%2FoMzgdwfC5jrTyPBJFbuG%2Fcloud-pub-sub-api-enabled.jpg?alt=media&amp;token=a38a28d6-9bb6-4ffb-9c78-e0e154a81441" alt="This is the page of Google Pub/Sub API that shows &#x22;Enabled“"><figcaption><p>cloud-pub-sub-api enabled</p></figcaption></figure>

### RTDN Setting up

Once you have successfully uploaded the Google Service Account Key to Appflow\.ai, our system will automatically generate all the necessary resources in your Google Cloud Project.&#x20;

The RTDN topic will then be displayed in the "**Google Play RTDN topic name**" field on Appflow\.ai's application editing page.

<figure><img src="https://1902080327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUSTYqtR8RNNkx3qqWf9%2Fuploads%2FPYyg1vVm4J709jPtxusU%2Fappflow.ai-rtdn-topic-name.png?alt=media&amp;token=77955c33-b82a-48f0-8288-dc8ebeaf2191" alt="The RTDN topic is generated automatically after uploading the Google play key"><figcaption><p>appflow.ai-rtdn-topic-name</p></figcaption></figure>

To proceed, please follow these three steps:

Step 1. **Copy the RTDN topic name** and head to Google Play Console. From there, navigate to the **App Dashboard** and go to the **Monetization setup page**.&#x20;

Step 2. Locate the section for **Real-time developer notifications** and paste the previously copied **Topic name** into the designated Topic name field.

<figure><img src="https://1902080327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUSTYqtR8RNNkx3qqWf9%2Fuploads%2F9RIsbfoqDxkvtnLiebMk%2Frtdn-set-up.jpg?alt=media&amp;token=6d79232c-4c06-436b-af86-e5bf54a08230" alt="Instruction on how to reach RTDN topic name setting-up page in the Google Play Console"><figcaption><p>real-time-developer-notifications</p></figcaption></figure>

Step 3. After that, simply click on "**Save changes**" located at the bottom right corner. At this point, your Google Play RTDN setup will be complete and ready to go.

### Raw events forwarding(optional)

In certain cases, you may still have the need to receive raw S2S events directly from Google. If you wish to continue receiving these events while utilizing Appflow\.ai, simply include your endpoint in the designated field for forwarding raw Google events. This will enable us to send raw events as-is from Google directly to your endpoint.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.appflow.ai/docs/sdk-set-up-instructions/android-sdk/google-play-store-credentials/google-real-time-developer-notifications-rtdn.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
