Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for SellerConfiguration
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-08-20 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-08-20 UTC."],[],[],null,["# SellerConfiguration.Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 14](https://developer.android.com/sdkExtensions)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/adselection/SellerConfiguration.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.SellerConfiguration.Builder](#) |\n\nBuilder for [SellerConfiguration](/reference/kotlin/android/adservices/adselection/SellerConfiguration) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SellerConfiguration](/reference/kotlin/android/adservices/adselection/SellerConfiguration) | [build](#build())`()` Builds a [SellerConfiguration](/reference/kotlin/android/adservices/adselection/SellerConfiguration) instance. |\n| [SellerConfiguration.Builder](#) | [setMaximumPayloadSizeBytes](#setMaximumPayloadSizeBytes(kotlin.Int))`(`maximumPayloadSizeBytes:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the target payload size in bytes. |\n| [SellerConfiguration.Builder](#) | [setPerBuyerConfigurations](#setPerBuyerConfigurations(kotlin.collections.MutableSet))`(`perBuyerConfigurations:` `[MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[PerBuyerConfiguration](/reference/kotlin/android/adservices/adselection/PerBuyerConfiguration)!\u003e`)` Sets the per buyer configurations. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 14](https://developer.android.com/sdkExtensions) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 14](https://developer.android.com/sdkExtensions) \n\n```\nfun build(): SellerConfiguration\n```\n\nBuilds a [SellerConfiguration](/reference/kotlin/android/adservices/adselection/SellerConfiguration) instance.\n\n| Return ||\n|---------------------------------------------------------------------------------------------|------------------------------|\n| [SellerConfiguration](/reference/kotlin/android/adservices/adselection/SellerConfiguration) | This value cannot be `null`. |\n\n### setMaximumPayloadSizeBytes\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 14](https://developer.android.com/sdkExtensions) \n\n```\nfun setMaximumPayloadSizeBytes(maximumPayloadSizeBytes: Int): SellerConfiguration.Builder\n```\n\nSets the target payload size in bytes. For more information see [getMaximumPayloadSizeBytes()](/reference/kotlin/android/adservices/adselection/SellerConfiguration#getMaximumPayloadSizeBytes())\n\n| Parameters ||\n|---------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `maximumPayloadSizeBytes` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Value is between 1 and [java.lang.Integer#MAX_VALUE](../../../java/lang/Integer.html#MAX_VALUE:kotlin.Int) inclusive |\n\n| Return ||\n|----------------------------------|------------------------------|\n| [SellerConfiguration.Builder](#) | This value cannot be `null`. |\n\n### setPerBuyerConfigurations\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 14](https://developer.android.com/sdkExtensions) \n\n```\nfun setPerBuyerConfigurations(perBuyerConfigurations: MutableSet\u003cPerBuyerConfiguration!\u003e): SellerConfiguration.Builder\n```\n\nSets the per buyer configurations. For more information see [getPerBuyerConfigurations()](/reference/kotlin/android/adservices/adselection/SellerConfiguration#getPerBuyerConfigurations())\n\n| Parameters ||\n|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `perBuyerConfigurations` | [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[PerBuyerConfiguration](/reference/kotlin/android/adservices/adselection/PerBuyerConfiguration)!\\\u003e: This value cannot be `null`. |\n\n| Return ||\n|----------------------------------|------------------------------|\n| [SellerConfiguration.Builder](#) | This value cannot be `null`. |"]]