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 android.adservices.adselection.AdSelectionManager#persistAdSelectionResult methods in AdSelectionManager.

Summary

Nested classes

Builder for PersistAdSelectionResultRequest objects.

Public methods
Long

Returns the id that identifies the android.adservices.adselection.AdSelectionManager#getAdSelectionData(android.adservices.adselection.GetAdSelectionDataRequest,java.util.concurrent.Executor,android.os.OutcomeReceiver) payload that generated this result.

Long

ByteArray?

AdTechIdentifier?

Public methods

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.