ResponseInfo

public final class ResponseInfo


Information about an ad response.

Summary

Public methods

@NonNull List<AdapterResponseInfo>

Returns the list of AdapterResponseInfo containing metadata for each adapter included in the ad response.

@Nullable AdapterResponseInfo

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

@Nullable String

Returns the mediation adapter class name of the ad network that loaded the ad.

Bundle

Returns extra information about the ad response.

@Nullable String

Returns the response ID for the loaded ad.

String

Returns a log friendly string version of this object.

Public fields

adapterResponses

public final List<AdapterResponseInfoadapterResponses

Public methods

getAdapterResponses

public @NonNull List<AdapterResponseInfogetAdapterResponses()

Returns the list of AdapterResponseInfo containing metadata for each adapter included in the ad response. Can be used to debug the mediation waterfall execution.

getLoadedAdapterResponseInfo

public @Nullable AdapterResponseInfo getLoadedAdapterResponseInfo()

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

getMediationAdapterClassName

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

getResponseExtras

public Bundle getResponseExtras()

Returns extra information about the ad response.

getResponseId

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

toString

public String toString()

Returns a log friendly string version of this object.