enum InventoryUnitError.Reason (v202508)
Stay organized with collections
Save and categorize content based on your preferences.
Possible reasons for the error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
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.
|
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-13 UTC.
[null,null,["Last updated 2025-08-13 UTC."],[],[],null,["# enum InventoryUnitError.Reason (v202508)\n\n**Service** \n[AdjustmentService](/ad-manager/api/reference/v202508/AdjustmentService.InventoryUnitError.Reason) **ForecastService** [InventoryService](/ad-manager/api/reference/v202508/InventoryService.InventoryUnitError.Reason) [PublisherQueryLanguageService](/ad-manager/api/reference/v202508/PublisherQueryLanguageService.InventoryUnitError.Reason) **Dependencies** \n[InventoryUnitError](/ad-manager/api/reference/v202508/ForecastService.InventoryUnitError) \n▼\n**InventoryUnitError.Reason**\n\nPossible reasons for the error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202508`\n\n| Enumeration | Description |\n|-----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `EXPLICIT_TARGETING_NOT_ALLOWED` | [AdUnit.explicitlyTargeted](/ad-manager/api/reference/v202508/InventoryService.AdUnit#explicitlyTargeted) can be set to `true` only in an Ad Manager 360 account. |\n| `TARGET_PLATFORM_NOT_APPLICABLE` | The specified target platform is not applicable for the inventory unit. |\n| `ADSENSE_CANNOT_BE_ENABLED` | AdSense cannot be enabled on this inventory unit if it is disabled for the network. |\n| `ROOT_UNIT_CANNOT_BE_DEACTIVATED` | A root unit cannot be deactivated. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]