Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...

< 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 adposition 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 >"}}' >
</ amp-ad >

...

Via json targeting values can be passed. The named key values are pre defined and have to be passed always '{"targeting":{"ad_position":"<pass adposition 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 >"}}'  . They are needed for reports and campaign booking purpuses.
KeyValues can be passed with the notation "Key": "Value". The KeyValues are separated with ,.

...