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 allows publishers to include or exclude specific ad units for targeting."],["It provides control over targeting descendants of an ad unit using the `includeDescendants` field."],["`adUnitId` specifies the ID of the ad unit to be included or excluded."],["This feature is part of the Google Ad Manager API and utilizes the PublisherQueryLanguageService."]]],["The document defines the `AdUnitTargeting` object, which manages targeted or excluded ad units. Key components include the `adUnitId`, a string representing the ad unit's unique identifier, and `includeDescendants`, a boolean that determines if the targeting applies to all descendant ad units (default: true). This object is used by multiple services, including `AdRuleService`, `AdjustmentService`, and others, all of which are detailed in the provided list. Additionally the document provides the namespace where it is defined.\n"]]