/
Flying Carpet Integration

Flying Carpet Integration

The following script must also be inserted in the head of the AMP page:

< script   async  custom-element = "amp-fx-flying-carpet"   src = "https://cdn.ampproject.org/v0/amp-fx-flying-carpet-0.1.js" ></ script >

Insert the following code snippet at the desired position for ad integration (styles have to be adapted by yourselves ):

< div   class = "amp-flying-carpet-text-border"   style = "background-color:black;color:#fff;text-align:center;font-size:small" >Advertisment</ div >
< amp-fx-flying-carpet   height = "300px" >
< amp-ad
type = "doubleclick"
data-slot = "/AdserverID/WebPageKey/Channel/ContentTyp/AdPosition"
width = "320"
height = "600"
data-multi-size="300x250,300x600,320x150,300x150,320x100,300x100,320x75,300x75,320x50,300x50"
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 >
</amp-fx-flying-carpet >
< div   class = "amp-flying-carpet-text-border"   style = "background-color:black;color:#fff;text-align:center;font-size:small" >Advertisment</ div >


If desired, the visible area of the ad can be changed using the value amp-fx-flying-carpet height= "300px".

 

Related content