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

*** ** * ** ***


```
@ExperimentalFeatures.Ext10OptIn
public final 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 `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionManager`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/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)( @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/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html> adSelectionIds, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals adSelectionSignals, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html selectionLogicUri )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#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/AdSelectionFromOutcomesConfig` objects contain the same information. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#getAdSelectionIds()()` a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#getAdSelectionSignals()()` signals given to the participating buyers in the ad selection and reporting processes. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#getSelectionLogicUri()()` the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection. |
| `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/AdSelectionFromOutcomesConfig#getSeller()()` AdTechIdentifier of the seller, for example "www.example-ssp.com". |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#hashCode()()` Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig` object's data. |
| `final void` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/AdSelectionFromOutcomesConfig#setSelectionLogicUri(android.net.Uri)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html value)` |
| `@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/AdSelectionFromOutcomesConfig#toString()()` Overrides the toString method. |

## Public constructors

### AdSelectionFromOutcomesConfig

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

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

| 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/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html> adSelectionIds` | a list of ad selection ids passed by the SSP to participate in the ad selection from outcomes process. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals adSelectionSignals` | signals given to the participating buyers in the ad selection and reporting processes. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html selectionLogicUri` | the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection. |

## Public methods

### equals

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

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

### getAdSelectionIds

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

```
public final @NonNull List<@NonNull Long> getAdSelectionIds()
```

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

### getAdSelectionSignals

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

```
public final @NonNull AdSelectionSignals getAdSelectionSignals()
```

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

### getSelectionLogicUri

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

```
public final @NonNull Uri getSelectionLogicUri()
```

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

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

### hashCode

```
public int hashCode()
```

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

### setSelectionLogicUri

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

```
public final void setSelectionLogicUri(@NonNull Uri value)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html value` | the URI used to retrieve the JS code containing the seller/SSP function used during the ad selection. |

### toString

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

Overrides the toString method.