AdapterResponseInfo

public final class AdapterResponseInfo extends Object

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

Public Method Summary

AdError
getAdError()
Gets the error that occurred while rendering the ad.
String
getAdSourceId()
Gets the ad source ID associated with this adapter response.
String
getAdSourceInstanceId()
Gets the ad source instance ID associated with this adapter response.
String
getAdSourceInstanceName()
Gets the ad source instance name associated with this adapter response.
String
getAdSourceName()
Gets the ad source name associated with this adapter response.
String
getAdapterClassName()
Gets a class name that identifies the ad network adapter.
Bundle
getCredentials()
Gets a bundle containing adapter credentials specified in the AdMob or Ad Manager UI.
long
getLatencyMillis()
Gets the amount of time the ad network adapter spent loading an ad.
String
toString()
Returns a log friendly string version of this object.

Inherited Method Summary

Public Methods

public AdError getAdError ()

Gets the error that occurred while rendering the ad. Returns null if no error occurred or the adapter was not attempted.

public String getAdSourceId ()

Gets the ad source ID associated with this adapter response.

Returns an empty string "" if the ad server doesn't populate this field.

public String getAdSourceInstanceId ()

Gets the ad source instance ID associated with this adapter response.

Returns an empty string "" if the ad server doesn't populate this field.

public String getAdSourceInstanceName ()

Gets the ad source instance name associated with this adapter response.

Returns an empty string "" if the ad server doesn't populate this field.

public String getAdSourceName ()

Gets the ad source name associated with this adapter response.

Returns an empty string "" if the ad server doesn't populate this field.

public String getAdapterClassName ()

Gets a class name that identifies the ad network adapter.

public Bundle getCredentials ()

Gets a bundle containing adapter credentials specified in the AdMob or Ad Manager UI.

public long getLatencyMillis ()

Gets the amount of time the ad network adapter spent loading an ad. Returns {code 0} if the adapter was not attempted.

public String toString ()

Returns a log friendly string version of this object.