Skip to end of banner
Go to start of banner

Header-Bidding Integration (recommended integration) test

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

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.

  • No labels