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 core content details `InventoryTargeting`, which manages ad unit and placement targeting. It defines the namespace as `https://www.google.com/apis/ads/publisher/v202502`. Key information includes three fields: `targetedAdUnits`, specifying a list of targeted ad units; `excludedAdUnits`, detailing excluded ad units; and `targetedPlacementIds`, which is a list of targeted placement IDs. These fields utilize `AdUnitTargeting` and `Placement` elements, respectively. The service sections are linked to other `Services`, specifically `LineItemService`.\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** [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.InventoryTargeting) [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/LineItemService.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/LineItemService.AdUnitTargeting)`[]` A list of targeted [AdUnitTargeting](/ad-manager/api/reference/v202502/LineItemService.AdUnitTargeting). |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202502/LineItemService.AdUnitTargeting)`[]` A list of excluded [AdUnitTargeting](/ad-manager/api/reference/v202502/LineItemService.AdUnitTargeting). |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` A list of targeted [Placement](/ad-manager/api/reference/v202502/PlacementService.Placement) ids. |"]]