# PartialCustomAudience

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

*** ** * ** ***

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

<br />

```
@ExperimentalFeatures.Ext14OptIn
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[CustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/CustomAudience).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                       ### Public constructors                                                                                                                                                                                                                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PartialCustomAudience](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#PartialCustomAudience(kotlin.String,java.time.Instant,java.time.Instant,androidx.privacysandbox.ads.adservices.common.AdSelectionSignals))`(` ` name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`,` ` activationTime: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`?,` ` expirationTime: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`?,` ` userBiddingSignals: `[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)`?` `)` |

|                                        ### 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/PartialCustomAudience#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Checks whether two PartialCustomAudience 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/PartialCustomAudience#hashCode())`()` Returns the hash of the PartialCustomAudience 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/PartialCustomAudience#toString())`()`                                                                                                                                                                           |

|                                                          ### Public properties                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Instant](https://developer.android.com/reference/java/time/Instant.html)`?`                                                             | [activationTime](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#activationTime())         |
| [Instant](https://developer.android.com/reference/java/time/Instant.html)`?`                                                             | [expirationTime](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#expirationTime())         |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                        | [name](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#name())                             |
| [AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)`?` | [userBiddingSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/PartialCustomAudience#userBiddingSignals()) |

## Public constructors

### PartialCustomAudience

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

```
PartialCustomAudience(
    name: String,
    activationTime: Instant? = null,
    expirationTime: Instant? = null,
    userBiddingSignals: AdSelectionSignals? = null
)
```  

## Public functions

### equals

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

Checks whether two PartialCustomAudience objects contain the same information.  

### hashCode

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

Returns the hash of the PartialCustomAudience object's data.  

### toString

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

## Public properties

### activationTime

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

```
val activationTime: Instant?
```  

### expirationTime

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

```
val expirationTime: Instant?
```  

### name

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

```
val name: String
```  

### userBiddingSignals

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

```
val userBiddingSignals: AdSelectionSignals?
```