RtbSignalData

public class RtbSignalData


Data passed into the adapter for signal generation.

Summary

Public constructors

RtbSignalData(
    Context context,
    List<MediationConfiguration> configurations,
    Bundle networkExtras,
    @Nullable AdSize adSize
)

Constructs an RtbSignalData with the provided extra parameters.

Public methods

@Nullable AdSize

Returns the ad size associated with a banner ad request, or null if this signal data is not for a banner ad request.

@Nullable MediationConfiguration

This method is deprecated.

Use getConfigurations.

List<MediationConfiguration>

Returns the configurations defined by the publisher in the AdMob or Ad Manager UI.

Context

Returns the context.

Bundle

Returns the extra parameters set by the publisher on a per-request basis for a specific ad network adapter.

Public fields

adSize

public final @Nullable AdSize adSize

configurations

public final List<MediationConfigurationconfigurations

context

public final Context context

networkExtras

public final Bundle networkExtras

Public constructors

RtbSignalData

public RtbSignalData(
    Context context,
    List<MediationConfiguration> configurations,
    Bundle networkExtras,
    @Nullable AdSize adSize
)

Constructs an RtbSignalData with the provided extra parameters.

Public methods

getAdSize

public @Nullable AdSize getAdSize()

Returns the ad size associated with a banner ad request, or null if this signal data is not for a banner ad request. Check getFormat to determine the ad format being requested.

getConfiguration

public @Nullable MediationConfiguration getConfiguration()

Returns the configuration defined by the publisher in the AdMob or Ad Manager UI.

getConfigurations

public List<MediationConfigurationgetConfigurations()

Returns the configurations defined by the publisher in the AdMob or Ad Manager UI.

getContext

public Context getContext()

Returns the context.

getNetworkExtras

public Bundle getNetworkExtras()

Returns the extra parameters set by the publisher on a per-request basis for a specific ad network adapter.