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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eAdUnitTargeting allows publishers to include or exclude specific ad units for targeting.\u003c/p\u003e\n"],["\u003cp\u003eIt provides control over targeting by including or excluding descendant ad units with the \u003ccode\u003eincludeDescendants\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eAdUnitTargeting is part of the Google Ad Manager API and uses a specific namespace for identification.\u003c/p\u003e\n"],["\u003cp\u003eTwo key fields, \u003ccode\u003eadUnitId\u003c/code\u003e and \u003ccode\u003eincludeDescendants\u003c/code\u003e, define the targeted or excluded ad unit and whether to include its descendants.\u003c/p\u003e\n"]]],["The content defines `AdUnitTargeting`, which represents targeted or excluded ad units within the namespace `https://www.google.com/apis/ads/publisher/v202411`. Key fields include `adUnitId`, specifying the targeted ad unit, and `includeDescendants`, a boolean indicating whether descendant ad units are included. Several services such as `AdRuleService`, `AdjustmentService`, `ForecastService`, and others are associated with targeting.\n"],null,["**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.AdUnitTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.AdUnitTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202411/AudienceSegmentService.AdUnitTargeting) **ForecastService** [LineItemService](/ad-manager/api/reference/v202411/LineItemService.AdUnitTargeting) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.AdUnitTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.AdUnitTargeting) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.AdUnitTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.AdUnitTargeting) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.AdUnitTargeting) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.AdUnitTargeting) **Dependencies** \n[InventoryTargeting](/ad-manager/api/reference/v202411/ForecastService.InventoryTargeting) \n▼\n**AdUnitTargeting**\n\nRepresents targeted or excluded ad units.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\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. |"]]