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 object defines targeting criteria for ad units, enabling inclusion or exclusion of specific ad units and their descendants.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes \u003ccode\u003eadUnitId\u003c/code\u003e to identify the targeted or excluded ad unit and \u003ccode\u003eincludeDescendants\u003c/code\u003e to determine if targeting should apply to its descendants as well.\u003c/p\u003e\n"],["\u003cp\u003eBy default, targeting an ad unit includes all of its descendants, which can be modified by setting \u003ccode\u003eincludeDescendants\u003c/code\u003e to \u003ccode\u003efalse\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document outlines the `AdUnitTargeting` service within the Google Ad Manager API (v202411). This service manages the targeting or exclusion of ad units, identified by their `adUnitId`. Key information include the `includeDescendants` field, which determines if targeting an ad unit also targets its sub-units, with a default of `true`. Several related services, including AdRuleService, and NativeStyleService, are listed and make use of the AdUnitTargeting.\n"],null,["# type AdUnitTargeting (v202411)\n\n**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](/ad-manager/api/reference/v202411/ForecastService.AdUnitTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.AdUnitTargeting) **NativeStyleService** [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/NativeStyleService.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. |"]]