GetAdSelectionDataOutcome


public final class GetAdSelectionDataOutcome
extends Object

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


This class was deprecated in API level 37.
The Rubidium (Rb) Relevance APIs, including those in android.adservices.adselection, are being deprecated. Relevance APIs have no direct replacement. Developers should stop using them, as calls will be rejected in future Android releases. Please refer to official Privacy Sandbox documentation for deprecation and roadmap details: https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/

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 35. Use the getAdSelectionDataId() instead.

Inherited methods

Public methods

getAdSelectionData

Added in API level 35
Also in Ad Services Extensions 10
Deprecated in API level 37
 public byte[] getAdSelectionData ()

Returns the adSelectionData that is collected from device.

Returns
byte[] This value may be null.

getAdSelectionDataId

Added in API level 35
Also in Ad Services Extensions 12
Deprecated in API level 37
 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 35
 public long getAdSelectionId ()

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

Returns the adSelectionId that identifies the AdSelection.

Returns
long