Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.25 KB

doubleclick.md

File metadata and controls

55 lines (40 loc) · 1.25 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.

Supported parameters:

  • data-slot

Supported via json attribute:

  • categoryExclusion
  • cookieOptions
  • tagForChildDirectedTreatment
  • targeting