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 define criteria for including or excluding specific ad units and their descendants in targeting."],["It utilizes `adUnitId` to identify the targeted or excluded ad unit, and `includeDescendants` to specify if descendant ad units are affected."],["By default, `includeDescendants` is set to `true`, meaning that selecting an ad unit for targeting automatically includes all its children."]]],["The core content details `AdUnitTargeting`, which specifies targeted or excluded ad units within various services. Key information includes the `adUnitId` (a string representing the ad unit's ID) and `includeDescendants` (a boolean). The `includeDescendants` field determines if targeting an ad unit also targets its child ad unit. The default is `true`, meaning targeting an ad unit will include all descendants. It relates to multiple services in the API like AdRuleService, AdjustmentService, ForecastService, and ProposalLineItemService.\n"]]