AdSourceResponseInfo

public final class AdSourceResponseInfo


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

Summary

Public constructors

AdSourceResponseInfo(
    @NonNull String adapterClassName,
    long latencyMillis,
    MediationAdError adError,
    @NonNull Bundle credentials,
    @NonNull String name,
    @NonNull String id,
    @NonNull String instanceName,
    @NonNull String instanceId
)

Public methods

final MediationAdError

The error that occurred while loading the ad.

final @NonNull String

The class name that identifies the ad source adapter.

final @NonNull Bundle

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

final @NonNull String

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

final @NonNull String

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

final @NonNull String

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

final long

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

final @NonNull String

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

Public constructors

AdSourceResponseInfo

public AdSourceResponseInfo(
    @NonNull String adapterClassName,
    long latencyMillis,
    MediationAdError adError,
    @NonNull Bundle credentials,
    @NonNull String name,
    @NonNull String id,
    @NonNull String instanceName,
    @NonNull String instanceId
)
Parameters
@NonNull String adapterClassName

The class name that identifies the ad source adapter.

long latencyMillis

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

MediationAdError adError

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

@NonNull Bundle credentials

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

@NonNull String name

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

@NonNull String id

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

@NonNull String instanceName

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

@NonNull String instanceId

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

Public methods

getAdError

public final MediationAdError getAdError()

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

getAdapterClassName

public final @NonNull String getAdapterClassName()

The class name that identifies the ad source adapter.

getCredentials

public final @NonNull Bundle getCredentials()

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

getId

public final @NonNull String getId()

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

getInstanceId

public final @NonNull String getInstanceId()

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

getInstanceName

public final @NonNull String getInstanceName()

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

getLatencyMillis

public final long getLatencyMillis()

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

getName

public final @NonNull String getName()

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