GetAdSelectionDataOutcome


@ExperimentalFeatures.Ext10OptIn
public final class GetAdSelectionDataOutcome


This class represents the output of the AdSelectionManager#getAdSelectionData in the AdSelectionManager. The fields are populated in the case of a successful AdSelectionManager#getAdSelectionData call.

Summary

Public constructors

GetAdSelectionDataOutcome(long adSelectionId, byte[] adSelectionData)

Public methods

boolean
equals(Object other)

Checks whether two GetAdSelectionDataOutcome objects contain the same information.

final byte[]

The adSelectionData that is collected from device.

final long

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

int

Returns the hash of the GetAdSelectionDataOutcome object's data.

@NonNull String

Overrides the toString method.

Public constructors

GetAdSelectionDataOutcome

Added in 1.1.0-beta06
public GetAdSelectionDataOutcome(long adSelectionId, byte[] adSelectionData)
Parameters
long adSelectionId

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

byte[] adSelectionData

The adSelectionData that is collected from device.

Public methods

equals

public boolean equals(Object other)

Checks whether two GetAdSelectionDataOutcome objects contain the same information.

getAdSelectionData

Added in 1.1.0-beta06
public final byte[] getAdSelectionData()

The adSelectionData that is collected from device.

getAdSelectionId

Added in 1.1.0-beta06
public final long getAdSelectionId()

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

hashCode

public int hashCode()

Returns the hash of the GetAdSelectionDataOutcome object's data.

toString

public @NonNull String toString()

Overrides the toString method.