# LeaveCustomAudienceRequest

# LeaveCustomAudienceRequest

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

*** ** * ** ***

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

<br />

```
class LeaveCustomAudienceRequest
```

<br />

*** ** * ** ***

The request object to leave a custom audience.

## Summary

|                                                                                                                                                                                                                                             ### Public constructors                                                                                                                                                                                                                                             |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LeaveCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/LeaveCustomAudienceRequest#LeaveCustomAudienceRequest(androidx.privacysandbox.ads.adservices.common.AdTechIdentifier,kotlin.String))`(buyer: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`, name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` |

|                                        ### 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/LeaveCustomAudienceRequest#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Checks whether two[LeaveCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/LeaveCustomAudienceRequest)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/LeaveCustomAudienceRequest#hashCode())`()` Returns the hash of the[LeaveCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/LeaveCustomAudienceRequest)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/LeaveCustomAudienceRequest#toString())`()`                                                                                                                                                                                                                                                                                                                 |

|                                                       ### Public properties                                                       |
|-----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier) | [buyer](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/LeaveCustomAudienceRequest#buyer()) an[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)containing the custom audience's buyer's domain. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                 | [name](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/LeaveCustomAudienceRequest#name()) the String name of the custom audience.                                                                                                                                               |

## Public constructors

### LeaveCustomAudienceRequest

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

```
LeaveCustomAudienceRequest(buyer: AdTechIdentifier, name: String)
```  

|                                                                 Parameters                                                                 |
|--------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `buyer: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier) | an[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)containing the custom audience's buyer's domain. |
| `name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                  | the String name of the custom audience.                                                                                                                                             |

## Public functions

### equals

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

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

### hashCode

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

Returns the hash of the[LeaveCustomAudienceRequest](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/LeaveCustomAudienceRequest)object's data.  

### toString

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

## Public properties

### buyer

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

```
val buyer: AdTechIdentifier
```

an[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)containing the custom audience's buyer's domain.  

### name

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

```
val name: String
```

the String name of the custom audience.