Builder
class Builder
kotlin.Any | |
↳ | android.adservices.common.AdFilters.Builder |
Builder for creating AdFilters
objects.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
AdFilters |
build() Builds and returns an |
AdFilters.Builder |
setAppInstallFilters(appInstallFilters: AppInstallFilters?) Sets the |
AdFilters.Builder |
setFrequencyCapFilters(frequencyCapFilters: FrequencyCapFilters?) Sets the |
Public constructors
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 . |