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 functions

open String

Public properties

List<AdSourceResponseInfo>
@SerializedName(value = "Ad Source Responses")
adSourceResponses

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

String?
@SerializedName(value = "Mediation Adapter Class Name")
adapterClassName

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

AdSourceResponseInfo?
@SerializedName(value = "Loaded Ad Source Response Info")
loadedAdSourceResponseInfo

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

Bundle
@SerializedName(value = "Response Extras")
responseExtras

Extra information about the ad response.

String?
@SerializedName(value = "Response ID")
responseId

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 functions

toString

open fun toString(): String

Public properties

adSourceResponses

@SerializedName(value = "Ad Source Responses")
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

@SerializedName(value = "Mediation Adapter Class Name")
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

@SerializedName(value = "Loaded Ad Source Response Info")
val loadedAdSourceResponseInfoAdSourceResponseInfo?

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

responseExtras

@SerializedName(value = "Response Extras")
val responseExtrasBundle

Extra information about the ad response.

responseId

@SerializedName(value = "Response ID")
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.