Add rtc-config object to amp-ad units

Once the placements creation and the GAM connexion are complete, you need to add the rtc-config object in your AMP tags. Real Time Config (RTC) is an AMP feature used for Header Bidding to make request calls to your SSPs.

RTC setup

Add the rtc-config object in your amp-ad unit, as in the following example:

<amp-ad
    width="300"
    height="250"
    type="doubleclick"
    data-slot="/your_GAM_network_ID/your_amp_adunit"
    rtc-config='{"vendors":
            {
                "nexx360": {
                  "ACCOUNT_ID": "ENTER YOUR CUSTOMER ID",
                  "TAG_ID": "ENTER YOUR PLACEMENT ID"
                }
            }
        }'
    >
</amp-ad>

The rtc-config code can be directly copied from the button on the top right of the website page "View rtc-config".

You can add the cookie-sync functionality to help bidders identify the user and bid accordingly. While this step is optional, it is recommended to improve attractiveness to bidders.

This process is GDPR compliant, as it will not be executed if a user doesn't provide consent.

Here is the script to add to your page:

<amp-iframe
    width="1"
    height="1"
    sandbox="allow-scripts"
    frameborder="0"
    src="//cdn.nexx360-static.io/load-cookie.html">
</amp-iframe>

Last updated

Was this helpful?