# FetchAndJoinCustomAudienceRequest

# FetchAndJoinCustomAudienceRequest

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/FetchAndJoinCustomAudienceRequest.kt+class:androidx.privacysandbox.ads.adservices.customaudience.FetchAndJoinCustomAudienceRequest)  
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/FetchAndJoinCustomAudienceRequest "View this page in Java")

<br />

```
@ExperimentalFeatures.Ext10OptIn
class FetchAndJoinCustomAudienceRequest
```

<br />

*** ** * ** ***

The request object to fetch and join a custom audience.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                            ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [FetchAndJoinCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#FetchAndJoinCustomAudienceRequest(android.net.Uri,kotlin.String,java.time.Instant,java.time.Instant,androidx.privacysandbox.ads.adservices.common.AdSelectionSignals))`(` ` fetchUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`,` ` 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/FetchAndJoinCustomAudienceRequest#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Checks whether two[FetchAndJoinCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest)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/FetchAndJoinCustomAudienceRequest#hashCode())`()` Returns the hash of the[FetchAndJoinCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest)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/FetchAndJoinCustomAudienceRequest#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/FetchAndJoinCustomAudienceRequest#activationTime()) The[Instant](https://developer.android.com/reference/java/time/Instant.html)by which joining the custom audience will be delayed.                                                                                     |
| [Instant](https://developer.android.com/reference/java/time/Instant.html)`?`                                                             | [expirationTime](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#expirationTime()) The[Instant](https://developer.android.com/reference/java/time/Instant.html)by when the membership to the custom audience will expire.                                                                                |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                      | [fetchUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#fetchUri()) The[Uri](https://developer.android.com/reference/android/net/Uri.html)from which the custom audience is to be fetched.                                                                                                            |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`                                                     | [name](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#name()) The name of the custom audience to join.                                                                                                                                                                                                  |
| [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/FetchAndJoinCustomAudienceRequest#userBiddingSignals()) The[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)object representing the user bidding signals for the custom audience. |

## Public constructors

### FetchAndJoinCustomAudienceRequest

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

```
FetchAndJoinCustomAudienceRequest(
    fetchUri: Uri,
    name: String? = null,
    activationTime: Instant? = null,
    expirationTime: Instant? = null,
    userBiddingSignals: AdSelectionSignals? = null
)
```  

|                                                                              Parameters                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `fetchUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                       | The[Uri](https://developer.android.com/reference/android/net/Uri.html)from which the custom audience is to be fetched.                                                                                        |
| `name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`? = null`                                                                   | The name of the custom audience to join.                                                                                                                                                                      |
| `activationTime: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`? = null`                                                                 | The[Instant](https://developer.android.com/reference/java/time/Instant.html)by which joining the custom audience will be delayed.                                                                             |
| `expirationTime: `[Instant](https://developer.android.com/reference/java/time/Instant.html)`? = null`                                                                 | The[Instant](https://developer.android.com/reference/java/time/Instant.html)by when the membership to the custom audience will expire.                                                                        |
| `userBiddingSignals: `[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)`? = null` | The[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)object representing the user bidding signals for the custom audience. |

## Public functions

### equals

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

Checks whether two[FetchAndJoinCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest)objects contain the same information.  

### hashCode

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

Returns the hash of the[FetchAndJoinCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest)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?
```

The[Instant](https://developer.android.com/reference/java/time/Instant.html)by which joining the custom audience will be delayed.  

### expirationTime

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

```
val expirationTime: Instant?
```

The[Instant](https://developer.android.com/reference/java/time/Instant.html)by when the membership to the custom audience will expire.  

### fetchUri

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

```
val fetchUri: Uri
```

The[Uri](https://developer.android.com/reference/android/net/Uri.html)from which the custom audience is to be fetched.  

### name

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

```
val name: String?
```

The name of the custom audience to join.  

### userBiddingSignals

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

```
val userBiddingSignals: AdSelectionSignals?
```

The[AdSelectionSignals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals)object representing the user bidding signals for the custom audience.