For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setting up Prebid AMP in HB Manager

Configure AMP placements, Prebid Server requests, consent, and cookie syncing in HB Manager.

Configure Prebid AMP placements in HB Manager.

Use this guide when your site already serves AMP pages.

For general AMP guidance, see the official AMP documentation.

1. Enable AMP for placements

Enable AMP from Prebid parameters. Configure the setting at these levels:

  1. GlobalHB Management → Prebid Parameters.

  2. Placement typeHB Management → Placement Types or the account's Placement Types.

  3. Account, site, or placement — Use the relevant account page.

  4. Prebid configuration — Use the site's configuration on the account page.

Settings apply in this order. Lower levels can override higher-level settings.

This example enables AMP for a placement type on the account page.

Prebid parameters
Enable AMP

Use the override switch to change a setting at the current level.

Enabled placements display an AMP icon. Select it to find the tag ID for the <amp-ad> tag.

AMP placement tag ID

2. Find your Prebid Server URL

Go to Global Settings → Global Programmatic Tag Data.

Copy the Prebid Server URL.

Prebid Server URL

3. Construct <amp-ad> tags

Use the placement's tag ID and your Prebid Server URL:

The CONSENT_STRING macro requires a CMP and an <amp-consent> element.

Construct the rtc-config URL as follows:

[server]/openrtb2/amp?tag_id=[tag]&gdpr_consent=CONSENT_STRING

  • [server] — The Prebid Server URL.

  • [tag] — The placement's tag ID.

Add a unique dummy parameter:

Enable cookie syncing for active bidders.

Each site with an AMP-enabled placement has a cookie-sync HTML file. It updates with the site's enabled bidders.

Embed the file with an <amp-iframe>:

Replace src with the site's cookie-sync URL.

Start with the site's regular Prebid configuration URL. Replace .js with _cookiesync.html.

Cookie-sync URL

Open Prebid configurations for the site. Copy the URL at the top of Prebid tag.

Example

https://example-cdn.relevant-digital.com/static/tags/abcd.js

becomes

https://example-cdn.relevant-digital.com/static/tags/abcd_cookiesync.html

Last updated

Was this helpful?