enum InventoryTargetingError.Reason (v202505)
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/v202505
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."],[],[],null,["# enum InventoryTargetingError.Reason (v202505)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202505/AdRuleService.InventoryTargetingError.Reason) [AdjustmentService](/ad-manager/api/reference/v202505/AdjustmentService.InventoryTargetingError.Reason) [ForecastService](/ad-manager/api/reference/v202505/ForecastService.InventoryTargetingError.Reason) [LineItemService](/ad-manager/api/reference/v202505/LineItemService.InventoryTargetingError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202505/LineItemTemplateService.InventoryTargetingError.Reason) [NativeStyleService](/ad-manager/api/reference/v202505/NativeStyleService.InventoryTargetingError.Reason) **OrderService** [ProposalLineItemService](/ad-manager/api/reference/v202505/ProposalLineItemService.InventoryTargetingError.Reason) [PublisherQueryLanguageService](/ad-manager/api/reference/v202505/PublisherQueryLanguageService.InventoryTargetingError.Reason) [TargetingPresetService](/ad-manager/api/reference/v202505/TargetingPresetService.InventoryTargetingError.Reason) [YieldGroupService](/ad-manager/api/reference/v202505/YieldGroupService.InventoryTargetingError.Reason) **Dependencies** \n[InventoryTargetingError](/ad-manager/api/reference/v202505/OrderService.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/v202505`\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. |"]]