public static class PreloadConfiguration.Builder extends Object

Builder class for PreloadConfiguration.

Public Constructor Summary

Builder(String adUnitId, AdFormat adFormat)
Creates a new builder for PreloadConfiguration.

Public Method Summary

PreloadConfiguration
PreloadConfiguration.Builder
setAdRequest(AdRequest adRequest)
Sets the ad request to use to preload ads.
PreloadConfiguration.Builder
setBufferSize(int bufferSize)
Sets the preload buffer size.

Inherited Method Summary

Public Constructors

public Builder (String adUnitId, AdFormat adFormat)

Creates a new builder for PreloadConfiguration.

Parameters
adUnitId the ad unit ID to use to preload ads.
adFormat the ad format to use to preload ads.

Public Methods

public PreloadConfiguration build ()

Builds the PreloadConfiguration.

public PreloadConfiguration.Builder setAdRequest (AdRequest adRequest)

Sets the ad request to use to preload ads.

public PreloadConfiguration.Builder setBufferSize (int bufferSize)

Sets the preload buffer size. The buffer size is capped at 15. Defaults to a Google-optimized buffer size if a non-positive number is set.