Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.ResponseInfo
Information about an ad response.
Summary
Constructors and Destructors
|
ResponseInfo(IResponseInfoClient client)
|
Public functions
GetAdapterResponses
List< AdapterResponseInfo > GetAdapterResponses()
Returns the list of AdapterResponseInfo containing metadata for each adapter included in the ad response.
Can be used to debug the mediation waterfall execution.
string GetMediationAdapterClassName()
Returns the mediation adapter class name of the ad network that loaded the ad.
In the case of a mediated ad response, this is the name of the class that was responsible for performing the ad request and rendering the ad.
See for possible return values. Returns null if the ad failed to load.
Dictionary< string, string > GetResponseExtras()
Returns extra information about the ad response.
GetResponseId
string GetResponseId()
Returns the response ID for the loaded ad.
Can be used to look up ads in the Ad Review Center. Returns null if the ad failed to load.
ResponseInfo
ResponseInfo(
IResponseInfoClient client
)
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGoogleMobileAds.Api.ResponseInfo\u003c/code\u003e provides detailed information about an ad response, including metadata and adapter responses.\u003c/p\u003e\n"],["\u003cp\u003eIt offers functions to access adapter responses, loaded adapter information, mediation adapter class name, response extras, and response ID.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this information to debug mediation waterfall execution and understand ad loading behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResponseInfo\u003c/code\u003e class also provides a way to get a log-friendly string representation of the response information.\u003c/p\u003e\n"],["\u003cp\u003eResponse ID returned by this class can be used to look up ads in the Ad Review Center.\u003c/p\u003e\n"]]],["The `ResponseInfo` class provides details about an ad response. Key actions include retrieving a list of `AdapterResponseInfo` objects, which contain metadata for each adapter involved in the response. It enables fetching the `AdapterResponseInfo` of the adapter that loaded the ad, or null if loading failed. The class also allows accessing the mediation adapter class name, response extras, and the ad's response ID. The `ToString` method can be used to log object details.\n"],null,["GoogleMobileAds.Api.ResponseInfo\n\nInformation about an ad response.\n\nSummary\n\n| Constructors and Destructors ||\n|---|---|\n| [ResponseInfo](#class_google_mobile_ads_1_1_api_1_1_response_info_1a3eb1e17e1d6b62cb576608652ce1bd58)`(IResponseInfoClient client)` ||\n\n| Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetAdapterResponses](#class_google_mobile_ads_1_1_api_1_1_response_info_1a486534032d9039975389f457c0531d26)`()` | `List\u003c `[AdapterResponseInfo](/admob/unity/reference/class/google-mobile-ads/api/adapter-response-info#class_google_mobile_ads_1_1_api_1_1_adapter_response_info)` \u003e` Returns the list of [AdapterResponseInfo](/admob/unity/reference/class/google-mobile-ads/api/adapter-response-info#class_google_mobile_ads_1_1_api_1_1_adapter_response_info) containing metadata for each adapter included in the ad response. |\n| [GetLoadedAdapterResponseInfo](#class_google_mobile_ads_1_1_api_1_1_response_info_1a1974f8a2961fdf2fb4abeb7c94ff1c01)`()` | [AdapterResponseInfo](/admob/unity/reference/class/google-mobile-ads/api/adapter-response-info#class_google_mobile_ads_1_1_api_1_1_adapter_response_info) Returns the [AdapterResponseInfo](/admob/unity/reference/class/google-mobile-ads/api/adapter-response-info#class_google_mobile_ads_1_1_api_1_1_adapter_response_info) of the adapter that loaded the ad or null if the ad failed to load. |\n| [GetMediationAdapterClassName](#class_google_mobile_ads_1_1_api_1_1_response_info_1ae9a12cd66ef39c353a576da190b1f138)`()` | `string` Returns the mediation adapter class name of the ad network that loaded the ad. |\n| [GetResponseExtras](#class_google_mobile_ads_1_1_api_1_1_response_info_1a2d46ef0cb1bcfd3689a32a01f9b5422e)`()` | `Dictionary\u003c string, string \u003e` Returns extra information about the ad response. |\n| [GetResponseId](#class_google_mobile_ads_1_1_api_1_1_response_info_1ac85bece3984406e3ad3f7863b83709c6)`()` | `string` Returns the response ID for the loaded ad. |\n| [ToString](#class_google_mobile_ads_1_1_api_1_1_response_info_1a8c4005d0264a2183bd80cb869e3ca67b)`()` | `override string` Returns a log friendly string version of this object. |\n\nPublic functions \n\nGetAdapterResponses \n\n```c#\nList\u003c AdapterResponseInfo \u003e GetAdapterResponses()\n``` \nReturns the list of [AdapterResponseInfo](/admob/unity/reference/class/google-mobile-ads/api/adapter-response-info#class_google_mobile_ads_1_1_api_1_1_adapter_response_info) containing metadata for each adapter included in the ad response.\n\nCan be used to debug the mediation waterfall execution. \n\nGetLoadedAdapterResponseInfo \n\n```c#\nAdapterResponseInfo GetLoadedAdapterResponseInfo()\n``` \nReturns the [AdapterResponseInfo](/admob/unity/reference/class/google-mobile-ads/api/adapter-response-info#class_google_mobile_ads_1_1_api_1_1_adapter_response_info) of the adapter that loaded the ad or null if the ad failed to load. \n\nGetMediationAdapterClassName \n\n```c#\nstring GetMediationAdapterClassName()\n``` \nReturns the mediation adapter class name of the ad network that loaded the ad.\n\nIn the case of a mediated ad response, this is the name of the class that was responsible for performing the ad request and rendering the ad.\n\nSee for possible return values. Returns null if the ad failed to load. \n\nGetResponseExtras \n\n```c#\nDictionary\u003c string, string \u003e GetResponseExtras()\n``` \nReturns extra information about the ad response. \n\nGetResponseId \n\n```c#\nstring GetResponseId()\n``` \nReturns the response ID for the loaded ad.\n\nCan be used to look up ads in the Ad Review Center. Returns null if the ad failed to load. \n\nResponseInfo \n\n```c#\n ResponseInfo(\n IResponseInfoClient client\n)\n``` \n\nToString \n\n```c#\noverride string ToString()\n``` \nReturns a log friendly string version of this object."]]