# ScheduleCustomAudienceUpdateRequest

# ScheduleCustomAudienceUpdateRequest

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

*** ** * ** ***

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

<br />

```
@ExperimentalFeatures.Ext14OptIn
class ScheduleCustomAudienceUpdateRequest
```

<br />

*** ** * ** ***

The request object wrapping the required and optional parameters to schedule a deferred update for a buyer ad tech's custom audiences.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ScheduleCustomAudienceUpdateRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#ScheduleCustomAudienceUpdateRequest(android.net.Uri,java.time.Duration,kotlin.collections.List,kotlin.Boolean))`(` ` updateUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`,` ` minDelay: `[Duration](https://developer.android.com/reference/java/time/Duration.html)`,` ` partialCustomAudienceList: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[PartialCustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience)`>,` ` shouldReplacePendingUpdates: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.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/customaudience/ScheduleCustomAudienceUpdateRequest#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Checks whether two ScheduleCustomAudienceUpdateRequest 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/customaudience/ScheduleCustomAudienceUpdateRequest#hashCode())`()` Returns the hash of the ScheduleCustomAudienceUpdateRequest 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/customaudience/ScheduleCustomAudienceUpdateRequest#toString())`()`                                                                                                                                                                                         |

|                                                                                                               ### Public properties                                                                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Duration](https://developer.android.com/reference/java/time/Duration.html)                                                                                                                                                                        | [minDelay](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#minDelay()) The[Duration](https://developer.android.com/reference/java/time/Duration.html)representing the minimum of the delay before the service fetches updates for the buyer ad tech's custom audiences.                                                                                                                               |
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[PartialCustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience)`>` | [partialCustomAudienceList](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#partialCustomAudienceList()) The list of[PartialCustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience)objects which are sent along with the request to download the updates for the buyer ad tech's custom audiences.                |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                | [shouldReplacePendingUpdates](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#shouldReplacePendingUpdates()) If any pending scheduled updates should be canceled and replaced with the update detailed in the current[ScheduleCustomAudienceUpdateRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest). |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                                | [updateUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#updateUri()) The[Uri](https://developer.android.com/reference/android/net/Uri.html)from which the update for the buyer's custom audiences will be fetched.                                                                                                                                                                                |

## Public constructors

### ScheduleCustomAudienceUpdateRequest

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

```
ScheduleCustomAudienceUpdateRequest(
    updateUri: Uri,
    minDelay: Duration,
    partialCustomAudienceList: List<PartialCustomAudience>,
    shouldReplacePendingUpdates: Boolean = false
)
```  

|                                                                                                                                   Parameters                                                                                                                                    |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `updateUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                                                                | The[Uri](https://developer.android.com/reference/android/net/Uri.html)from which the update for the buyer's custom audiences will be fetched.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `minDelay: `[Duration](https://developer.android.com/reference/java/time/Duration.html)                                                                                                                                                                                         | The[Duration](https://developer.android.com/reference/java/time/Duration.html)representing the minimum of the delay before the service fetches updates for the buyer ad tech's custom audiences.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `partialCustomAudienceList: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[PartialCustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience)`>` | The list of[PartialCustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience)objects which are sent along with the request to download the updates for the buyer ad tech's custom audiences.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `shouldReplacePendingUpdates: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` = false`                                                                                                                                                    | If any pending scheduled updates should be canceled and replaced with the update detailed in the current[ScheduleCustomAudienceUpdateRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest). If it is false and there are previously requested updates still pending for the same buyer in the same app, a call to[CustomAudienceManager.scheduleCustomAudienceUpdate](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/CustomAudienceManager#scheduleCustomAudienceUpdate(androidx.privacysandbox.ads.adservices.customaudience.ScheduleCustomAudienceUpdateRequest))with this[ScheduleCustomAudienceUpdateRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest)will fail. |

## Public functions

### equals

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

Checks whether two ScheduleCustomAudienceUpdateRequest objects contain the same information.  

### hashCode

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

Returns the hash of the ScheduleCustomAudienceUpdateRequest object's data.  

### toString

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

## Public properties

### minDelay

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

```
val minDelay: Duration
```

The[Duration](https://developer.android.com/reference/java/time/Duration.html)representing the minimum of the delay before the service fetches updates for the buyer ad tech's custom audiences.  

### partialCustomAudienceList

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

```
val partialCustomAudienceList: List<PartialCustomAudience>
```

The list of[PartialCustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience)objects which are sent along with the request to download the updates for the buyer ad tech's custom audiences.  

### shouldReplacePendingUpdates

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

```
val shouldReplacePendingUpdates: Boolean
```

If any pending scheduled updates should be canceled and replaced with the update detailed in the current[ScheduleCustomAudienceUpdateRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest). If it is false and there are previously requested updates still pending for the same buyer in the same app, a call to[CustomAudienceManager.scheduleCustomAudienceUpdate](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/CustomAudienceManager#scheduleCustomAudienceUpdate(androidx.privacysandbox.ads.adservices.customaudience.ScheduleCustomAudienceUpdateRequest))with this[ScheduleCustomAudienceUpdateRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest)will fail.  

### updateUri

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

```
val updateUri: Uri
```

The[Uri](https://developer.android.com/reference/android/net/Uri.html)from which the update for the buyer's custom audiences will be fetched.