type AdUnitTargeting (v202402)
Represents targeted or excluded ad units.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202402
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-02-13 UTC.
[null,null,["Last updated 2024-02-13 UTC."],[[["`AdUnitTargeting` objects represent criteria for targeting or excluding ad units within Google Ad Manager."],["Ad units can be targeted or excluded based on their unique ID (`adUnitId`)."],["Targeting an ad unit can optionally include or exclude all of its descendant ad units using the `includeDescendants` field."],["The `AdUnitTargeting` object is part of the Google Ad Manager API and is used by various services for managing ad delivery."]]],["The core content outlines various services within an ad management system, including `AdRuleService`, `AdjustmentService`, `NativeStyleService`, and others, which are all linked to `AdUnitTargeting`. `AdUnitTargeting` manages the inclusion or exclusion of ad units, determined by `adUnitId`. The `includeDescendants` field, a boolean, specifies whether targeting an ad unit encompasses all of its descendant units, defaulting to `true`. It relies on `InventoryTargeting` and all elements are in the namespace `https://www.google.com/apis/ads/publisher/v202402`.\n"]]