# GetAdSelectionDataRequest

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest "View this page in Java")

<br />

```
@ExperimentalFeatures.Ext10OptIn
class GetAdSelectionDataRequest
```

<br />

*** ** * ** ***

Represent input parameters to the AdSelectionManager#getAdSelectionData API.

## Summary

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

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Checks whether two[GetAdSelectionDataRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest)objects contain the same information. |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#hashCode())`()` Returns the hash of the[GetAdSelectionDataRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest)object's data.                                                                                                              |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#toString())`()` Overrides the toString method.                                                                                                                                                                                                                                                                             |

|                                                              ### Public properties                                                              |
|-------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`?`                                                                          | `@`[ExperimentalFeatures.Ext12OptIn](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/ExperimentalFeatures.Ext12OptIn) [coordinatorOriginUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#coordinatorOriginUri()) The coordinator origin Uri from which GetAdSelectionData API should fetch the decryption key.        |
| [AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)               | [seller](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#seller()) AdTechIdentifier of the seller, for example "www.example-ssp.com".                                                                                                                                                                                                                                  |
| [SellerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration)`?` | `@`[ExperimentalFeatures.Ext14OptIn](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/ExperimentalFeatures.Ext14OptIn) [sellerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest#sellerConfiguration()) the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload. |

## Public constructors

### GetAdSelectionDataRequest

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

```
GetAdSelectionDataRequest(
    seller: AdTechIdentifier,
    coordinatorOriginUri: Uri? = null,
    sellerConfiguration: SellerConfiguration? = null
)
```  

|                                                                                  Parameters                                                                                   |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `seller: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)                                   | AdTechIdentifier of the seller, for example "www.example-ssp.com".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `coordinatorOriginUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`? = null`                                                                         | 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[IllegalArgumentException](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. |
| `sellerConfiguration: `[SellerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration)`? = null` | the seller ad tech's requested payload configuration, set by the calling SDK, to optimize the payload.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

Checks whether two[GetAdSelectionDataRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest)objects contain the same information.  

### hashCode

```
open fun hashCode(): Int
```

Returns the hash of the[GetAdSelectionDataRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/GetAdSelectionDataRequest)object's data.  

### toString

```
open fun toString(): String
```

Overrides the toString method.  

## Public properties

### coordinatorOriginUri

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

```
@ExperimentalFeatures.Ext12OptIn
val coordinatorOriginUri: Uri?
```

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[IllegalArgumentException](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.  

### seller

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

```
val seller: AdTechIdentifier
```

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

### sellerConfiguration

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

```
@ExperimentalFeatures.Ext14OptIn
val sellerConfiguration: SellerConfiguration?
```

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