type AdUnitTargeting (v202408)
Represents targeted or excluded ad units.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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-08-20 UTC.
[null,null,["Last updated 2024-08-20 UTC."],[[["AdUnitTargeting is used to include or exclude ad units for targeting purposes within Google Ad Manager."],["It utilizes `adUnitId` to identify the specific ad unit and `includeDescendants` to control targeting of child ad units under the specified unit."],["By default, targeting an ad unit with AdUnitTargeting also targets all of its descendants."]]],["The document defines `AdUnitTargeting`, which specifies included or excluded ad units within various services like `AdRuleService`, `AdjustmentService`, `AudienceSegmentService`, and others. Key actions involve targeting or excluding ad units based on their `adUnitId`. The `includeDescendants` field, a boolean, determines if targeting applies to all descendant ad units, defaulting to `true`. This structure resides in the `https://www.google.com/apis/ads/publisher/v202408` namespace.\n"]]