Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.AdInspectorError
Error information about why the ad inspector failed.
Summary
Inheritance
Inherits from:
GoogleMobileAds.Api.AdErrorPublic types
AdInspectorErrorCode
AdInspectorErrorCode
Error information about why the ad inspector failed.
Properties |
ERROR_CODE_ALREADY_OPEN
|
Ad inspector cannot be opened because it is already open.
|
ERROR_CODE_FAILED_TO_LOAD
|
Ad inspector failed to load.
|
ERROR_CODE_INTERNAL_ERROR
|
Ad inspector had an internal error.
|
ERROR_CODE_NOT_IN_TEST_MODE
|
Ad inspector cannot be opened because the device is not in test mode.
information.
|
Public functions
AdInspectorError
AdInspectorError(
IAdInspectorErrorClient client
)
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-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGoogleMobileAds.Api.AdInspectorError\u003c/code\u003e provides error information about why the ad inspector failed.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eGoogleMobileAds.Api.AdError\u003c/code\u003e and includes error codes for internal errors, load failures, test mode status, and if the inspector is already open.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the \u003ccode\u003eGetCode\u003c/code\u003e function to retrieve the specific \u003ccode\u003eAdInspectorErrorCode\u003c/code\u003e for troubleshooting.\u003c/p\u003e\n"]]],["The `GoogleMobileAds.Api.AdInspectorError` class provides details on ad inspector failures. It inherits from `AdError` and includes a constructor taking an `IAdInspectorErrorClient`. The `AdInspectorErrorCode` enum specifies error types: internal error, failed to load, not in test mode, and already open. The `GetCode()` function retrieves the specific `AdInspectorErrorCode`. Properties within the enum further clarify each error's meaning.\n"],null,["# GoogleMobileAds.Api.AdInspectorError Class Reference\n\nGoogleMobileAds.Api.AdInspectorError\n====================================\n\nError information about why the ad inspector failed.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [GoogleMobileAds.Api.AdError](/admob/unity/reference/class/google-mobile-ads/api/ad-error)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [AdInspectorError](#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a0cb4920e44d8584b3df5d9b8fbb7f7dc)`(IAdInspectorErrorClient client)` ||\n\n| ### Public types ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [AdInspectorErrorCode](#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a0ae9153af0318ce43fe976f9b3f0edc2)`{` ` `[ERROR_CODE_INTERNAL_ERROR](#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a0ae9153af0318ce43fe976f9b3f0edc2a5ea67950d79cb1490a52a2c3ccb62eae)` = 0,` ` `[ERROR_CODE_FAILED_TO_LOAD](#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a0ae9153af0318ce43fe976f9b3f0edc2ad097c4d5aa7f288e7f42d2cc7cab386d)` = 1,` ` `[ERROR_CODE_NOT_IN_TEST_MODE](#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a0ae9153af0318ce43fe976f9b3f0edc2a56766ed9f242f96830cf169c1fb6a069)` = 2,` ` `[ERROR_CODE_ALREADY_OPEN](#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a0ae9153af0318ce43fe976f9b3f0edc2a1d52d32799f73ba320f94eaa7e8561ac)` = 3` `}` | enum Error information about why the ad inspector failed. |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetCode](#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a14af85d8f5198a78a16cbc9eb4af416d)`()` | `new `[AdInspectorErrorCode](/admob/unity/reference/class/google-mobile-ads/api/ad-inspector-error#class_google_mobile_ads_1_1_api_1_1_ad_inspector_error_1a0ae9153af0318ce43fe976f9b3f0edc2) |\n\nPublic types\n------------\n\n### AdInspectorErrorCode\n\n```c#\n AdInspectorErrorCode\n``` \nError information about why the ad inspector failed.\n\n| Properties ||\n|-------------------------------|------------------------------------------------------------------------------------|\n| `ERROR_CODE_ALREADY_OPEN` | Ad inspector cannot be opened because it is already open. |\n| `ERROR_CODE_FAILED_TO_LOAD` | Ad inspector failed to load. |\n| `ERROR_CODE_INTERNAL_ERROR` | Ad inspector had an internal error. |\n| `ERROR_CODE_NOT_IN_TEST_MODE` | Ad inspector cannot be opened because the device is not in test mode. information. |\n\nPublic functions\n----------------\n\n### AdInspectorError\n\n```c#\n AdInspectorError(\n IAdInspectorErrorClient client\n)\n``` \n\n### GetCode\n\n```c#\nnew AdInspectorErrorCode GetCode()\n```"]]