type InventoryTargetingError (v202411)

  • InventoryTargetingError is an error type related to inventory targeting in services like AdRuleService, LineItemService, and YieldGroupService.

  • It inherits properties from ApiError, such as fieldPath and trigger.

  • Specific reasons for an InventoryTargetingError include issues with targeting or excluding inventory units and placements, or targeting with incompatible inventory types.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

ApiError (inherited)

fieldPath

xsd:string

fieldPathElements

FieldPathElement[]

trigger

xsd:string

errorString

xsd:string

InventoryTargetingError

reason

InventoryTargetingError.Reason


Enumerations
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