In this guide
- Getting a Prebid Server account
- Configuring AMP tags
- Setting up Line Items
- Setting up Ads.txt
Getting a Prebid Server account
Hashtag Labs runs an instance of Prebid Server which is available to publishers for a small additional cost. Contact your Technical Account Manager for details.
Generate an Ad Map
If order to generate unique Tag IDs for each of your ad slots, you will need to provide your HTL Account Manager with an Ad Map, describing the names and sizes of the ad slots which appear on your AMP pages. The ad map should be a CSV file in this format.
Download CSV
The following fields are required
- Slot
- Publisher Domain
- Sizes
All other fields are optional. Fields H - T are the header bidding IDs for your SSP accounts. Only fill-in the IDs for SSPs that you want to run via Prebid Server and leave the others blank. Contact your HTL account manager if you need help filling out the CSV file.
Send the CSV to your HTL Account Manager. You will receive a list of Prebid Server Tag IDs. Follow the instructions below to update your existing AMP tags to include the new IDs.
Configuring AMP tags
You should have existing <amp-ad>
tags for GAM, similar to the following, already setup on your AMP webpages. If you don’t already have existing tags, first you must Setup AMP for GAM, before configuring Prebid Server.
<amp-ad
type="doubleclick"
width="300"
height="250"
data-slot="/12345/medrec"
></amp-ad>
Add the rtc-config
attribute, replacing “00000-0000-0000-00000” with the unique Tag ID provided by your Technical Account Manager for each ad slot.
<amp-ad
type="doubleclick"
width="300"
height="250"
data-slot="/12345/medrec"
rtc-config='{"urls":["https://amspbs.com/openrtb2/amp?tag_id=00000000-0000-0000-0000-000000000000"]}'
></amp-ad>
If you are using multiple real-time bidding technologies such as Prebid Server, Amazon AMP and Prebid Floors on the same AMP page, take care to carefully merge the configuration parameters. Simple overwriting the rtc-config
attribute may cause those other technologies to be accidentally disabled.
Setting up Line Items
Prebid Server AMP header bidding requires new line items to be configured in GAM.
- Contact your HTL Account Manager for assistance