# GetAdSelectionDataRequest

Artifact: [androidx.privacysandbox.ads:ads-adservices](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest.kt+class:androidx.privacysandbox.ads.adservices.adselection.GetAdSelectionDataRequest) Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

*** ** * ** ***


```
@ExperimentalFeatures.Ext10OptIn
public final class GetAdSelectionDataRequest
```

<br />

*** ** * ** ***

Represent input parameters to the AdSelectionManager#getAdSelectionData API.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#GetAdSelectionDataRequest(androidx.privacysandbox.ads.adservices.common.AdTechIdentifier,android.net.Uri,androidx.privacysandbox.ads.adservices.adselection.SellerConfiguration)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier seller, https://developer.android.com/reference/android/net/Uri.html coordinatorOriginUri, https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration sellerConfiguration )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest` objects contain the same information. |
| `final https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#getCoordinatorOriginUri()()` The coordinator origin Uri from which GetAdSelectionData API should fetch the decryption key. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#getSeller()()` AdTechIdentifier of the seller, for example "www.example-ssp.com". |
| `final https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#getSellerConfiguration()()` the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload. |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#hashCode()()` Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest` object's data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#toString()()` Overrides the toString method. |

## Public constructors

### GetAdSelectionDataRequest

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public GetAdSelectionDataRequest(
    @NonNull AdTechIdentifier seller,
    Uri coordinatorOriginUri,
    SellerConfiguration sellerConfiguration
)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier seller` | AdTechIdentifier of the seller, for example "www.example-ssp.com". |
| `https://developer.android.com/reference/android/net/Uri.html coordinatorOriginUri` | The coordinator origin Uri from which GetAdSelectionData API should fetch the decryption key. The origin must use HTTPS URI. The origin will only contain the scheme, hostname and port of the URL. If the origin is not provided or is null, PPAPI will use the default coordinator URI. The origin must belong to a list of pre-approved coordinator origins. Otherwise, AdSelectionManager#getAdSelectionData will throw an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html`. See [Developer Guide]("https://developers.google.com/privacy-sandbox/relevance/aggregation-service#coordinator") for more details. |
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration sellerConfiguration` | the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload. |

## Public methods

### equals

```
public boolean equals(Object other)
```

Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest` objects contain the same information.

### getCoordinatorOriginUri

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public final Uri getCoordinatorOriginUri()
```

The coordinator origin Uri from which GetAdSelectionData API should fetch the decryption key. The origin must use HTTPS URI. The origin will only contain the scheme, hostname and port of the URL. If the origin is not provided or is null, PPAPI will use the default coordinator URI. The origin must belong to a list of pre-approved coordinator origins. Otherwise, AdSelectionManager#getAdSelectionData will throw an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html`. See [Developer Guide]("https://developers.google.com/privacy-sandbox/relevance/aggregation-service#coordinator") for more details.

### getSeller

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public final @NonNull AdTechIdentifier getSeller()
```

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

### getSellerConfiguration

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public final SellerConfiguration getSellerConfiguration()
```

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

### hashCode

```
public int hashCode()
```

Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest` object's data.

### toString

```
public @NonNull String toString()
```

Overrides the toString method.