ResponseInfo

data class ResponseInfo


Information about an ad response.

Summary

Public constructors

ResponseInfo(
    adapterClassName: String?,
    responseId: String?,
    responseExtras: Bundle,
    loadedAdSourceResponseInfo: AdSourceResponseInfo?,
    adSourceResponses: List<AdSourceResponseInfo>
)

Public properties

List<AdSourceResponseInfo>

List of all AdSourceResponseInfo containing metadata for each ad source included in the ad response.

String?

The mediation adapter class name of the ad source that loaded the ad.

AdSourceResponseInfo?

The AdSourceResponseInfo corresponding to the ad source that was used to load the ad.

Bundle

Extra information about the ad response.

String?

The response ID for the loaded ad.

Public constructors

ResponseInfo

ResponseInfo(
    adapterClassName: String?,
    responseId: String?,
    responseExtras: Bundle,
    loadedAdSourceResponseInfo: AdSourceResponseInfo?,
    adSourceResponses: List<AdSourceResponseInfo>
)
Parameters
adapterClassName: String?

The mediation adapter class name of the ad source 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". null if the ad failed to load.

responseId: String?

The response ID for the loaded ad. Can be used to look up ads in the Ad Review Center. null if the ad failed to load.

responseExtras: Bundle

Extra information about the ad response.

loadedAdSourceResponseInfo: AdSourceResponseInfo?

The AdSourceResponseInfo corresponding to the ad source that was used to load the ad. null if the ad failed to load.

adSourceResponses: List<AdSourceResponseInfo>

List of all AdSourceResponseInfo containing metadata for each ad source included in the ad response. Can be used to debug mediation waterfall execution.

Public properties

adSourceResponses

val adSourceResponsesList<AdSourceResponseInfo>

List of all AdSourceResponseInfo containing metadata for each ad source included in the ad response. Can be used to debug mediation waterfall execution.

adapterClassName

val adapterClassNameString?

The mediation adapter class name of the ad source 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". null if the ad failed to load.

loadedAdSourceResponseInfo

val loadedAdSourceResponseInfoAdSourceResponseInfo?

The AdSourceResponseInfo corresponding to the ad source that was used to load the ad. null if the ad failed to load.

responseExtras

val responseExtrasBundle

Extra information about the ad response.

responseId

val responseIdString?

The response ID for the loaded ad. Can be used to look up ads in the Ad Review Center. null if the ad failed to load.