Builder


class Builder
kotlin.Any
   ↳ android.adservices.common.AdFilters.Builder

Builder for creating AdFilters objects.

Summary

Public constructors

Public methods
AdFilters

Builds and returns an AdFilters instance.

AdFilters.Builder

Sets the AppInstallFilters which will apply to the ad.

AdFilters.Builder

Sets the FrequencyCapFilters which will apply to the ad.

Public constructors

Builder

Builder()

Public methods

build

fun build(): AdFilters

Builds and returns an AdFilters instance.

Return
AdFilters This value cannot be null.

setAppInstallFilters

fun setAppInstallFilters(appInstallFilters: AppInstallFilters?): AdFilters.Builder

Sets the AppInstallFilters which will apply to the ad.

If set to null or not set, no app install filters will be associated with the ad.

Parameters
appInstallFilters AppInstallFilters?: This value may be null.

setFrequencyCapFilters

fun setFrequencyCapFilters(frequencyCapFilters: FrequencyCapFilters?): AdFilters.Builder

Sets the FrequencyCapFilters which will apply to the ad.

If set to null or not set, no frequency cap filters will be associated with the ad.

Parameters
frequencyCapFilters FrequencyCapFilters?: This value may be null.