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 is used to include or exclude ad units for targeting."],["It utilizes `adUnitId` and `includeDescendants` to specify the target ad units and whether to include their descendants."],["By default, targeting an ad unit also targets all of its descendants."],["The `includeDescendants` field allows for customization, enabling or disabling the inclusion of descendant ad units."]]],["The content details `AdUnitTargeting`, which manages ad unit inclusion or exclusion. Key information includes the `adUnitId` (a string for identifying the ad unit) and `includeDescendants` (a boolean, defaulting to true, that specifies if targeting includes all descendant ad units). The document lists various services interacting with this targeting feature such as `AdRuleService`, `ForecastService`, and `ProposalLineItemService`. The namespace for these operations is `https://www.google.com/apis/ads/publisher/v202411`.\n"]]