enum InventoryTargetingError.Reason (v202508)

  • InventoryTargetingError.Reason is an enumeration within the YieldGroupService, relevant to various Ad Manager API services like AdRuleService, ForecastService, and LineItemService.

  • This enumeration lists reasons for inventory targeting errors, such as requiring at least one placement or inventory unit, or targeting conflicts.

  • The reasons cover scenarios like an inventory unit being targeted or excluded when an ancestor is already targeted or excluded.

  • Specific error reasons address targeting restrictions for YouTube audience segments and issues with "self only" inventory units.

  • The enumeration includes an "UNKNOWN" reason for errors that don't fit other categories.


Namespace
https://www.google.com/apis/ads/publisher/v202508
Enumeration Description
AT_LEAST_ONE_PLACEMENT_OR_INVENTORY_UNIT_REQUIRED
INVENTORY_CANNOT_BE_TARGETED_AND_EXCLUDED
INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_TARGETED
INVENTORY_UNIT_CANNOT_BE_TARGETED_IF_ANCESTOR_IS_EXCLUDED
INVENTORY_UNIT_CANNOT_BE_EXCLUDED_IF_ANCESTOR_IS_EXCLUDED
EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_TARGETED
EXPLICITLY_TARGETED_INVENTORY_UNIT_CANNOT_BE_EXCLUDED
SELF_ONLY_INVENTORY_UNIT_NOT_ALLOWED
SELF_ONLY_INVENTORY_UNIT_WITHOUT_DESCENDANTS
YOUTUBE_AUDIENCE_SEGMENTS_CAN_ONLY_BE_TARGETED_WITH_YOUTUBE_SHARED_INVENTORY
UNKNOWN