# PartialCustomAudience

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

*** ** * ** ***


```
@ExperimentalFeatures.Ext14OptIn
public final class PartialCustomAudience
```

<br />

*** ** * ** ***

Represents a partial custom audience that is passed along to DSP, when scheduling a delayed update for Custom Audience. Any field set by the caller cannot be overridden by the custom audience fetched from the `updateUri`.

Given multiple Custom Audiences could be returned by DSP we will match the override restriction based on the name of Custom Audience. Thus name would be a required field.

For more information about each field refer to `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/CustomAudience`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#PartialCustomAudience(kotlin.String,java.time.Instant,java.time.Instant,androidx.privacysandbox.ads.adservices.common.AdSelectionSignals)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html name, https://developer.android.com/reference/java/time/Instant.html activationTime, https://developer.android.com/reference/java/time/Instant.html expirationTime, https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals userBiddingSignals )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Checks whether two PartialCustomAudience objects contain the same information. |
| `final https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#getActivationTime()()` |
| `final https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#getExpirationTime()()` |
| `final @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/PartialCustomAudience#getName()()` |
| `final https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#getUserBiddingSignals()()` |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#hashCode()()` Returns the hash of the PartialCustomAudience object's data. |
| `@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/PartialCustomAudience#toString()()` |

## Public constructors

### PartialCustomAudience

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

```
public PartialCustomAudience(
    @NonNull String name,
    Instant activationTime,
    Instant expirationTime,
    AdSelectionSignals userBiddingSignals
)
```

## Public methods

### equals

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

Checks whether two PartialCustomAudience objects contain the same information.

### getActivationTime

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

```
public final Instant getActivationTime()
```

### getExpirationTime

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

```
public final Instant getExpirationTime()
```

### getName

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

```
public final @NonNull String getName()
```

### getUserBiddingSignals

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

```
public final AdSelectionSignals getUserBiddingSignals()
```

### hashCode

```
public int hashCode()
```

Returns the hash of the PartialCustomAudience object's data.

### toString

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