# PersistAdSelectionResultRequest

# PersistAdSelectionResultRequest

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/PersistAdSelectionResultRequest.kt+class:androidx.privacysandbox.ads.adservices.adselection.PersistAdSelectionResultRequest)  
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/PersistAdSelectionResultRequest "View this page in Java")

<br />

```
@ExperimentalFeatures.Ext10OptIn
class PersistAdSelectionResultRequest
```

<br />

*** ** * ** ***

Represent input parameters to the AdSelectionManager#persistAdSelectionResult API.

## Summary

|                                                                                                                                                                                                                                                                                                                            ### Public constructors                                                                                                                                                                                                                                                                                                                             |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PersistAdSelectionResultRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PersistAdSelectionResultRequest#PersistAdSelectionResultRequest(kotlin.Long,androidx.privacysandbox.ads.adservices.common.AdTechIdentifier,kotlin.ByteArray))`(` ` adSelectionId: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` seller: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`?,` ` adSelectionResult: `[ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)`?` `)` |

|                                        ### 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/PersistAdSelectionResultRequest#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Checks whether two[PersistAdSelectionResultRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PersistAdSelectionResultRequest)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/PersistAdSelectionResultRequest#hashCode())`()` Returns the hash of the[PersistAdSelectionResultRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PersistAdSelectionResultRequest)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/PersistAdSelectionResultRequest#toString())`()` Overrides the toString method.                                                                                                                                                                                                                                                                                 |

|                                                        ### Public properties                                                         |
|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                        | [adSelectionId](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PersistAdSelectionResultRequest#adSelectionId()) An ID unique only to a device user that identifies a successful ad selection. |
| [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)`?`                                          | [adSelectionResult](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PersistAdSelectionResultRequest#adSelectionResult()) The adSelectionResult that is collected from device.                  |
| [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/PersistAdSelectionResultRequest#seller()) AdTechIdentifier of the seller, for example "www.example-ssp.com".                          |

## Public constructors

### PersistAdSelectionResultRequest

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

```
PersistAdSelectionResultRequest(
    adSelectionId: Long,
    seller: AdTechIdentifier? = null,
    adSelectionResult: ByteArray? = null
)
```  

|                                                                      Parameters                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| `adSelectionId: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                        | An ID unique only to a device user that identifies a successful ad selection. |
| `seller: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`? = null` | AdTechIdentifier of the seller, for example "www.example-ssp.com".            |
| `adSelectionResult: `[ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)`? = null`                               | The adSelectionResult that is collected from device.                          |

## Public functions

### equals

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

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

### hashCode

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

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

### toString

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

Overrides the toString method.  

## Public properties

### adSelectionId

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

```
val adSelectionId: Long
```

An ID unique only to a device user that identifies a successful ad selection.  

### adSelectionResult

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

```
val adSelectionResult: ByteArray?
```

The adSelectionResult that is collected from device.  

### 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".