In this guide
- Getting an Amazon Publisher Services account
- Configuring AMP tags
- Setting up Line Items
- Setting up Ads.txt
Getting an Amazon Publisher Services account
In order to use APS for AMP, you need an APS account
If you already have an APS account, you’re all set
If you want to use HTL’s APS account, contact your HTL account manager
If you want your own APS account, contact Amazon
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 Amazon.
<amp-ad
type="doubleclick"
width="300"
height="250"
data-slot="/12345/medrec"
></amp-ad>
Add the rtc-config
attribute, replacing “****” with your Publisher ID
<amp-ad
type="doubleclick"
width="300"
height="250"
data-slot="/12345/medrec"
rtc-config='{"vendors":{"aps":{"PUB_ID":"****","PARAMS":{"amp":"1"}}}}'
></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
Amazon AMP header bidding requires line items to be configured in GAM.
- See the Amazon documentation for steps to create the AMP line items.
Setting up ads.txt
Amazon AMP header bidding requires updating your ads.txt file.
You can find the required lines in your Amazon account. HTL BID can help manage your ads.txt file
- See the Amazon documentation for which lines need to be added to your ads.txt.