enum InventoryUnitError.Reason (v202502)

  • InventoryUnitError.Reason is an enumeration within the InventoryService in the Ad Manager API v202502, outlining possible causes for errors related to inventory units.

  • Specific reasons for InventoryUnitError include limitations on setting explicitlyTargeted to true, issues with target platforms, inability to enable AdSense if disabled network-wide, and the inability to deactivate root units.

  • The UNKNOWN reason is returned when the actual error value is not accessible in the requested API version.

Possible reasons for the error.


Namespace
https://www.google.com/apis/ads/publisher/v202502
Enumeration Description
EXPLICIT_TARGETING_NOT_ALLOWED AdUnit.explicitlyTargeted can be set to true only in an Ad Manager 360 account.
TARGET_PLATFORM_NOT_APPLICABLE The specified target platform is not applicable for the inventory unit.
ADSENSE_CANNOT_BE_ENABLED AdSense cannot be enabled on this inventory unit if it is disabled for the network.
ROOT_UNIT_CANNOT_BE_DEACTIVATED A root unit cannot be deactivated.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.