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

*** ** * ** ***


```
@ExperimentalFeatures.Ext14OptIn
public final 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 |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#ScheduleCustomAudienceUpdateRequest(android.net.Uri,java.time.Duration,kotlin.collections.List,kotlin.Boolean)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html updateUri, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Duration.html minDelay, @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/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience> partialCustomAudienceList, boolean shouldReplacePendingUpdates )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Checks whether two ScheduleCustomAudienceUpdateRequest objects contain the same information. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Duration.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#getMinDelay()()` The `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. |
| `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/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience>` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#getPartialCustomAudienceList()()` The list of `https://developer.android.com/reference/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. |
| `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/customaudience/ScheduleCustomAudienceUpdateRequest#getUpdateUri()()` The `https://developer.android.com/reference/android/net/Uri.html` from which the update for the buyer's custom audiences will be fetched. |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#hashCode()()` Returns the hash of the ScheduleCustomAudienceUpdateRequest object's data. |
| `final boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest#shouldReplacePendingUpdates()()` If any pending scheduled updates should be canceled and replaced with the update detailed in the current `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest`. |
| `@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/customaudience/ScheduleCustomAudienceUpdateRequest#toString()()` |

## Public constructors

### ScheduleCustomAudienceUpdateRequest

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

```
public ScheduleCustomAudienceUpdateRequest(
    @NonNull Uri updateUri,
    @NonNull Duration minDelay,
    @NonNull List<@NonNull PartialCustomAudience> partialCustomAudienceList,
    boolean shouldReplacePendingUpdates
)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html updateUri` | The `https://developer.android.com/reference/android/net/Uri.html` from which the update for the buyer's custom audiences will be fetched. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Duration.html minDelay` | The `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. |
| `@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/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience> partialCustomAudienceList` | The list of `https://developer.android.com/reference/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 shouldReplacePendingUpdates` | If any pending scheduled updates should be canceled and replaced with the update detailed in the current `https://developer.android.com/reference/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 `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/CustomAudienceManager#scheduleCustomAudienceUpdate(androidx.privacysandbox.ads.adservices.customaudience.ScheduleCustomAudienceUpdateRequest)` with this `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest` will fail. |

## Public methods

### equals

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

Checks whether two ScheduleCustomAudienceUpdateRequest objects contain the same information.

### getMinDelay

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

```
public final @NonNull Duration getMinDelay()
```

The `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.

### getPartialCustomAudienceList

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

```
public final @NonNull List<@NonNull PartialCustomAudience> getPartialCustomAudienceList()
```

The list of `https://developer.android.com/reference/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.

### getUpdateUri

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

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

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

### hashCode

```
public int hashCode()
```

Returns the hash of the ScheduleCustomAudienceUpdateRequest object's data.

### shouldReplacePendingUpdates

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

```
public final boolean shouldReplacePendingUpdates()
```

If any pending scheduled updates should be canceled and replaced with the update detailed in the current `https://developer.android.com/reference/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 `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/CustomAudienceManager#scheduleCustomAudienceUpdate(androidx.privacysandbox.ads.adservices.customaudience.ScheduleCustomAudienceUpdateRequest)` with this `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/ScheduleCustomAudienceUpdateRequest` will fail.

### toString

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