enum InventoryTargetingError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED
|
At least one placement or inventory unit is required
|
INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED
|
The same inventory unit or placement cannot be targeted and excluded at
the same time
|
INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED
|
A child inventory unit cannot be targeted if its ancestor inventory unit
is also targeted.
|
INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED
|
A child inventory unit cannot be targeted if its ancestor inventory unit
is excluded.
|
INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED
|
A child inventory unit cannot be excluded if its ancestor inventory unit
is also excluded.
|
EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED
|
An explicitly targeted inventory unit cannot be targeted.
|
EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED
|
An explicitly targeted inventory unit cannot be excluded.
|
SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED
|
A landing page-only ad unit cannot be targeted.
|
SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS
|
A landing page-only ad unit cannot be targeted if it doesn't have any
children.
|
YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY
|
Audience segments shared from YouTube can only be targeted with inventory shared
from YouTube for cross selling.
|
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
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 document details `InventoryTargetingError.Reason`, which lists potential errors when targeting inventory within various services like `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, and others. Key actions and constraints include requiring at least one placement or inventory unit, preventing simultaneous targeting and exclusion, and disallowing targeting of a child unit if its ancestor is targeted or excluded. Additionally, certain inventory unit types are restricted from being targeted. There are also inventory restrictions related to Youtube Audience.\n"],null,["# enum InventoryTargetingError.Reason (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.InventoryTargetingError.Reason) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.InventoryTargetingError.Reason) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.InventoryTargetingError.Reason) **LineItemService** [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.InventoryTargetingError.Reason) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.InventoryTargetingError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.InventoryTargetingError.Reason) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.InventoryTargetingError.Reason) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.InventoryTargetingError.Reason) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.InventoryTargetingError.Reason) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.InventoryTargetingError.Reason) **Dependencies** \n[InventoryTargetingError](/ad-manager/api/reference/v202502/LineItemService.InventoryTargetingError) \n▼\n**InventoryTargetingError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|--------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| `AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED` | At least one placement or inventory unit is required |\n| `INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED` | The same inventory unit or placement cannot be targeted and excluded at the same time |\n| `INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED` | A child inventory unit cannot be targeted if its ancestor inventory unit is also targeted. |\n| `INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED` | A child inventory unit cannot be targeted if its ancestor inventory unit is excluded. |\n| `INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED` | A child inventory unit cannot be excluded if its ancestor inventory unit is also excluded. |\n| `EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED` | An explicitly targeted inventory unit cannot be targeted. |\n| `EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED` | An explicitly targeted inventory unit cannot be excluded. |\n| `SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED` | A landing page-only ad unit cannot be targeted. |\n| `SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS` | A landing page-only ad unit cannot be targeted if it doesn't have any children. |\n| `YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY` | Audience segments shared from YouTube can only be targeted with inventory shared from YouTube for cross selling. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]