type InventoryTargeting (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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."],[[["\u003cp\u003eInventoryTargeting allows publishers to target or exclude specific ad units using \u003ccode\u003etargetedAdUnits\u003c/code\u003e and \u003ccode\u003eexcludedAdUnits\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003ePublishers can specify placements to be targeted using the \u003ccode\u003etargetedPlacementIds\u003c/code\u003e field, enhancing ad delivery precision.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is part of the YieldGroupService within the Google Ad Manager API, enabling control over inventory allocation.\u003c/p\u003e\n"],["\u003cp\u003eInventoryTargeting utilizes AdUnitTargeting for defining ad unit selection criteria and employs xsd:long[] for placement IDs.\u003c/p\u003e\n"]]],["The provided content details various services within an ad management system, specifically focusing on `InventoryTargeting`. Key services include `AdRuleService`, `AdjustmentService`, `AudienceSegmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. `YieldGroupService` relies on `Targeting` for operation. `InventoryTargeting` allows targeting or excluding specific `AdUnitTargeting` and utilizing `targetedPlacementIds` for configuration, working under the namespace `https://www.google.com/apis/ads/publisher/v202408`.\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](/ad-manager/api/reference/v202408/NativeStyleService.InventoryTargeting) [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** **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/YieldGroupService.Targeting) \n▼\n**InventoryTargeting**\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/YieldGroupService.AdUnitTargeting)`[]` \u003cbr /\u003e |\n| ### `excludedAdUnits` | ` `[AdUnitTargeting](/ad-manager/api/reference/v202408/YieldGroupService.AdUnitTargeting)`[]` \u003cbr /\u003e |\n| ### `targetedPlacementIds` | ` `xsd:`long[]` \u003cbr /\u003e |"]]