# Google real-time developer notifications(RTDN)

[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="/files/wNpoKgtzxpRmdHlNflgv" 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="/files/TFPhgE050m8DzKbvxSh8" 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="/files/SfCwJqplgyyTGoP5mkY5" 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
