AI-generated Key Takeaways
- 
          InventoryUnitError.Reason lists possible reasons for errors related to inventory units in Google Ad Manager. 
- 
          Specific reasons include issues with explicit targeting in non-Ad Manager 360 accounts, inapplicable target platforms, inability to enable AdSense when disabled network-wide, and the impossibility of deactivating root inventory units. 
- 
          The list is associated with services like AdjustmentService, ForecastService, InventoryService, and PublisherQueryLanguageService. 
- 
          The enumeration UNKNOWNis returned when the actual error value is not exposed by the API version being used.
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 trueonly 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. |