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 defines `InventoryTargeting`, which manages targeted and excluded ad units and placements. It specifies the namespace as `https://www.google.com/apis/ads/publisher/v202502`. Key fields include `targetedAdUnits` and `excludedAdUnits`, both referencing `AdUnitTargeting`, allowing the inclusion or exclusion of specific ad units. It also uses the field `targetedPlacementIds` to list the IDs of placements that are being included. These placements are associated with `Placement`.\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](/ad-manager/api/reference/v202502/NativeStyleService.InventoryTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.InventoryTargeting) **ProposalService** [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/ProposalService.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/ProposalService.AdUnitTargeting)`[]` A list of targeted [AdUnitTargeting](/ad-manager/api/reference/v202502/ProposalService.AdUnitTargeting). |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202502/ProposalService.AdUnitTargeting)`[]` A list of excluded [AdUnitTargeting](/ad-manager/api/reference/v202502/ProposalService.AdUnitTargeting). |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` A list of targeted [Placement](/ad-manager/api/reference/v202502/PlacementService.Placement) ids. |"]]