UpdateAdCounterHistogramRequest.Builder

public static final class UpdateAdCounterHistogramRequest.Builder
extends Object

java.lang.Object
   ↳ android.adservices.adselection.UpdateAdCounterHistogramRequest.Builder


Builder for UpdateAdCounterHistogramRequest objects.

Summary

Public constructors

Builder(long adSelectionId, int adEventType, AdTechIdentifier callerAdTech)

Public methods

UpdateAdCounterHistogramRequest build()

Builds the UpdateAdCounterHistogramRequest object.

UpdateAdCounterHistogramRequest.Builder setAdEventType(int adEventType)

Sets the ad event type which, along with an ad's counter keys, identifies which histogram should be updated.

UpdateAdCounterHistogramRequest.Builder setAdSelectionId(long adSelectionId)

Sets the ad selection ID with which the rendered ad's events are associated.

UpdateAdCounterHistogramRequest.Builder setCallerAdTech(AdTechIdentifier callerAdTech)

Sets the caller adtech entity's AdTechIdentifier.

Inherited methods

Public constructors

Builder

public Builder (long adSelectionId, 
                int adEventType, 
                AdTechIdentifier callerAdTech)

Parameters
adSelectionId long

adEventType int

callerAdTech AdTechIdentifier: This value cannot be null.

Public methods

setAdEventType

public UpdateAdCounterHistogramRequest.Builder setAdEventType (int adEventType)

Sets the ad event type which, along with an ad's counter keys, identifies which histogram should be updated.

See UpdateAdCounterHistogramRequest.getAdEventType() for more information.

Parameters
adEventType int: Value is android.adservices.common.FrequencyCapFilters.AD_EVENT_TYPE_INVALID, FrequencyCapFilters.AD_EVENT_TYPE_WIN, FrequencyCapFilters.AD_EVENT_TYPE_IMPRESSION, FrequencyCapFilters.AD_EVENT_TYPE_VIEW, FrequencyCapFilters.AD_EVENT_TYPE_CLICK, android.adservices.common.FrequencyCapFilters.AD_EVENT_TYPE_MIN, or android.adservices.common.FrequencyCapFilters.AD_EVENT_TYPE_MAX

Returns
UpdateAdCounterHistogramRequest.Builder This value cannot be null.

setAdSelectionId

public UpdateAdCounterHistogramRequest.Builder setAdSelectionId (long adSelectionId)

Sets the ad selection ID with which the rendered ad's events are associated.

See UpdateAdCounterHistogramRequest.getAdSelectionId() for more information.

Parameters
adSelectionId long

Returns
UpdateAdCounterHistogramRequest.Builder This value cannot be null.

setCallerAdTech

public UpdateAdCounterHistogramRequest.Builder setCallerAdTech (AdTechIdentifier callerAdTech)

Sets the caller adtech entity's AdTechIdentifier.

See UpdateAdCounterHistogramRequest.getCallerAdTech() for more information.

Parameters
callerAdTech AdTechIdentifier: This value cannot be null.

Returns
UpdateAdCounterHistogramRequest.Builder This value cannot be null.