Builder
class Builder
kotlin.Any | |
↳ | android.adservices.adselection.PersistAdSelectionResultRequest.Builder |
Builder for PersistAdSelectionResultRequest
objects.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
PersistAdSelectionResultRequest |
build() Builds a |
PersistAdSelectionResultRequest.Builder |
setAdSelectionDataId(adSelectionDataId: Long) Sets the ad selection data id |
PersistAdSelectionResultRequest.Builder |
setAdSelectionId(adSelectionId: Long) Sets the ad selection id |
PersistAdSelectionResultRequest.Builder |
setAdSelectionResult(adSelectionResult: ByteArray?) Sets the ad selection result |
PersistAdSelectionResultRequest.Builder |
setSeller(seller: AdTechIdentifier?) Sets the seller |
Public constructors
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
funsetAdSelectionId(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 . |