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 allows publishers to include or exclude specific ad units for targeting."],["This targeting method also lets you include or exclude all descendant ad units under a selected parent ad unit."],["AdUnitTargeting uses `adUnitId` and `includeDescendants` fields to define its targeting parameters."]]],["The core content describes `AdUnitTargeting`, which represents ad units that are either targeted or excluded. Key information includes the `adUnitId` field, a string representing the included or excluded ad unit's ID, and `includeDescendants`, a boolean indicating if all descendant ad units are also targeted or excluded. The default for `includeDescendants` is true. It's used within multiple services like AdjustmentService, AudienceSegmentService, and others, within the specified namespace.\n"]]