GetAdSelectionDataOutcome


public final class GetAdSelectionDataOutcome
extends Object

java.lang.Object
   ↳ android.adservices.adselection.GetAdSelectionDataOutcome


Represents ad selection data collected from device for ad selection.

Summary

Public methods

byte[] getAdSelectionData()

Returns the adSelectionData that is collected from device.

long getAdSelectionDataId()

Returns the id that uniquely identifies this GetAdSelectionData payload.

long getAdSelectionId()

This method was deprecated in API level 36. Use the getAdSelectionDataId() instead.

Inherited methods

Public methods

getAdSelectionData

public byte[] getAdSelectionData ()

Returns the adSelectionData that is collected from device.

Returns
byte[] This value may be null.

getAdSelectionDataId

public long getAdSelectionDataId ()

Returns the id that uniquely identifies this GetAdSelectionData payload.

Returns
long

getAdSelectionId

Added in API level 35
Also in Ad Services Extensions 10
Deprecated in API level 36
public long getAdSelectionId ()

This method was deprecated in API level 36.
Use the getAdSelectionDataId() instead.

Returns the adSelectionId that identifies the AdSelection.

Returns
long