PersistAdSelectionResultRequest


@ExperimentalFeatures.Ext10OptIn
public final class PersistAdSelectionResultRequest


Represent input parameters to the AdSelectionManager#persistAdSelectionResult API.

Summary

Public constructors

PersistAdSelectionResultRequest(
    long adSelectionId,
    AdTechIdentifier seller,
    byte[] adSelectionResult
)

Public methods

boolean
equals(Object other)

Checks whether two PersistAdSelectionResultRequest contain the same information.

final long

An ID unique only to a device user that identifies a successful ad selection.

final byte[]

The adSelectionResult that is collected from device.

final AdTechIdentifier

AdTechIdentifier of the seller, for example "www.example-ssp.com".

int

Returns the hash of the PersistAdSelectionResultRequest object's data.

@NonNull String

Overrides the toString method.

Public constructors

PersistAdSelectionResultRequest

Added in 1.1.0-beta11
public PersistAdSelectionResultRequest(
    long adSelectionId,
    AdTechIdentifier seller,
    byte[] adSelectionResult
)
Parameters
long adSelectionId

An ID unique only to a device user that identifies a successful ad selection.

AdTechIdentifier seller

AdTechIdentifier of the seller, for example "www.example-ssp.com".

byte[] adSelectionResult

The adSelectionResult that is collected from device.

Public methods

equals

public boolean equals(Object other)

Checks whether two PersistAdSelectionResultRequest contain the same information.

getAdSelectionId

Added in 1.1.0-beta11
public final long getAdSelectionId()

An ID unique only to a device user that identifies a successful ad selection.

getAdSelectionResult

Added in 1.1.0-beta11
public final byte[] getAdSelectionResult()

The adSelectionResult that is collected from device.

getSeller

Added in 1.1.0-beta11
public final AdTechIdentifier getSeller()

AdTechIdentifier of the seller, for example "www.example-ssp.com".

hashCode

public int hashCode()

Returns the hash of the PersistAdSelectionResultRequest object's data.

toString

public @NonNull String toString()

Overrides the toString method.