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

*** ** * ** ***


```
@ExperimentalFeatures.Ext10OptIn
public final class FetchAndJoinCustomAudienceRequest
```

<br />

*** ** * ** ***

The request object to fetch and join a custom audience.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#FetchAndJoinCustomAudienceRequest(android.net.Uri,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/android/net/Uri.html fetchUri, 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/FetchAndJoinCustomAudienceRequest#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest` 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/FetchAndJoinCustomAudienceRequest#getActivationTime()()` The `https://developer.android.com/reference/java/time/Instant.html` by which joining the custom audience will be delayed. |
| `final https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#getExpirationTime()()` The `https://developer.android.com/reference/java/time/Instant.html` by when the membership to the custom audience will expire. |
| `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/FetchAndJoinCustomAudienceRequest#getFetchUri()()` The `https://developer.android.com/reference/android/net/Uri.html` from which the custom audience is to be fetched. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#getName()()` The name of the custom audience to join. |
| `final https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#getUserBiddingSignals()()` The `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals` object representing the user bidding signals for the custom audience. |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest#hashCode()()` Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest` 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/FetchAndJoinCustomAudienceRequest#toString()()` |

## Public constructors

### FetchAndJoinCustomAudienceRequest

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

```
public FetchAndJoinCustomAudienceRequest(
    @NonNull Uri fetchUri,
    String name,
    Instant activationTime,
    Instant expirationTime,
    AdSelectionSignals userBiddingSignals
)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/net/Uri.html fetchUri` | The `https://developer.android.com/reference/android/net/Uri.html` from which the custom audience is to be fetched. |
| `https://developer.android.com/reference/java/lang/String.html name` | The name of the custom audience to join. |
| `https://developer.android.com/reference/java/time/Instant.html activationTime` | The `https://developer.android.com/reference/java/time/Instant.html` by which joining the custom audience will be delayed. |
| `https://developer.android.com/reference/java/time/Instant.html expirationTime` | The `https://developer.android.com/reference/java/time/Instant.html` by when the membership to the custom audience will expire. |
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals userBiddingSignals` | The `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdSelectionSignals` object representing the user bidding signals for the custom audience. |

## Public methods

### equals

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

Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest` 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()
```

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

### getExpirationTime

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

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

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

### getFetchUri

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

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

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

### getName

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

```
public final String getName()
```

The name of the custom audience to join.

### getUserBiddingSignals

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

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

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

### hashCode

```
public int hashCode()
```

Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/customaudience/FetchAndJoinCustomAudienceRequest` object's data.

### toString

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