PreloadConfiguration

public final class PreloadConfiguration


A configuration defining what and how many ads to preload.

Summary

Public constructors

Public methods

final Integer

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

final @NonNull AdRequest

The AdRequest that the SDK should use to preload ads.

Public constructors

PreloadConfiguration

public PreloadConfiguration(@NonNull AdRequest request)

PreloadConfiguration

public PreloadConfiguration(@NonNull AdRequest request, Integer bufferSize)
Parameters
@NonNull AdRequest request

The AdRequest that the SDK should use to preload ads.

Integer bufferSize

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 methods

getBufferSize

public final Integer getBufferSize()

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.

getRequest

public final @NonNull AdRequest getRequest()

The AdRequest that the SDK should use to preload ads.