type InventoryTargeting (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
A collection of targeted and excluded ad units and placements.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
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 content details the `InventoryTargeting` component, which manages targeted and excluded ad units and placements. It lists several services, including `AdRuleService`, `NativeStyleService`, and `YieldGroupService`, that utilize `InventoryTargeting`. The core functionality involves defining `targetedAdUnits` and `excludedAdUnits` through `AdUnitTargeting`, as well as specifying `targetedPlacementIds`, using long arrays. The namespace for these operations is identified as `https://www.google.com/apis/ads/publisher/v202502`.\n"],null,["# type InventoryTargeting (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.InventoryTargeting) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.InventoryTargeting) [AudienceSegmentService](/ad-manager/api/reference/v202502/AudienceSegmentService.InventoryTargeting) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.InventoryTargeting) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.InventoryTargeting) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.InventoryTargeting) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.InventoryTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.InventoryTargeting) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.InventoryTargeting) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.InventoryTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202502/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/v202502`\n\n| Field ----- ||\n|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202502/NativeStyleService.AdUnitTargeting)`[]` A list of targeted [AdUnitTargeting](/ad-manager/api/reference/v202502/NativeStyleService.AdUnitTargeting). |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202502/NativeStyleService.AdUnitTargeting)`[]` A list of excluded [AdUnitTargeting](/ad-manager/api/reference/v202502/NativeStyleService.AdUnitTargeting). |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` A list of targeted [Placement](/ad-manager/api/reference/v202502/PlacementService.Placement) ids. |"]]