<amp-ad width=320 height=50
type="doubleclick"
data-slot="/4119129/mobile_ad_banner">
</amp-ad>
<amp-ad width=320 height=50
type="doubleclick"
data-slot="/4119129/mobile_ad_banner"
json='{"targeting":{"sport":["rugby","cricket"]},"categoryExclusion":"health","tagForChildDirectedTreatment":1}'>
</amp-ad>
For semantics of configuration, please see ad network documentation.
By default the ad size is based on the width
and height
attributes of the amp-ad
tag. In order to explicitly request different ad dimensions from those values, pass the attributes data-override-width
and data-override-height
to the ad.
Example:
<amp-ad width=320 height=50
data-override-width=111
data-override-height=222
type="doubleclick"
data-slot="/4119129/mobile_ad_banner">
</amp-ad>
data-slot
Supported via json
attribute:
categoryExclusion
cookieOptions
tagForChildDirectedTreatment
targeting