AdapterResponseInfo

public final class AdapterResponseInfo 

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

Summary

Public fields

final @ Nullable AdError

Public methods

@ Nullable AdError

Gets the error that occurred while rendering the ad.

String

Gets the ad source ID associated with this adapter response.

String

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

String

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

String

Gets the ad source name associated with this adapter response.

String

Gets a class name that identifies the ad network adapter.

Bundle

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

long

Gets the amount of time the ad network adapter spent loading an ad.

String

Returns a log friendly string version of this object.

Public fields

adError

public final @ Nullable 
 AdError 
 adError 

Public methods

getAdError

public @ Nullable 
 AdError 
 getAdError 
()

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

getAdSourceId

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.

getAdSourceInstanceId

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.

getAdSourceInstanceName

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.

getAdSourceName

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.

getAdapterClassName

public  String 
 getAdapterClassName 
()

Gets a class name that identifies the ad network adapter.

getCredentials

public  Bundle 
 getCredentials 
()

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

getLatencyMillis

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.

toString

public  String 
 toString 
()

Returns a log friendly string version of this object.

Create a Mobile Website
View Site in Mobile | Classic
Share by: