Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
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,["# SetAppInstallAdvertisersRequest.Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/adselection/SetAppInstallAdvertisersRequest.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.adselection.SetAppInstallAdvertisersRequest.Builder](#) |\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SetAppInstallAdvertisersRequest](/reference/kotlin/android/adservices/adselection/SetAppInstallAdvertisersRequest) | [build](#build())`()` Builds a [SetAppInstallAdvertisersRequest](/reference/kotlin/android/adservices/adselection/SetAppInstallAdvertisersRequest) instance. |\n| [SetAppInstallAdvertisersRequest.Builder](#) | [setAdvertisers](#setAdvertisers(kotlin.collections.MutableSet))`(`advertisers:` `[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[AdTechIdentifier](../common/AdTechIdentifier.html#)!\u003e`)` Sets list of allowed advertisers. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions) \n\n```\nfun build(): SetAppInstallAdvertisersRequest\n```\n\nBuilds a [SetAppInstallAdvertisersRequest](/reference/kotlin/android/adservices/adselection/SetAppInstallAdvertisersRequest) instance.\n\n| Return ||\n|---------------------------------------------------------------------------------------------------------------------|------------------------------|\n| [SetAppInstallAdvertisersRequest](/reference/kotlin/android/adservices/adselection/SetAppInstallAdvertisersRequest) | This value cannot be `null`. |\n\n### setAdvertisers\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions) \n\n```\nfun setAdvertisers(advertisers: MutableSet\u003cAdTechIdentifier!\u003e): SetAppInstallAdvertisersRequest.Builder\n```\n\nSets list of allowed advertisers. See [getAdvertisers()](/reference/kotlin/android/adservices/adselection/SetAppInstallAdvertisersRequest)\n\n| Parameters ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `advertisers` | [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[AdTechIdentifier](../common/AdTechIdentifier.html#)!\\\u003e: This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------------|------------------------------|\n| [SetAppInstallAdvertisersRequest.Builder](#) | This value cannot be `null`. |"]]