Stay organized with collections
Save and categorize content based on your preferences.
LeaveCustomAudienceRequest
class LeaveCustomAudienceRequest
The request object is used to leave a custom audience.
Summary
Public methods
equals
fun equals(other: Any?): Boolean
Checks whether two LeaveCustomAudienceRequest
objects contain the same information.
Parameters |
obj |
the reference object with which to compare. |
Return |
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getName
fun getName(): String
Gets the arbitrary string provided by the owner and buyer on creation of the CustomAudience
object that represents a single custom audience.
Return |
String |
the String name of the custom audience This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# LeaveCustomAudienceRequest\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions)\n\nLeaveCustomAudienceRequest\n==========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/customaudience/LeaveCustomAudienceRequest \"View this page in Java\") \n\n```\nclass LeaveCustomAudienceRequest\n```\n\n|---|-------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.customaudience.LeaveCustomAudienceRequest](#) |\n\nThe request object is used to leave a custom audience.\n\nSummary\n-------\n\n| Nested classes ||\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/adservices/customaudience/LeaveCustomAudienceRequest.Builder) Builder for [LeaveCustomAudienceRequest](#) objects. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Checks whether two [LeaveCustomAudienceRequest](#) objects contain the same information. |\n| [AdTechIdentifier](../common/AdTechIdentifier.html#) | [getBuyer](#getBuyer())`()` Gets the buyer's [AdTechIdentifier](../common/AdTechIdentifier.html#), as identified by a domain in the form \"buyerexample. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getName](#getName())`()` Gets the arbitrary string provided by the owner and buyer on creation of the [CustomAudience](/reference/kotlin/android/adservices/customaudience/CustomAudience) object that represents a single custom audience. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` Returns the hash of the [LeaveCustomAudienceRequest](#) object's data. |\n\nPublic methods\n--------------\n\n### equals\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun equals(other: Any?): Boolean\n```\n\nChecks whether two [LeaveCustomAudienceRequest](#) objects contain the same information.\n\n| Parameters ||\n|-------|---------------------------------------------|\n| `obj` | the reference object with which to compare. |\n\n| Return ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true` if this object is the same as the obj argument; `false` otherwise. |\n\n### getBuyer\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nfun getBuyer(): AdTechIdentifier\n```\n\nGets the buyer's [AdTechIdentifier](../common/AdTechIdentifier.html#), as identified by a domain in the form \"buyerexample.com\".\n\n| Return ||\n|------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [AdTechIdentifier](../common/AdTechIdentifier.html#) | an [AdTechIdentifier](../common/AdTechIdentifier.html#) containing the custom audience's buyer's domain This value cannot be `null`. |\n\n### getName\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nfun getName(): String\n```\n\nGets the arbitrary string provided by the owner and buyer on creation of the [CustomAudience](/reference/kotlin/android/adservices/customaudience/CustomAudience) object that represents a single custom audience.\n\n| Return ||\n|----------------------------------------------------------------------------------|---------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | the String name of the custom audience This value cannot be `null`. |\n\n### hashCode\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun hashCode(): Int\n```\n\nReturns the hash of the [LeaveCustomAudienceRequest](#) object's data.\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |"]]