Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for RemoveCustomAudienceOverrideRequest
objects.
Summary
Public constructors
Public methods
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,["# RemoveCustomAudienceOverrideRequest.Builder\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\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/customaudience/RemoveCustomAudienceOverrideRequest.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.customaudience.RemoveCustomAudienceOverrideRequest.Builder](#) |\n\nBuilder for [RemoveCustomAudienceOverrideRequest](/reference/kotlin/android/adservices/customaudience/RemoveCustomAudienceOverrideRequest) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RemoveCustomAudienceOverrideRequest](/reference/kotlin/android/adservices/customaudience/RemoveCustomAudienceOverrideRequest) | [build](#build())`()` Builds a [RemoveCustomAudienceOverrideRequest](/reference/kotlin/android/adservices/customaudience/RemoveCustomAudienceOverrideRequest) instance. |\n| [RemoveCustomAudienceOverrideRequest.Builder](#) | [setBuyer](#setBuyer(android.adservices.common.AdTechIdentifier))`(`buyer:` `[AdTechIdentifier](../common/AdTechIdentifier.html#)`)` Sets the buyer [AdTechIdentifier](../common/AdTechIdentifier.html#) for the custom audience. |\n| [RemoveCustomAudienceOverrideRequest.Builder](#) | [setName](#setName(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Sets the name for the custom audience that was overridden. |\n\nPublic constructors\n-------------------\n\n### Builder\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```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\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 build(): RemoveCustomAudienceOverrideRequest\n```\n\nBuilds a [RemoveCustomAudienceOverrideRequest](/reference/kotlin/android/adservices/customaudience/RemoveCustomAudienceOverrideRequest) instance.\n\n| Return ||\n|--------------------------------------------------------------------------------------------------------------------------------|------------------------------|\n| [RemoveCustomAudienceOverrideRequest](/reference/kotlin/android/adservices/customaudience/RemoveCustomAudienceOverrideRequest) | This value cannot be `null`. |\n\n### setBuyer\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 setBuyer(buyer: AdTechIdentifier): RemoveCustomAudienceOverrideRequest.Builder\n```\n\nSets the buyer [AdTechIdentifier](../common/AdTechIdentifier.html#) for the custom audience.\n\n| Parameters ||\n|---------|------------------------------------------------------------------------------------|\n| `buyer` | [AdTechIdentifier](../common/AdTechIdentifier.html#): This value cannot be `null`. |\n\n| Return ||\n|--------------------------------------------------|------------------------------|\n| [RemoveCustomAudienceOverrideRequest.Builder](#) | This value cannot be `null`. |\n\n### setName\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 setName(name: String): RemoveCustomAudienceOverrideRequest.Builder\n```\n\nSets the name for the custom audience that was overridden.\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------------------------------------------|\n| `name` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n\n| Return ||\n|--------------------------------------------------|------------------------------|\n| [RemoveCustomAudienceOverrideRequest.Builder](#) | This value cannot be `null`. |"]]