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 is used to include or exclude ad units for targeting purposes within Google Ad Manager."],["Targeting can be applied to specific ad units or include all their descendants using the `includeDescendants` field."],["`adUnitId` and `includeDescendants` are the key fields defining an AdUnitTargeting object."]]],["The core content details the `AdUnitTargeting` functionality within a service namespace. It specifies how ad units are targeted or excluded, using `adUnitId` for identification. `includeDescendants` determines if targeting a unit extends to its child units; by default, it does. The content provides details on multiple services, including `AdRuleService`, `AdjustmentService`, `AudienceSegmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService` and `YieldGroupService`.\n"]]