[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  
Summary:[Ctors](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest#pubctors)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest#inhmethods)  

# AddAdSelectionFromOutcomesOverrideRequest

`
public


class
AddAdSelectionFromOutcomesOverrideRequest
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|--------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest |

<br />

*** ** * ** ***

This POJO represents the[TestAdSelectionManager.overrideAdSelectionFromOutcomesConfigRemoteInfo(AddAdSelectionFromOutcomesOverrideRequest, Executor, OutcomeReceiver)](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/TestAdSelectionManager#overrideAdSelectionFromOutcomesConfigRemoteInfo(android.adservices.adselection.AddAdSelectionFromOutcomesOverrideRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.lang.Object,java.lang.Exception>))( AddAdSelectionOverrideRequest, Executor, OutcomeReceiver)} request

It contains, a[AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig)which will serve as the identifier for the specific override, a`String`selectionLogicJs and`String`selectionSignals field representing the override value

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ||
| |---|
| ` `[AddAdSelectionFromOutcomesOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest#AddAdSelectionFromOutcomesOverrideRequest(android.adservices.adselection.AdSelectionFromOutcomesConfig,%20java.lang.String,%20android.adservices.common.AdSelectionSignals))`(`[AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig)` adSelectionFromOutcomesConfig, `[String](https://developer.android.com/reference/java/lang/String)` outcomeSelectionLogicJs, `[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals)` outcomeSelectionTrustedSignals) ` Builds a[AddAdSelectionFromOutcomesOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest)instance. |

|                                                                                                                                                                                       ### Public methods                                                                                                                                                                                        ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig) | ` `[getAdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest#getAdSelectionFromOutcomesConfig())`() `   |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                                              | ` `[getOutcomeSelectionLogicJs](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest#getOutcomeSelectionLogicJs())`() `               |
| ` `[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals)                            | ` `[getOutcomeSelectionTrustedSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest#getOutcomeSelectionTrustedSignals())`() ` |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### AddAdSelectionFromOutcomesOverrideRequest

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public AddAdSelectionFromOutcomesOverrideRequest (AdSelectionFromOutcomesConfig adSelectionFromOutcomesConfig, 
                String outcomeSelectionLogicJs, 
                AdSelectionSignals outcomeSelectionTrustedSignals)
```

Builds a[AddAdSelectionFromOutcomesOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionFromOutcomesOverrideRequest)instance.

<br />

|                                              Parameters                                               ||
|----------------------------------|---------------------------------------------------------------------|
| `adSelectionFromOutcomesConfig`  | `AdSelectionFromOutcomesConfig`: This value cannot be`null`. <br /> |
| `outcomeSelectionLogicJs`        | `String`: This value cannot be`null`. <br />                        |
| `outcomeSelectionTrustedSignals` | `AdSelectionSignals`: This value cannot be`null`. <br />            |

## Public methods

### getAdSelectionFromOutcomesConfig

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public AdSelectionFromOutcomesConfig getAdSelectionFromOutcomesConfig ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                   Returns                                                                                                                                                                                                                                                                                   ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig) | an instance of[AdSelectionFromOutcomesConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionFromOutcomesConfig), the configuration of the ad selection process. This configuration provides the data necessary to run Ad Selection flow that generates bids and scores to find a wining ad for rendering. This value cannot be`null`. <br /> |

### getOutcomeSelectionLogicJs

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public String getOutcomeSelectionLogicJs ()
```

<br />

<br />

|                                                                                                                                            Returns                                                                                                                                            ||
|--------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | The override javascript result, should be a string that contains valid JS code. The code should contain the outcome selection logic that will be executed during ad outcome selection. This value cannot be`null`. <br /> |

### getOutcomeSelectionTrustedSignals

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public AdSelectionSignals getOutcomeSelectionTrustedSignals ()
```

<br />

<br />

|                                                                                                                                                                   Returns                                                                                                                                                                    ||
|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals) | The override trusted scoring signals, should be a valid json string. The trusted signals would be fed into the outcome selection logic during ad outcome selection. This value cannot be`null`. <br /> |