type AdUnitTargeting (v202411)
Represents targeted or excluded ad units.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
adUnitId
|
xsd:string
Included or excluded ad unit id.
|
includeDescendants
|
xsd:boolean
Whether or not all descendants are included (or excluded) as part of including (or excluding)
this ad unit. By default, the value is true which means targeting this ad unit will
target all of its descendants.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[null,null,["Last updated 2024-11-19 UTC."],[[["AdUnitTargeting object defines targeting criteria for ad units, enabling inclusion or exclusion of specific ad units and their descendants."],["It utilizes `adUnitId` to identify the targeted or excluded ad unit and `includeDescendants` to determine if targeting should apply to its descendants as well."],["By default, targeting an ad unit includes all of its descendants, which can be modified by setting `includeDescendants` to `false`."]]],["The document outlines the `AdUnitTargeting` service within the Google Ad Manager API (v202411). This service manages the targeting or exclusion of ad units, identified by their `adUnitId`. Key information include the `includeDescendants` field, which determines if targeting an ad unit also targets its sub-units, with a default of `true`. Several related services, including AdRuleService, and NativeStyleService, are listed and make use of the AdUnitTargeting.\n"]]