AdFilters.Builder


public static final class AdFilters.Builder
extends Object

java.lang.Object
   ↳ android.adservices.common.AdFilters.Builder


Builder for creating AdFilters objects.

Summary

Public constructors

Builder()

Public methods

AdFilters build()

Builds and returns an AdFilters instance.

AdFilters.Builder setAppInstallFilters(AppInstallFilters appInstallFilters)

Sets the AppInstallFilters which will apply to the ad.

AdFilters.Builder setFrequencyCapFilters(FrequencyCapFilters frequencyCapFilters)

Sets the FrequencyCapFilters which will apply to the ad.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public AdFilters build ()

Builds and returns an AdFilters instance.

Returns
AdFilters This value cannot be null.

setAppInstallFilters

public AdFilters.Builder setAppInstallFilters (AppInstallFilters appInstallFilters)

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.

Returns
AdFilters.Builder

setFrequencyCapFilters

public AdFilters.Builder setFrequencyCapFilters (FrequencyCapFilters frequencyCapFilters)

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.

Returns
AdFilters.Builder