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 allows publishers to include or exclude specific ad units for targeting."],["It supports targeting by ad unit ID (`adUnitId`) and provides an option (`includeDescendants`) to target all child ad units under the specified unit."],["By default, `includeDescendants` is set to `true`, automatically targeting all descendants of a selected ad unit."]]],["The document defines `AdUnitTargeting`, used across various services like `AdRuleService`, `ForecastService`, and `ProposalLineItemService`, to manage ad unit targeting. It specifies the `adUnitId` for targeted or excluded ad units. The `includeDescendants` field determines if an ad unit's descendants are also included in the targeting, defaulting to `true` which includes all descendant units. It's under the namespace `https://www.google.com/apis/ads/publisher/v202405`.\n"]]