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:[Nested Classes](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#nestedclasses)\|[Ctors](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#pubctors)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#inhmethods)  

# AddCustomAudienceOverrideRequest

`
public


class
AddCustomAudienceOverrideRequest
`  
`

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


``


`

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

<br />

*** ** * ** ***

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

It contains fields`buyer`and`name`which will serve as the identifier for the override fields,`biddingLogicJs`and`trustedBiddingSignals`, which are used during ad selection instead of querying external servers.

## Summary

|                                                                                                                                                                                       ### Nested classes                                                                                                                                                                                       ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [AddCustomAudienceOverrideRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest.Builder) Builder for[AddCustomAudienceOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest)objects. |

|                                                                                                                                                                                                                                                                                                                                                                                                    ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                     ||
| |---|
| ` `[AddCustomAudienceOverrideRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#AddCustomAudienceOverrideRequest(android.adservices.common.AdTechIdentifier,%20java.lang.String,%20java.lang.String,%20android.adservices.common.AdSelectionSignals))`(`[AdTechIdentifier](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdTechIdentifier)` buyer, `[String](https://developer.android.com/reference/java/lang/String)` name, `[String](https://developer.android.com/reference/java/lang/String)` biddingLogicJs, `[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals)` trustedBiddingSignals) ` |

|                                                                                                                                                              ### Public methods                                                                                                                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                   | ` `[getBiddingLogicJs](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#getBiddingLogicJs())`() `               |
| ` `[AdTechIdentifier](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdTechIdentifier)     | ` `[getBuyer](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#getBuyer())`() `                                 |
| ` `[String](https://developer.android.com/reference/java/lang/String)                                                                   | ` `[getName](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#getName())`() `                                   |
| ` `[AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals) | ` `[getTrustedBiddingSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/customaudience/AddCustomAudienceOverrideRequest#getTrustedBiddingSignals())`() ` |

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

### AddCustomAudienceOverrideRequest

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 AddCustomAudienceOverrideRequest (AdTechIdentifier buyer, 
                String name, 
                String biddingLogicJs, 
                AdSelectionSignals trustedBiddingSignals)
```

<br />

<br />

|                                    Parameters                                     ||
|-------------------------|----------------------------------------------------------|
| `buyer`                 | `AdTechIdentifier`: This value cannot be`null`. <br />   |
| `name`                  | `String`: This value cannot be`null`. <br />             |
| `biddingLogicJs`        | `String`: This value cannot be`null`. <br />             |
| `trustedBiddingSignals` | `AdSelectionSignals`: This value cannot be`null`. <br /> |

## Public methods

### getBiddingLogicJs

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 getBiddingLogicJs ()
```

<br />

<br />

|                                                                                     Returns                                                                                     ||
|--------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | the override JavaScript result that should be served during ad selection This value cannot be`null`. <br /> |

### getBuyer

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 AdTechIdentifier getBuyer ()
```

<br />

<br />

|                                                                                                                                                            Returns                                                                                                                                                            ||
|----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdTechIdentifier](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdTechIdentifier) | an[AdTechIdentifier](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdTechIdentifier)representing the buyer This value cannot be`null`. <br /> |

### getName

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 getName ()
```

<br />

<br />

|                                                                       Returns                                                                       ||
|--------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | name of the custom audience being overridden This value cannot be`null`. <br /> |

### getTrustedBiddingSignals

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 getTrustedBiddingSignals ()
```

<br />

<br />

|                                                                                                                         Returns                                                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [AdSelectionSignals](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/common/AdSelectionSignals) | the override trusted bidding signals that should be served during ad selection This value cannot be`null`. <br /> |