Builder


class Builder
kotlin.Any
   ↳ android.adservices.adselection.PersistAdSelectionResultRequest.Builder

Builder for PersistAdSelectionResultRequest objects.

Summary

Public constructors

Public methods
PersistAdSelectionResultRequest

Builds a PersistAdSelectionResultRequest instance.

PersistAdSelectionResultRequest.Builder
setAdSelectionDataId(adSelectionDataId: Long)

Sets the ad selection data id Long.

PersistAdSelectionResultRequest.Builder
setAdSelectionId(adSelectionId: Long)

Sets the ad selection id Long.

PersistAdSelectionResultRequest.Builder
setAdSelectionResult(adSelectionResult: ByteArray?)

Sets the ad selection result String.

PersistAdSelectionResultRequest.Builder

Sets the seller AdTechIdentifier.

Public constructors

Builder

Builder()

Public methods

build

fun build(): PersistAdSelectionResultRequest

Builds a PersistAdSelectionResultRequest instance.

Return
PersistAdSelectionResultRequest This value cannot be null.
Exceptions
java.lang.IllegalArgumentException if the adSelectionIid is not set

setAdSelectionDataId

fun setAdSelectionDataId(adSelectionDataId: Long): PersistAdSelectionResultRequest.Builder

Sets the ad selection data id Long.

Return
PersistAdSelectionResultRequest.Builder This value cannot be null.

setAdSelectionId

fun setAdSelectionId(adSelectionId: Long): PersistAdSelectionResultRequest.Builder

Deprecated: Use the setAdSelectionDataId(long) instead.

Sets the ad selection id Long.

Return
PersistAdSelectionResultRequest.Builder This value cannot be null.

setAdSelectionResult

fun setAdSelectionResult(adSelectionResult: ByteArray?): PersistAdSelectionResultRequest.Builder

Sets the ad selection result String.

Parameters
adSelectionResult ByteArray?: This value may be null.
Return
PersistAdSelectionResultRequest.Builder This value cannot be null.

setSeller

fun setSeller(seller: AdTechIdentifier?): PersistAdSelectionResultRequest.Builder

Sets the seller AdTechIdentifier.

Parameters
seller AdTechIdentifier?: This value may be null.
Return
PersistAdSelectionResultRequest.Builder This value cannot be null.