Builder
class Builder
| kotlin.Any | |
| ↳ | android.adservices.adselection.UpdateAdCounterHistogramRequest.Builder |
Builder for UpdateAdCounterHistogramRequest objects.
Summary
| Public constructors | |
|---|---|
Builder(adSelectionId: Long, adEventType: Int, callerAdTech: AdTechIdentifier) |
|
| Public methods | |
|---|---|
| UpdateAdCounterHistogramRequest |
build()Builds the |
| UpdateAdCounterHistogramRequest.Builder |
setAdEventType(adEventType: Int)Sets the ad event type which, along with an ad's counter keys, identifies which histogram should be updated. |
| UpdateAdCounterHistogramRequest.Builder |
setAdSelectionId(adSelectionId: Long)Sets the ad selection ID with which the rendered ad's events are associated. |
| UpdateAdCounterHistogramRequest.Builder |
setCallerAdTech(callerAdTech: AdTechIdentifier)Sets the caller adtech entity's |
Public constructors
Builder
Builder(
adSelectionId: Long,
adEventType: Int,
callerAdTech: AdTechIdentifier)
| Parameters | |
|---|---|
callerAdTech |
AdTechIdentifier: This value cannot be null. |
Public methods
build
fun build(): UpdateAdCounterHistogramRequest
Builds the UpdateAdCounterHistogramRequest object.
| Return | |
|---|---|
UpdateAdCounterHistogramRequest |
This value cannot be null. |
setAdEventType
fun setAdEventType(adEventType: Int): UpdateAdCounterHistogramRequest.Builder
Sets the ad event type which, along with an ad's counter keys, identifies which histogram should be updated.
See getAdEventType() for more information.
| Parameters | |
|---|---|
adEventType |
Int: Value is android.adservices.common.FrequencyCapFilters.AD_EVENT_TYPE_INVALID, android.adservices.common.FrequencyCapFilters#AD_EVENT_TYPE_WIN, android.adservices.common.FrequencyCapFilters#AD_EVENT_TYPE_IMPRESSION, android.adservices.common.FrequencyCapFilters#AD_EVENT_TYPE_VIEW, android.adservices.common.FrequencyCapFilters#AD_EVENT_TYPE_CLICK, android.adservices.common.FrequencyCapFilters.AD_EVENT_TYPE_MIN, or android.adservices.common.FrequencyCapFilters.AD_EVENT_TYPE_MAX |
| Return | |
|---|---|
UpdateAdCounterHistogramRequest.Builder |
This value cannot be null. |
setAdSelectionId
fun setAdSelectionId(adSelectionId: Long): UpdateAdCounterHistogramRequest.Builder
Sets the ad selection ID with which the rendered ad's events are associated.
See getAdSelectionId() for more information.
| Return | |
|---|---|
UpdateAdCounterHistogramRequest.Builder |
This value cannot be null. |
setCallerAdTech
fun setCallerAdTech(callerAdTech: AdTechIdentifier): UpdateAdCounterHistogramRequest.Builder
Sets the caller adtech entity's AdTechIdentifier.
See getCallerAdTech() for more information.
| Parameters | |
|---|---|
callerAdTech |
AdTechIdentifier: This value cannot be null. |
| Return | |
|---|---|
UpdateAdCounterHistogramRequest.Builder |
This value cannot be null. |