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\u003eAdInspectorError\u003c/code\u003e provides information about why the ad inspector failed to open or load.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits properties from \u003ccode\u003eAdError\u003c/code\u003e and introduces \u003ccode\u003eAdInspectorErrorCode\u003c/code\u003e to categorize specific error types.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAdInspectorErrorCode\u003c/code\u003e includes errors like \u003ccode\u003eERROR_CODE_INTERNAL_ERROR\u003c/code\u003e, \u003ccode\u003eERROR_CODE_FAILED_TO_LOAD\u003c/code\u003e, \u003ccode\u003eERROR_CODE_NOT_IN_TEST_MODE\u003c/code\u003e, and \u003ccode\u003eERROR_CODE_ALREADY_OPEN\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCode()\u003c/code\u003e function allows developers 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 an `AdInspectorErrorCode` enum, which defines potential error states: `INTERNAL_ERROR`, `FAILED_TO_LOAD`, `NOT_IN_TEST_MODE`, and `ALREADY_OPEN`. The class constructor takes an `IAdInspectorErrorClient`, and the `GetCode()` function returns a `new AdInspectorErrorCode` indicating the specific error. These errors help pinpoint why the ad inspector couldn't be utilized or performed as expected.\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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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```"]]