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 purposes."],["It allows specifying ad unit IDs and whether to include descendants of those ad units in targeting."],["By default, targeting an ad unit also targets all of its descendants."],["AdUnitTargeting is part of the Google Ad Manager API and uses a specific namespace for identification."]]],["The core content outlines the `AdUnitTargeting` feature, which manages targeted or excluded ad units within a service namespace. Key actions involve specifying `adUnitId` to include or exclude specific units. The `includeDescendants` field determines if the action applies to all descendant units, defaulting to `true`. Several services, such as `AdRuleService`, `AudienceSegmentService`, and others, are associated with this targeting, along with `InventoryTargeting` as a dependency.\n"]]