# AdSelectionConfig

# AdSelectionConfig

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/AdSelectionConfig.kt+class:androidx.privacysandbox.ads.adservices.adselection.AdSelectionConfig)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

*** ** * ** ***

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

<br />

```
class AdSelectionConfig
```

<br />

*** ** * ** ***

Contains the configuration of the ad selection process.

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

## Summary

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

|                                                                                                                                                                          ### Public properties                                                                                                                                                                          |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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/AdSelectionConfig#adSelectionSignals()) signals given to the participating buyers in the ad selection and reporting processes.                                                                             |
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`>`                                                                                                                                        | [customAudienceBuyers](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionConfig#customAudienceBuyers()) a list of custom audience buyers allowed by the SSP to participate in the ad selection process.                                                                |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                                                                                                                                                     | [decisionLogicUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionConfig#decisionLogicUri()) the URI used to retrieve the JS code containing the seller/SSP scoreAd function used during the ad selection and reporting processes.                                  |
| [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`, `[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)`>` | [perBuyerSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionConfig#perBuyerSignals()) any information that each buyer would provide during ad selection to participants (such as bid floor, ad selection type, etc.)                                           |
| [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/AdSelectionConfig#seller()) AdTechIdentifier of the seller, for example "www.example-ssp.com".                                                                                                                         |
| [AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)                                                                                                                                                                                                                                   | [sellerSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionConfig#sellerSignals()) represents any information that the SSP used in the ad scoring process to tweak the results of the ad selection process (e.g. brand safety checks, excluded contextual ads). |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                                                                                                                                                     | [trustedScoringSignalsUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionConfig#trustedScoringSignalsUri()) URI endpoint of sell-side trusted signal from which creative specific realtime information can be fetched from.                                        |

## Public constructors

### AdSelectionConfig

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

```
AdSelectionConfig(
    seller: AdTechIdentifier,
    decisionLogicUri: Uri,
    customAudienceBuyers: List<AdTechIdentifier>,
    adSelectionSignals: AdSelectionSignals,
    sellerSignals: AdSelectionSignals,
    perBuyerSignals: Map<AdTechIdentifier, AdSelectionSignals>,
    trustedScoringSignalsUri: 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".                                                                                                           |
| `decisionLogicUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                                                                                                                                                    | the URI used to retrieve the JS code containing the seller/SSP scoreAd function used during the ad selection and reporting processes.                                        |
| `customAudienceBuyers: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`>`                                                                                                                                   | a list of custom audience buyers allowed by the SSP to participate in the ad selection 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.                                                                                       |
| `sellerSignals: `[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)                                                                                                                                                                                                                                     | represents any information that the SSP used in the ad scoring process to tweak the results of the ad selection process (e.g. brand safety checks, excluded contextual ads). |
| `perBuyerSignals: `[Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`, `[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)`>` | any information that each buyer would provide during ad selection to participants (such as bid floor, ad selection type, etc.)                                               |
| `trustedScoringSignalsUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                                                                                                                                            | URI endpoint of sell-side trusted signal from which creative specific realtime information can be fetched from.                                                              |

## Public functions

### equals

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

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

### hashCode

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

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

### toString

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

Overrides the toString method.  

## Public properties

### adSelectionSignals

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

```
val adSelectionSignals: AdSelectionSignals
```

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

### customAudienceBuyers

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

```
val customAudienceBuyers: List<AdTechIdentifier>
```

a list of custom audience buyers allowed by the SSP to participate in the ad selection process.  

### decisionLogicUri

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

```
val decisionLogicUri: Uri
```

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

### perBuyerSignals

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

```
val perBuyerSignals: Map<AdTechIdentifier, AdSelectionSignals>
```

any information that each buyer would provide during ad selection to participants (such as bid floor, ad selection type, etc.)  

### seller

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

```
val seller: AdTechIdentifier
```

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

### sellerSignals

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

```
val sellerSignals: AdSelectionSignals
```

represents any information that the SSP used in the ad scoring process to tweak the results of the ad selection process (e.g. brand safety checks, excluded contextual ads).  

### trustedScoringSignalsUri

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

```
val trustedScoringSignalsUri: Uri
```

URI endpoint of sell-side trusted signal from which creative specific realtime information can be fetched from.