Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [Ad Services Extensions 10](https://developer.android.com/sdkExtensions)   
Deprecated in [API level
37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest#nestedclasses) \| [Methods](https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest#inhmethods)

# GetAdSelectionDataRequest

*** ** * ** ***


`
public

final

class
GetAdSelectionDataRequest
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.adservices.adselection.GetAdSelectionDataRequest |

<br />

*** ** * ** ***


**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 a request containing the information to get ad selection data.

Instances of this class are created by SDKs to be provided as arguments to the `https://developer.android.com/reference/android/adservices/adselection/AdSelectionManager#getAdSelectionData(android.adservices.adselection.GetAdSelectionDataRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<android.adservices.adselection.GetAdSelectionDataOutcome,java.lang.Exception>)` methods in `https://developer.android.com/reference/android/adservices/adselection/AdSelectionManager`.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest.Builder` *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/* |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/net/Uri` | ` https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest#getCoordinatorOriginUri()() ` |
| ` https://developer.android.com/reference/android/adservices/common/AdTechIdentifier` | ` https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest#getSeller()() ` |
| ` https://developer.android.com/reference/android/adservices/adselection/SellerConfiguration` | ` https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest#getSellerConfiguration()() ` Returns the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public methods

### getCoordinatorOriginUri

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions)   
Deprecated in [API level
37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Uri getCoordinatorOriginUri ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/Uri` | the coordinator origin Uri where the public keys for encryption are fetched from See `https://developer.android.com/reference/android/adservices/adselection/GetAdSelectionDataRequest.Builder#setCoordinatorOriginUri(android.net.Uri)` for more details on the coordinator origin. This value may be `null`. |

### getSeller

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [Ad Services Extensions 10](https://developer.android.com/sdkExtensions)   
Deprecated in [API level
37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public AdTechIdentifier getSeller ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/adservices/common/AdTechIdentifier` | a AdTechIdentifier of the seller, for example "www.example-ssp.com". This value may be `null`. <br /> |

### getSellerConfiguration

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [Ad Services Extensions 14](https://developer.android.com/sdkExtensions)   
Deprecated in [API level
37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public SellerConfiguration getSellerConfiguration ()
```

Returns the seller ad tech's requested payload configuration, set by the calling SDK, to
optimize the payload.

If this is `null`, the service will send all data available.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/adservices/adselection/SellerConfiguration` | <br /> |