type AdUnitTargeting (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Represents targeted or excluded ad units.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
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 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The document defines the `AdUnitTargeting` service, which manages targeted or excluded ad units within the `Ad Manager` API's `v202502` version. This service is a dependency for other services such as `ProposalLineItemService`. Key fields include `adUnitId`, the identifier for an ad unit, and `includeDescendants`, a boolean to control if all child units are targeted/excluded. These fields define which ad units are involved and their hierarchical inclusion.\n"],null,["# type AdUnitTargeting (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.AdUnitTargeting) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.AdUnitTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202502/AudienceSegmentService.AdUnitTargeting) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.AdUnitTargeting) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.AdUnitTargeting) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.AdUnitTargeting) **ProposalLineItemService** [ProposalService](/ad-manager/api/reference/v202502/ProposalService.AdUnitTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.AdUnitTargeting) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.AdUnitTargeting) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.AdUnitTargeting) **Dependencies** \n[InventoryTargeting](/ad-manager/api/reference/v202502/ProposalLineItemService.InventoryTargeting) \n▼\n**AdUnitTargeting**\n\nRepresents targeted or excluded ad units.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `adUnitId` | ` `xsd:`string` Included or excluded ad unit id. |\n| ### `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. |"]]