PreloadConfiguration

data class PreloadConfiguration


A configuration defining what and how many ads to preload.

Summary

Public constructors

PreloadConfiguration(request: AdRequest, bufferSize: Int?)

Public properties

Int?

The maximum number of preloaded ads that the SDK should have in memory at any time for this configuration.

AdRequest

The AdRequest that the SDK should use to preload ads.

Public constructors

PreloadConfiguration

PreloadConfiguration(request: AdRequest)

PreloadConfiguration

PreloadConfiguration(request: AdRequest, bufferSize: Int?)
Parameters
request: AdRequest

The AdRequest that the SDK should use to preload ads.

bufferSize: Int?

The maximum number of preloaded ads that the SDK should have in memory at any time for this configuration. This value should be at least 1 and may be capped by the SDK for system health. The default cap is 15. If not specified, Google will select an optimal buffer size, currently defaulting to 2.

Public properties

bufferSize

val bufferSizeInt?

The maximum number of preloaded ads that the SDK should have in memory at any time for this configuration. This value should be at least 1 and may be capped by the SDK for system health. The default cap is 15. If not specified, Google will select an optimal buffer size, currently defaulting to 2.

request

val requestAdRequest

The AdRequest that the SDK should use to preload ads.