enum InventoryUnitError.Reason (v202505)

  • InventoryUnitError.Reason lists possible causes for errors related to inventory units within the Google Ad Manager API.

  • Reasons include issues with explicit targeting only allowed in Ad Manager 360 accounts, inapplicable target platforms, AdSense settings, and deactivation of root units.

  • The enumeration values like EXPLICIT_TARGETING_NOT_ALLOWED and TARGET_PLATFORM_NOT_APPLICABLE provide specific error details.

  • An UNKNOWN value is returned if the actual error reason is not available in the API version requested.

Possible reasons for the error.


Namespace
https://www.google.com/apis/ads/publisher/v202505
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.