The following script must be inserted in the <head> of the AMP page:
...
< amp-ad width = 336 height = 600 |
...
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 ,.
...