/
Header-Bidding Integration (recommended integration)

Header-Bidding Integration (recommended integration)

To make the ad tag header-bidding capable an additional json parameter must be inserted → rtc-config

Within the rtc-config, the individual vendors that we need for programmatic marketing are connected. The integration then looks like this:

< amp-ad   width = 336   height = 600
type = "doubleclick"
data-slot = "/AdserverID/WebPageKey/Channel/ContentTyp/AdPosition"
data-override-width = "336"
data-override-height = "600"
data-multi-size = "300x600,336x280,300x250,300x150,300x100,300x75,300x50,320x250,320x150,320x100,320x75,320x50"
data-multi-size-validation= "false"
json = '{"targeting":{"ad_position":"<pass ad position value from data-slot>","sitename":"<pass WebpageKey value from data-slot>","channel":"<pass channel value from data-slot>","contenttype":"<pass ContentType value from data-slot>","adkeyword":"<custom value>","pageid":"<pass unique page id >"}}' >
rtc-config='{
"vendors" : {
"criteo" : { "NETWORK_ID" : 6507},
"indexexchange" : { "SITE_ID" :  "xxxxxx" },
"aps" : { "PUB_ID" :  "3690" },
"yieldlab" : { "ADSLOT_ID" :  "xxxxxx" },
"yieldlab" : { "ADSLOT_ID" :  "xxxxxx" }
},
"timeoutMillis" : 500}'>
</amp-ad>

 

The timeout in milliseconds must also be defined via the "timeoutMillis" parameter. We recommend a value between 500-1000

Necessary IDs for indexexchange and yieldlab, issued by ATF and differ per website. Please ask your responsible contact person.

 

Related content