> 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.md).

# Prebid.js: Getting Started

Adagio offers real-time access to demand on various mediatypes (banner, video & native). Integrating Adagio to your demand partners helps you enrich your demand sources, expand globally and monetise different mediatypes through a single unified system.

{% hint style="info" %}
This integration method allows you to easily add Adagio to your add monetisation stack on Web through the [Prebid.js](https://prebid.jshttps/docs.prebid.org/prebid/prebidjs.html) Header Bidding platform.
{% endhint %}

## How It Works

Monetization flow through Adagio's Prebid Client Adapter (for `Prebid.js`):

1. Complete **user synchronization** successfully.
2. The user's **browser** sends a **BidRequest** to Adagio's regional endpoint.
3. **Adagio** runs a real-time auction across multiple demand partners.
4. **Winning bid** is returned as a BidResponse
5. `Prebid.js` handles the winning bid for potential rendering (depending on your AdServer's handling)

{% hint style="info" %}
Check our [configuration examples](/adagio-documentation/prebid/prebid.js-getting-started/js-configuration-examples.md) for different adUnits
{% endhint %}

## Integration Steps

{% stepper %}
{% step %}

### Declare your inventory

Refer to [Declare Your Websites/Apps](/adagio-documentation/account-configuration/declare-your-websites-apps.md)
{% endstep %}

{% step %}

### Ensure your Supply Chain Files are up to date

Refer to [Update Your (app-)ads.txt File](/adagio-documentation/account-configuration/manage-supply-chain-related-files/update-your-app-ads.txt-file.md)
{% endstep %}

{% step %}

### Connect with our Demand Partners

Refer to [Connect With Our Partners](/adagio-documentation/account-configuration/connect-with-our-partners.md)
{% endstep %}

{% step %}

### Add and setup Adagio Client adapter to Prebid.js

Refer to [Prebid Adagio adapter](/adagio-documentation/prebid/prebid.js-getting-started/prebid-adagio-adapter.md)
{% endstep %}

{% step %}

### Enable Real Time Data (RTD) module in Prebid.js

Refer to [Real Time Data (RTD) module](/adagio-documentation/prebid/prebid.js-getting-started/real-time-data-rtd-module.md)
{% endstep %}

{% step %}

### Confirm GDPR/CCPA/TCF compliance

For European and UK traffic, **GDPR compliance is mandatory**.

{% hint style="info" %}
**Required Prebid Modules to support User Privacy regulations:**

* **TCF Consent** : <https://docs.prebid.org/dev-docs/modules/consentManagementTcf.html>
* **GPP** : <https://docs.prebid.org/dev-docs/modules/consentManagementGpp.html>
  {% endhint %}

Adagio supports GDPR and CCPA / US privacy consents.

Refer to [GDPR/CCPA/TCF Compliance](/adagio-documentation/operations-and-support/standards-and-compliance/gdpr-ccpa-tcf-compliance.md)
{% endstep %}

{% step %}

### Grant permissions to Device Access and iFrame Sync

Refer to [Device Access and iFrame sync Permissions](/adagio-documentation/prebid/prebid.js-getting-started/device-access-and-iframe-sync-permissions.md)
{% endstep %}

{% step %}

### Review your Prebid Currency Module setup

The [Prebid Currency Module](https://docs.prebid.org/dev-docs/modules/currency.html) offers publishers the ability to handle multiple currencies, streamline currency conversions, enhance reporting accuracy, and foster stronger relationships with demand partners in the programmatic advertising landscape.

{% hint style="info" %}
**Recommended:** Its implementation can significantly benefit you if you target diverse international markets and want to optimize your monetization strategies accordingly.
{% endhint %}
{% endstep %}

{% step %}

### Review your Prebid Price Floors Module

{% hint style="warning" %}
Please let your Solution Engineer know **if you use any floor price** and **where it is declared (adServer, Prebid, …)**.\
\
**If Adagio hasn’t got dynamic access to this information, you may not get the best out of us.**
{% endhint %}

{% hint style="info" %}
It is possible to set Floor Prices directly from our [web app](https://app.adagio.io/) under "Inventory > Floors"
{% endhint %}

You can configure [Prebid Floor Module](https://docs.prebid.org/dev-docs/modules/floors.html) which broadcasts your floor price rules to Adagio's adapter. This can enhance your ad monetization performance through the proper communication of your floor prices rukles to all Supply Side Platforms (SSPs) participating in the bidding process.
{% endstep %}

{% step %}

### Review your Configuration

* Check our [Javascript configuration examples](/adagio-documentation/prebid/prebid.js-getting-started/js-configuration-examples.md)
* [Review your technical integration](/adagio-documentation/prebid/prebid.js-getting-started/review-your-technical-integration.md)
  {% endstep %}

{% step %}

### Improve your Monetization Performance

**Regularly review the supply chain validation status** of your inventory to identify and fix any issues. See [Review Inventory Supply Chain Status](/adagio-documentation/account-configuration/manage-supply-chain-related-files/review-inventory-supply-chain-status.md)
{% endstep %}

{% step %}

### Explore Additional Useful Information

* [Billing & Payments](/adagio-documentation/operations-and-support/billing-and-payments.md)
* [Additional useful information](/adagio-documentation/prebid/additional-useful-information.md)
* [Monetizable Ad Sizes](/adagio-documentation/operations-and-support/monetizable-ad-sizes.md)
* [API documentation](https://developers.adagio.io/#overview)
* [Prebid documentation](https://docs.prebid.org/dev-docs/bidders/adagio.html)
  {% 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.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.
