type InventorySizeTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represents a collection of targeted and excluded inventory sizes. This is currently only
available on YieldGroup and TrafficDataRequest.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
isTargeted
|
xsd:boolean
Whether the inventory sizes should be targeted or excluded.
|
targetedSizes
|
TargetedSize[]
A list of TargetedSizeDto s.
|
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\u003eInventorySizeTargeting allows you to target or exclude specific ad inventory sizes.\u003c/p\u003e\n"],["\u003cp\u003eIt is currently applicable to YieldGroup and TrafficDataRequest.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify whether to target or exclude inventory sizes using the \u003ccode\u003eisTargeted\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etargetedSizes\u003c/code\u003e field lets you define a list of targeted sizes using \u003ccode\u003eTargetedSizeDto\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for InventorySizeTargeting is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The core content outlines the `InventorySizeTargeting` functionality within the Ad Manager API, version v202411. This feature allows for targeting or excluding specific inventory sizes, which are defined by `TargetedSize` elements. It's accessible through services like `YieldGroup` and `TrafficDataRequest`. Key actions involve specifying `isTargeted` (true/false) and defining `targetedSizes` within an array of `TargetedSize` objects. The namespace for this feature is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# type InventorySizeTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.InventorySizeTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.InventorySizeTargeting) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.InventorySizeTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.InventorySizeTargeting) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.InventorySizeTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.InventorySizeTargeting) **ProposalService** [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.InventorySizeTargeting) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.InventorySizeTargeting) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.InventorySizeTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202411/ProposalService.Targeting) \n▼\n**InventorySizeTargeting**\n\nRepresents a collection of targeted and excluded inventory sizes. This is currently only\navailable on [YieldGroup](/ad-manager/api/reference/v202411/YieldGroupService.YieldGroup) and [TrafficDataRequest](/ad-manager/api/reference/v202411/ForecastService.TrafficDataRequest).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------|\n| ### `isTargeted` | ` `xsd:`boolean` Whether the inventory sizes should be targeted or excluded. |\n| ### `targetedSizes` | ` `[TargetedSize](/ad-manager/api/reference/v202411/ProposalService.TargetedSize)`[]` A list of `TargetedSizeDto`s. |"]]