# AdSelectionFromOutcomesConfig

# AdSelectionFromOutcomesConfig

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


```
@ExperimentalFeatures.Ext10OptIn
class AdSelectionFromOutcomesConfig
```

<br />

*** ** * ** ***

Contains the configuration of the ad selection process that select a winner from a given list of ad selection ids.

Instances of this class are created by SDKs to be provided as arguments to the AdSelectionManager#selectAds methods in [AdSelectionManager](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionManager).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdSelectionFromOutcomesConfig](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#AdSelectionFromOutcomesConfig(androidx.privacysandbox.ads.adservices.common.AdTechIdentifier,kotlin.collections.List,androidx.privacysandbox.ads.adservices.common.AdSelectionSignals,android.net.Uri))`(` ` seller: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`,` ` adSelectionIds: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`>,` ` adSelectionSignals: `[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)`,` ` selectionLogicUri: `[Uri](https://developer.android.com/reference/android/net/Uri.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/AdSelectionFromOutcomesConfig#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Checks whether two [AdSelectionFromOutcomesConfig](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig) 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/AdSelectionFromOutcomesConfig#hashCode())`()` Returns the hash of the [AdSelectionFromOutcomesConfig](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig) 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/AdSelectionFromOutcomesConfig#toString())`()` Overrides the toString method.                                                                                                                                                                                                                                                                                       |

|                                                                            ### Public properties                                                                             |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`>` | [adSelectionIds](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#adSelectionIds()) a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process.      |
| [AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)                                        | [adSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#adSelectionSignals()) signals given to the participating buyers in the ad selection and reporting processes.              |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                          | [selectionLogicUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#selectionLogicUri()) the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection. |
| [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/AdSelectionFromOutcomesConfig#seller()) AdTechIdentifier of the seller, for example "www.example-ssp.com".                                                          |

## Public constructors

### AdSelectionFromOutcomesConfig

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

```
AdSelectionFromOutcomesConfig(
    seller: AdTechIdentifier,
    adSelectionIds: List<Long>,
    adSelectionSignals: AdSelectionSignals,
    selectionLogicUri: Uri
)
```  

|                                                                                           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".                                     |
| `adSelectionIds: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`>` | a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process. |
| `adSelectionSignals: `[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)                                    | signals given to the participating buyers in the ad selection and reporting processes.                 |
| `selectionLogicUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                       | the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection.  |

## Public functions

### equals

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

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

### hashCode

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

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

### toString

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

Overrides the toString method.  

## Public properties

### adSelectionIds

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

```
val adSelectionIds: List<Long>
```

a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process.  

### adSelectionSignals

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

```
val adSelectionSignals: AdSelectionSignals
```

signals given to the participating buyers in the ad selection and reporting processes.  

### selectionLogicUri

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

```
var selectionLogicUri: Uri
```

the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection.  

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