type AdUnitTargeting (v202405)
Represents targeted or excluded ad units.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202405
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-05-15 UTC.
[null,null,["Last updated 2024-05-15 UTC."],[[["AdUnitTargeting is used to include or exclude ad units for targeting."],["It utilizes adUnitId and includeDescendants fields to specify the targeted ad units and if their descendants should also be targeted."],["By default, targeting an ad unit also includes all of its descendants."]]],["The core content details the `AdUnitTargeting` functionality within a service related to ad management. Key actions include specifying `adUnitId` for ad units to be included or excluded. The `includeDescendants` field, set to `true` by default, determines if targeting an ad unit also targets all its descendant units. This is used across multiple services, including `AdRuleService`, `AdjustmentService`, and `YieldGroupService`. The namespace is `https://www.google.com/apis/ads/publisher/v202405`.\n"]]