Skip to content

Files

Latest commit

 

History

History
69 lines (49 loc) · 1.73 KB

doubleclick.md

File metadata and controls

69 lines (49 loc) · 1.73 KB

Doubleclick

Example

Basic

<amp-ad width=320 height=50
    type="doubleclick"
    data-slot="/4119129/mobile_ad_banner">
</amp-ad>

With additional targeting

<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>

Configuration

For semantics of configuration, please see ad network documentation.

Ad size

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>

Supported parameters

  • data-slot

Supported via json attribute:

  • categoryExclusion
  • cookieOptions
  • tagForChildDirectedTreatment
  • targeting