ResponseInfo

class ResponseInfo


Information about an ad response.

Summary

Public functions

AdapterResponseInfo?

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

String?

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

Bundle!

Returns extra information about the ad response.

String?

Returns the response ID for the loaded ad.

String!

Returns a log friendly string version of this object.

Public functions

getLoadedAdapterResponseInfo

fun getLoadedAdapterResponseInfo(): AdapterResponseInfo?

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

getMediationAdapterClassName

fun getMediationAdapterClassName(): String?

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

fun getResponseExtras(): Bundle!

Returns extra information about the ad response.

getResponseId

fun getResponseId(): String?

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

fun toString(): String!

Returns a log friendly string version of this object.

Public properties

adapterResponses

val adapterResponses: (Mutable)List<AdapterResponseInfo!>!