ResponseInfo

Stay organized with collections Save and categorize content based on your preferences.
public final class ResponseInfo extends Object

Information about an ad response.

Public Method Summary

List<AdapterResponseInfo>
getAdapterResponses()
Returns the list of AdapterResponseInfo containing metadata for each adapter included in the ad response.
AdapterResponseInfo
getLoadedAdapterResponseInfo()
Returns the AdapterResponseInfo corresponding to the adapter that was used to load the ad.
String
getMediationAdapterClassName()
Returns the mediation adapter class name of the ad network that loaded the ad.
Bundle
getResponseExtras()
Returns extra information about the ad response.
String
getResponseId()
Returns the response ID for the loaded ad.
String
toString()
Returns a log friendly string version of this object.

Inherited Method Summary

Public Methods

public 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.

public AdapterResponseInfo getLoadedAdapterResponseInfo ()

Returns the AdapterResponseInfo corresponding to the adapter that was used to load the ad. Returns null if the ad failed to load.

public 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. For non-mediated responses, this value will be com.google.ads.mediation.admob.AdMobAdapter. Returns null if the ad failed to load.

public Bundle getResponseExtras ()

Returns extra information about the ad response.

public 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.

public String toString ()

Returns a log friendly string version of this object.