[[["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\u003eInventoryTargeting allows you to define a collection of targeted and excluded ad units and placements for more refined ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eIt provides options to target or exclude specific ad units using \u003ccode\u003etargetedAdUnits\u003c/code\u003e and \u003ccode\u003eexcludedAdUnits\u003c/code\u003e fields, respectively.\u003c/p\u003e\n"],["\u003cp\u003eYou can also target placements directly via their IDs using the \u003ccode\u003etargetedPlacementIds\u003c/code\u003e field, offering flexibility in campaign setup.\u003c/p\u003e\n"],["\u003cp\u003eThese settings utilize the \u003ccode\u003eAdUnitTargeting\u003c/code\u003e object for ad unit selection and the \u003ccode\u003ePlacement\u003c/code\u003e object for placement targeting within Google Ad Manager.\u003c/p\u003e\n"]]],["The content outlines `InventoryTargeting`, which manages targeted and excluded ad units and placements. It uses services like `AdRuleService`, `AdjustmentService`, `NativeStyleService`, and others. `InventoryTargeting` defines `targetedAdUnits` and `excludedAdUnits` using `AdUnitTargeting`, and `targetedPlacementIds`, referencing Placement IDs. It operates within the namespace `https://www.google.com/apis/ads/publisher/v202408`. `Targeting` is a dependency for `NativeStyleService`. The data structures involve lists of ad unit targeting and placement IDs.\n"],null,["# type InventoryTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.InventoryTargeting) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.InventoryTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202408/AudienceSegmentService.InventoryTargeting) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.InventoryTargeting) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.InventoryTargeting) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.InventoryTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.InventoryTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.InventoryTargeting) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.InventoryTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.InventoryTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/NativeStyleService.Targeting) \n▼\n**InventoryTargeting**\n\nA collection of targeted and excluded ad units and placements.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202408/NativeStyleService.AdUnitTargeting)`[]` A list of targeted [AdUnitTargeting](/ad-manager/api/reference/v202408/NativeStyleService.AdUnitTargeting). |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202408/NativeStyleService.AdUnitTargeting)`[]` A list of excluded [AdUnitTargeting](/ad-manager/api/reference/v202408/NativeStyleService.AdUnitTargeting). |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` A list of targeted [Placement](/ad-manager/api/reference/v202408/PlacementService.Placement) ids. |"]]