Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  
Summary:[Ctors](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest#pubctors)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest#inhmethods)  

# AddAdSelectionOverrideRequest

`
public


class
AddAdSelectionOverrideRequest
`  
`

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


``


`

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

<br />

*** ** * ** ***

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

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

## Summary

|                                                                                                                                                                                                                                                                                                                                                            ### Public constructors                                                                                                                                                                                                                                                                                                                                                            ||
| |---|
| ` `[AddAdSelectionOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest#AddAdSelectionOverrideRequest(android.adservices.adselection.AdSelectionConfig,%20java.lang.String,%20android.adservices.common.AdSelectionSignals))`(`[AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig)` adSelectionConfig, `[String](https://developer.android.com/reference/java/lang/String)` decisionLogicJs, `[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals)` trustedScoringSignals) ` |

|                                                                                                                                                            ### Public methods                                                                                                                                                             ||
|--------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig) | ` `[getAdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest#getAdSelectionConfig())`() `         |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                      | ` `[getDecisionLogicJs](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest#getDecisionLogicJs())`() `             |
| ` `[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals)    | ` `[getTrustedScoringSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AddAdSelectionOverrideRequest#getTrustedScoringSignals())`() ` |

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

### AddAdSelectionOverrideRequest

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public AddAdSelectionOverrideRequest (AdSelectionConfig adSelectionConfig, 
                String decisionLogicJs, 
                AdSelectionSignals trustedScoringSignals)
```

<br />

<br />

|                                    Parameters                                     ||
|-------------------------|----------------------------------------------------------|
| `adSelectionConfig`     | `AdSelectionConfig`: This value cannot be`null`. <br />  |
| `decisionLogicJs`       | `String`: This value cannot be`null`. <br />             |
| `trustedScoringSignals` | `AdSelectionSignals`: This value cannot be`null`. <br /> |

## Public methods

### getAdSelectionConfig

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public AdSelectionConfig getAdSelectionConfig ()
```

<br />

<br />

|                                                                                                                                                                                                                                                           Returns                                                                                                                                                                                                                                                           ||
|-----------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig) | an instance of[AdSelectionConfig](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/AdSelectionConfig), 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 /> |

### getDecisionLogicJs

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public String getDecisionLogicJs ()
```

<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 scoring logic that will be executed during Ad selection. This value cannot be`null`. <br /> |

### getTrustedScoringSignals

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public AdSelectionSignals getTrustedScoringSignals ()
```

<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 scoring logic during Ad Selection. This value cannot be`null`. <br /> |