extensions/amp-ad-network-doubleclick-impl/amp-ad-network-doubleclick-impl-internal.md
amp-ad-network-doubleclick-implExample - Google Ad Manager Ad
<amp-ad width="728" height="90" type="doubleclick" data-slot="/6355419/Travel">
</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>
For multi-size attributes, see the <a href="multi-size.md">multi-size documentation page</a>.
data-slot: Full path of the ad unit with the network code and unit code.data-multi-size: See the <a href="multi-size.md">multi-size documentation page</a> for details.data-multi-size-validationSupported via json attribute:
categoryExclusions: Sets a slot-level category exclusion for the given label name.cookieOptions: Sets options for ignoring DFP cookies on the current page.
tagForChildDirectedTreatment: Configures whether the slot should be treated as child-directed.
See the TFCD article for <a href="https://support.google.com/dfp_sb/answer/3721907">Small Business</a> or <a href="https://support.google.com/dfp_premium/answer/3671211">Premium</a> for more details and allowed values.tagForUnderAgeTreatment: Configures whether the slot should be treated as under-age of consent.
See <a href="https://support.google.com/dfp_sb/answer/9004919">This article</a> for more details on this and the TFCD signal.targeting: Sets a custom targeting parameter for this slot. Values must of the form:
"<key_string>":"<value_string>" or"<key_string>":["<value1>", "<value2>", ...]. See below for example.ppid: Sets a custom provided user ID for targeting. Do not set when
serving responses to crawlers since this value is expected to be dynamic.Example with json attribute:
<amp-ad
width="320"
height="50"
type="doubleclick"
data-slot="/4119129/mobile_ad_banner"
json='{"targeting":{"sport":["rugby","cricket"]},"categoryExclusions":["health"],"tagForChildDirectedTreatment":1}'
>
</amp-ad>