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 is used to include or exclude ad units for targeting purposes.\u003c/p\u003e\n"],["\u003cp\u003eIt uses \u003ccode\u003eadUnitId\u003c/code\u003e to specify the targeted or excluded ad unit and \u003ccode\u003eincludeDescendants\u003c/code\u003e to target all child ad units under it.\u003c/p\u003e\n"],["\u003cp\u003eBy default, targeting an ad unit includes all of its descendants, which can be controlled using the \u003ccode\u003eincludeDescendants\u003c/code\u003e field.\u003c/p\u003e\n"]]],["The document defines `AdUnitTargeting`, which specifies targeted or excluded ad units within various services, including AdRule, Adjustment, AudienceSegment, Forecast, LineItem, NativeStyle, ProposalLineItem, Proposal, PublisherQueryLanguage, TargetingPreset, and YieldGroup. `AdUnitTargeting` uses two fields: `adUnitId` to specify the ad unit and `includeDescendants` (default true) to include or exclude all descendant ad units. The namespace is `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# type AdUnitTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.AdUnitTargeting) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.AdUnitTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202408/AudienceSegmentService.AdUnitTargeting) **ForecastService** [LineItemService](/ad-manager/api/reference/v202408/LineItemService.AdUnitTargeting) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.AdUnitTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.AdUnitTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.AdUnitTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.AdUnitTargeting) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.AdUnitTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.AdUnitTargeting) **Dependencies** \n[InventoryTargeting](/ad-manager/api/reference/v202408/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/v202408`\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. |"]]