Android SDK Version
Enclosing class:

public static interface AudienceNetworkAds.InitSettingsBuilder
A builder class that allows to pass additional setting during initialization.
Since:
5.2
Method Summary
Modifier and TypeMethod and Description
voidinitialize()
Triggers asynchronous initialization.
AudienceNetworkAds.InitSettingsBuilderwithInitListener(AudienceNetworkAds.InitListener initializationListener)
An optional listener that will be called as soon as initialization is finished.
AudienceNetworkAds.InitSettingsBuilderwithMediationService(java.lang.String mediationService)
Sets the name of the mediation service that is mediating Audience Network.
AudienceNetworkAds.InitSettingsBuilderwithPlacementIds(java.util.List<java.lang.String> placementIds)
An optional list of placement ids that are used in this application.
Method Detail

withPlacementIds

AudienceNetworkAds.InitSettingsBuilder withPlacementIds(java.util.List<java.lang.String> placementIds)
An optional list of placement ids that are used in this application.
Parameters:
placementIds - list of Strings that represent placement ids.
Returns:
the builder.
Since:
5.2

withMediationService

AudienceNetworkAds.InitSettingsBuilder withMediationService(java.lang.String mediationService)
Sets the name of the mediation service that is mediating Audience Network.
If an ad provider service is mediating Audience Network in their sdk, it is required to set the name of the mediation service.
Parameters:
mediationService - name of the mediation service.
Returns:
the builder.
Since:
5.2

withInitListener

AudienceNetworkAds.InitSettingsBuilder withInitListener(AudienceNetworkAds.InitListener initializationListener)
An optional listener that will be called as soon as initialization is finished.
Parameters:
initializationListener - a listener.
Returns:
the builder.
Since:
5.2

initialize

void initialize()
Triggers asynchronous initialization.
Since:
5.2