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 allows publishers to include or exclude specific ad units for targeting."],["It supports targeting by ad unit ID (`adUnitId`) and can include or exclude all descendant ad units using the `includeDescendants` field."],["By default, targeting an ad unit also targets all of its descendants."]]],["The core content details `AdUnitTargeting`, which defines the inclusion or exclusion of ad units in targeting. Key actions involve specifying an `adUnitId` and determining if `includeDescendants` is true or false. The default setting for `includeDescendants` is true, extending targeting to all child ad units. This functionality is accessible via multiple services, like `AdRuleService`, `AdjustmentService`, and `ForecastService`, and also depends on `InventoryTargeting`. The related namespace is also defined.\n"]]