AdapterInitializationConfig.Builder

@ExperimentalApi
class AdapterInitializationConfig.Builder


Summary

Public constructors

Public functions

AdapterInitializationConfig
AdapterInitializationConfig.Builder

Sets the ad formats for which the SDK will initialize adapters.

AdapterInitializationConfig.Builder

Sets the ad units for which the SDK will initialize adapters.

AdapterInitializationConfig.Builder

Sets the specific adapter classes that will be initialized.

AdapterInitializationConfig.Builder

Sets the specific adapter classes that will not be initialized.

AdapterInitializationConfig.Builder

Sets the amount of time that the SDK will wait for the requested set of adapters to initialize before invoking OnAdapterInitializationCompleteListener.

AdapterInitializationConfig.Builder

Java variant of setInitializationTimeout.

Public constructors

Builder

Builder()

Public functions

setAllowedAdFormats

fun setAllowedAdFormats(formats: Set<AdFormat>): AdapterInitializationConfig.Builder

Sets the ad formats for which the SDK will initialize adapters.

Note: An adapter will have to be associated with both one of the allowed ad formats AND one of the allowed ad units, if both are specified.

setAllowedAdUnitIds

fun setAllowedAdUnitIds(adUnitIds: Set<String>): AdapterInitializationConfig.Builder

Sets the ad units for which the SDK will initialize adapters.

Note: An adapter will have to be associated with both one of the allowed ad formats AND one of the allowed ad units, if both are specified.

setAllowedAdapterClasses

fun setAllowedAdapterClasses(adapterClasses: Set<String>): AdapterInitializationConfig.Builder

Sets the specific adapter classes that will be initialized.

An adapter in this set will always be initialized, regardless of ad unit and format settings, unless it is present in setExcludedAdapterClasses.

setExcludedAdapterClasses

fun setExcludedAdapterClasses(adapterClasses: Set<String>): AdapterInitializationConfig.Builder

Sets the specific adapter classes that will not be initialized.

An adapter in this set will never be initialized, regardless of calls to setAllowedAdFormats, setAllowedAdUnitIds, or setAllowedAdapterClasses.

setInitializationTimeout

fun setInitializationTimeout(timeout: Duration): AdapterInitializationConfig.Builder

Sets the amount of time that the SDK will wait for the requested set of adapters to initialize before invoking OnAdapterInitializationCompleteListener.

This time includes the amount of time that it takes to fetch your mediation configuration from Google's servers, if one is not cached already, but does not include the time it takes for the SDK to minimally get ready and start processing adapter initialization.

setInitializationTimeoutMs

fun setInitializationTimeoutMs(timeout: Long): AdapterInitializationConfig.Builder

Java variant of setInitializationTimeout.