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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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

build

public UpdateAdCounterHistogramRequest build ()

Builds the UpdateAdCounterHistogramRequest object.

Returns
UpdateAdCounterHistogramRequest This value cannot be null.

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.