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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eResponseInfo\u003c/code\u003e provides insights into an ad response, including details about the ad network that served the ad and any associated metadata.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access information like the mediation adapter class name, response ID, and adapter responses for debugging and analysis.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResponseInfo\u003c/code\u003e class offers methods such as \u003ccode\u003eGetMediationAdapterClassName()\u003c/code\u003e, \u003ccode\u003eGetResponseId()\u003c/code\u003e, and \u003ccode\u003eGetAdapterResponses()\u003c/code\u003e for retrieving specific information.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes extra information about the ad response via \u003ccode\u003eGetResponseExtras()\u003c/code\u003e and a log-friendly string representation with \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the \u003ccode\u003eGetLoadedAdapterResponseInfo()\u003c/code\u003e method to obtain details on the adapter that successfully loaded the ad.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds.Api.ResponseInfo Class Reference\n\nGoogleMobileAds.Api.ResponseInfo\n================================\n\nInformation about an ad response.\n\nSummary\n-------\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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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----------------\n\n### GetAdapterResponses\n\n```c#\nList\u003c AdapterResponseInfo \u003e GetAdapterResponses()\n``` \nReturns the list of [AdapterResponseInfo](/ad-manager/mobile-ads-sdk/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\n### GetLoadedAdapterResponseInfo\n\n```c#\nAdapterResponseInfo GetLoadedAdapterResponseInfo()\n``` \nReturns the [AdapterResponseInfo](/ad-manager/mobile-ads-sdk/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\n### GetMediationAdapterClassName\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\n### GetResponseExtras\n\n```c#\nDictionary\u003c string, string \u003e GetResponseExtras()\n``` \nReturns extra information about the ad response. \n\n### GetResponseId\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\n### ResponseInfo\n\n```c#\n ResponseInfo(\n IResponseInfoClient client\n)\n``` \n\n### ToString\n\n```c#\noverride string ToString()\n``` \nReturns a log friendly string version of this object."]]