Builder
classBuilder
| kotlin.Any | |
| ↳ | android.adservices.common.FrequencyCapFilters.Builder |
Builder for creating FrequencyCapFilters objects.
Summary
| Public constructors | |
|---|---|
Builder() |
|
Public constructors
Public methods
build
funbuild(): FrequencyCapFilters
Deprecated: Deprecated in Java.
Builds and returns a FrequencyCapFilters instance.
No more than 20 frequency cap filters may be associated with a single ad. If more total filters than the limit have been set, an IllegalArgumentException will be thrown.
| Return | |
|---|---|
FrequencyCapFilters |
This value cannot be null. |
setKeyedFrequencyCapsForClickEvents
funsetKeyedFrequencyCapsForClickEvents(keyedFrequencyCapsForClickEvents: MutableList<KeyedFrequencyCap!>): FrequencyCapFilters.Builder
Deprecated: Deprecated in Java.
Sets the list of KeyedFrequencyCap objects that will filter on the AD_EVENT_TYPE_CLICK event type.
See getKeyedFrequencyCapsForClickEvents() for more information.
| Parameters | |
|---|---|
keyedFrequencyCapsForClickEvents |
MutableList<KeyedFrequencyCap!>: This value cannot be null. |
| Return | |
|---|---|
FrequencyCapFilters.Builder |
This value cannot be null. |
setKeyedFrequencyCapsForImpressionEvents
funsetKeyedFrequencyCapsForImpressionEvents(keyedFrequencyCapsForImpressionEvents: MutableList<KeyedFrequencyCap!>): FrequencyCapFilters.Builder
Deprecated: Deprecated in Java.
Sets the list of KeyedFrequencyCap objects that will filter on the AD_EVENT_TYPE_IMPRESSION event type.
See getKeyedFrequencyCapsForImpressionEvents() for more information.
| Parameters | |
|---|---|
keyedFrequencyCapsForImpressionEvents |
MutableList<KeyedFrequencyCap!>: This value cannot be null. |
| Return | |
|---|---|
FrequencyCapFilters.Builder |
This value cannot be null. |
setKeyedFrequencyCapsForViewEvents
funsetKeyedFrequencyCapsForViewEvents(keyedFrequencyCapsForViewEvents: MutableList<KeyedFrequencyCap!>): FrequencyCapFilters.Builder
Deprecated: Deprecated in Java.
Sets the list of KeyedFrequencyCap objects that will filter on the AD_EVENT_TYPE_VIEW event type.
See getKeyedFrequencyCapsForViewEvents() for more information.
| Parameters | |
|---|---|
keyedFrequencyCapsForViewEvents |
MutableList<KeyedFrequencyCap!>: This value cannot be null. |
| Return | |
|---|---|
FrequencyCapFilters.Builder |
This value cannot be null. |
setKeyedFrequencyCapsForWinEvents
funsetKeyedFrequencyCapsForWinEvents(keyedFrequencyCapsForWinEvents: MutableList<KeyedFrequencyCap!>): FrequencyCapFilters.Builder
Deprecated: Deprecated in Java.
Sets the list of KeyedFrequencyCap objects that will filter on the AD_EVENT_TYPE_WIN event type.
See getKeyedFrequencyCapsForWinEvents() for more information.
| Parameters | |
|---|---|
keyedFrequencyCapsForWinEvents |
MutableList<KeyedFrequencyCap!>: This value cannot be null. |
| Return | |
|---|---|
FrequencyCapFilters.Builder |
This value cannot be null. |