> For the complete documentation index, see [llms.txt](https://adagio-io.gitbook.io/adagio-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adagio-io.gitbook.io/adagio-documentation/prebid/prebid.js-getting-started/real-time-data-rtd-module.md).

# Real Time Data (RTD) module

{% hint style="warning" %}
**Highly Recommended:** Adagio uses this data to measure viewability and time in view which is leveraged to predict viewability at the AdRequest level.

Therefore this data is responsible for a major revenue optimisation called Viewability Repackaging which will have a **substantial positive impact on monetisation performance**
{% endhint %}

{% hint style="info" %}
This module has been introduced for Prebid 9+ which prevented our legacy data retrieval method
{% endhint %}

{% stepper %}
{% step %}

### Add the RTD module and RTD Provider

Two methods:

<details>

<summary>(Advanced) Add the modules in your Prebid Build commands</summary>

<pre class="language-bash"><code class="lang-bash"><strong>gulp build --modules=adagioBidAdapter,rtdModule,adagioRtdProvider
</strong>// + your additional modules 
</code></pre>

</details>

<details>

<summary>Use Prebid <a href="https://docs.prebid.org/download.html">Download</a> page</summary>

*Available from Prebid 9*

<figure><img src="https://3602992756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4zBjf9CHegeJtXedq8Iv%2Fuploads%2FGUlDjTEAATeW3FRQBoHg%2Fimage.png?alt=media&amp;token=ea947cbe-987b-4f09-a2f5-2771a69f0289" alt=""><figcaption></figcaption></figure>

</details>
{% endstep %}

{% step %}

### Configure the Adagio RTD Provider parameters

Once built, the Adagio RTD Provider should be configured with the following parameters: `organizationId` and `site` .

```javascript
pbjs.que.push(function () {
  pbjs.setConfig({
    realTimeData: {
      dataProviders: [
        {
          name: "adagio",
          params: {
            organizationId: "1000", // Required
            site: "my-site",        // Required
          },
        },
      ],
    },
  });
});
```

{% endstep %}

{% step %}

### Review your technical integration

{% content-ref url="/pages/DeJ8AIPpsiKRPcHIgiIT" %}
[Review your technical integration](/adagio-documentation/prebid/prebid.js-getting-started/review-your-technical-integration.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}


---

# 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 dynamically by asking a question.

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

```
GET https://adagio-io.gitbook.io/adagio-documentation/prebid/prebid.js-getting-started/real-time-data-rtd-module.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
