Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.LoadAdError
Error information about why an ad load operation failed.
Summary
Inheritance
Inherits from:
GoogleMobileAds.Api.AdError
Constructors and Destructors
|
LoadAdError(ILoadAdErrorClient client)
|
Public functions
|
GetResponseInfo()
|
|
ToString()
|
override string
Returns a log friendly string version of this object.
|
Public functions
GetResponseInfo
ResponseInfo GetResponseInfo()
Returns ResponseInfo object for the failed request.
response-info
for more inforomation about Response Info.
LoadAdError
LoadAdError(
ILoadAdErrorClient client
)
Creates a LoadAdError.
Details |
Parameters |
client
|
A platform level ILoadAdErrorClient implementation.
|
|
ToString
override string ToString()
Returns a log friendly string version of this object.
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.LoadAdError\u003c/code\u003e provides information about why an ad load operation failed.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eGoogleMobileAds.Api.AdError\u003c/code\u003e and includes functionality to access response information and generate a log-friendly string representation of the error.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetResponseInfo\u003c/code\u003e function returns a \u003ccode\u003eResponseInfo\u003c/code\u003e object containing details about the failed ad request.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLoadAdError\u003c/code\u003e can be instantiated using an \u003ccode\u003eILoadAdErrorClient\u003c/code\u003e for platform-specific implementations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eToString\u003c/code\u003e method provides a string representation of the error for logging and debugging purposes.\u003c/p\u003e\n"]]],["`LoadAdError` provides information about failed ad load operations, inheriting from `AdError`. It can be created with an `ILoadAdErrorClient`. Key actions include retrieving the `ResponseInfo` object for a failed request using `GetResponseInfo()`, which provides details about the failure. `ToString()` generates a string representation of the `LoadAdError` object for logging purposes. It has no parameters and is a method.\n"],null,["# GoogleMobileAds.Api.LoadAdError Class Reference\n\nGoogleMobileAds.Api.LoadAdError\n===============================\n\nError information about why an ad load operation 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| [LoadAdError](#class_google_mobile_ads_1_1_api_1_1_load_ad_error_1a06ff0a3e5e8d6a399fe964de789ac0b8)`(ILoadAdErrorClient client)` Creates a [LoadAdError](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/load-ad-error#class_google_mobile_ads_1_1_api_1_1_load_ad_error). ||\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetResponseInfo](#class_google_mobile_ads_1_1_api_1_1_load_ad_error_1a3b2646541833b21c2f504243645a64f5)`()` | [ResponseInfo](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/response-info#class_google_mobile_ads_1_1_api_1_1_response_info) Returns [ResponseInfo](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/response-info#class_google_mobile_ads_1_1_api_1_1_response_info) object for the failed request. |\n| [ToString](#class_google_mobile_ads_1_1_api_1_1_load_ad_error_1aef81faa6fad818719a6342f03de3885d)`()` | `override string` Returns a log friendly string version of this object. |\n\nPublic functions\n----------------\n\n### GetResponseInfo\n\n```c#\nResponseInfo GetResponseInfo()\n``` \nReturns [ResponseInfo](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/response-info#class_google_mobile_ads_1_1_api_1_1_response_info) object for the failed request.\n\nresponse-info\n\nfor more inforomation about Response Info.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | The [ResponseInfo](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/response-info#class_google_mobile_ads_1_1_api_1_1_response_info) of this error. |\n\n### LoadAdError\n\n```c#\n LoadAdError(\n ILoadAdErrorClient client\n)\n``` \nCreates a [LoadAdError](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/load-ad-error#class_google_mobile_ads_1_1_api_1_1_load_ad_error).\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------|-----------------------------------------------------| | `client` | A platform level ILoadAdErrorClient implementation. | |\n\n### ToString\n\n```c#\noverride string ToString()\n``` \nReturns a log friendly string version of this object."]]