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

Builds the UpdateAdCounterHistogramRequest object.

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

Sets the caller adtech entity's AdTechIdentifier.

Public constructors

Builder

Builder(
    adSelectionId: Long,
    adEventType: Int,
    callerAdTech: AdTechIdentifier)
Parameters
callerAdTech AdTechIdentifier: This value cannot be null.

Public methods

build

fun build(): UpdateAdCounterHistogramRequest

Deprecated: Deprecated in Java.

Builds the UpdateAdCounterHistogramRequest object.

Return
UpdateAdCounterHistogramRequest This value cannot be null.

setAdEventType

fun setAdEventType(adEventType: Int): UpdateAdCounterHistogramRequest.Builder

Deprecated: Deprecated in Java.

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 one of the following:
Return
UpdateAdCounterHistogramRequest.Builder This value cannot be null.

setAdSelectionId

fun setAdSelectionId(adSelectionId: Long): UpdateAdCounterHistogramRequest.Builder

Deprecated: Deprecated in Java.

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

Deprecated: Deprecated in Java.

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.