AdSourceResponseInfo

data class AdSourceResponseInfo


Response information for an individual ad source in an ad response.

Summary

Public constructors

AdSourceResponseInfo(
    adapterClassName: String,
    latencyMillis: Long,
    adError: MediationAdError?,
    credentials: Bundle,
    name: String,
    id: String,
    instanceName: String,
    instanceId: String
)

Public functions

open String

Public properties

MediationAdError?
@SerializedName(value = "Error")
adError

The error that occurred while loading the ad.

String
@SerializedName(value = "Adapter")
adapterClassName

The class name that identifies the ad source adapter.

Bundle
@SerializedName(value = "Credentials")
credentials

Ad source adapter credentials specified in the AdMob or Ad Manager UI.

String
@SerializedName(value = "Ad Source ID")
id

The ad source ID associated with this adapter response or "".

String
@SerializedName(value = "Ad Source Instance ID")
instanceId

The ad source instance ID associated with this adapter response or "".

String
@SerializedName(value = "Ad Source Instance Name")
instanceName

The ad source instance name associated with this adapter response or "".

Long
@SerializedName(value = "Latency")
latencyMillis

The amount of time the ad source adapter spent loading an ad.

String
@SerializedName(value = "Ad Source Name")
name

The name associated with this ad source adapter response or "".

Public constructors

AdSourceResponseInfo

AdSourceResponseInfo(
    adapterClassName: String,
    latencyMillis: Long,
    adError: MediationAdError?,
    credentials: Bundle,
    name: String,
    id: String,
    instanceName: String,
    instanceId: String
)
Parameters
adapterClassName: String

The class name that identifies the ad source adapter.

latencyMillis: Long

The amount of time the ad source adapter spent loading an ad. 0 if the adapter was not invoked.

adError: MediationAdError?

The error that occurred while loading the ad. Returns 'null' if no error occurred or the ad source adapter was not invoked.

credentials: Bundle

Ad source adapter credentials specified in the AdMob or Ad Manager UI.

name: String

The name associated with this ad source adapter response or "".

id: String

The ad source ID associated with this adapter response or "".

instanceName: String

The ad source instance name associated with this adapter response or "".

instanceId: String

The ad source instance ID associated with this adapter response or "".

Public functions

toString

open fun toString(): String

Public properties

adError

@SerializedName(value = "Error")
val adErrorMediationAdError?

The error that occurred while loading the ad. Returns 'null' if no error occurred or the ad source adapter was not invoked.

adapterClassName

@SerializedName(value = "Adapter")
val adapterClassNameString

The class name that identifies the ad source adapter.

credentials

@SerializedName(value = "Credentials")
val credentialsBundle

Ad source adapter credentials specified in the AdMob or Ad Manager UI.

id

@SerializedName(value = "Ad Source ID")
val idString

The ad source ID associated with this adapter response or "".

instanceId

@SerializedName(value = "Ad Source Instance ID")
val instanceIdString

The ad source instance ID associated with this adapter response or "".

instanceName

@SerializedName(value = "Ad Source Instance Name")
val instanceNameString

The ad source instance name associated with this adapter response or "".

latencyMillis

@SerializedName(value = "Latency")
val latencyMillisLong

The amount of time the ad source adapter spent loading an ad. 0 if the adapter was not invoked.

name

@SerializedName(value = "Ad Source Name")
val nameString

The name associated with this ad source adapter response or "".