PersistAdSelectionResultRequest


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

Represents a request containing the seller, the ad selection data id and data.

Instances of this class are created by SDKs to be provided as arguments to the AdSelectionManager.persistAdSelectionResult methods in AdSelectionManager.

Summary

Nested classes

Builder for PersistAdSelectionResultRequest objects.

Public methods
Long

Returns the id that identifies the AdSelectionManager.getAdSelectionData(GetAdSelectionDataRequest, Executor, OutcomeReceiver) payload that generated this result.

Long

ByteArray?

AdTechIdentifier?

Public methods

getAdSelectionDataId

fun getAdSelectionDataId(): Long

Returns the id that identifies the AdSelectionManager.getAdSelectionData(GetAdSelectionDataRequest, Executor, OutcomeReceiver) payload that generated this result.

getAdSelectionId

fun getAdSelectionId(): Long

Deprecated: Use the getAdSelectionDataId() instead, the underlying value is enforced to be the same.

Return
Long an ad selection id.

getAdSelectionResult

fun getAdSelectionResult(): ByteArray?
Return
ByteArray? an ad selection result.
This value may be null.

getSeller

fun getSeller(): AdTechIdentifier?
Return
AdTechIdentifier? a seller.
This value may be null.