# SellerConfiguration

# SellerConfiguration

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

*** ** * ** ***

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

<br />

```
@ExperimentalFeatures.Ext14OptIn
class SellerConfiguration
```

<br />

*** ** * ** ***

SellerConfiguration will be part of the GetAdSelectionDataRequest and will be constructed and used by the SDK to influence the size of the response of GetAdSelectionData API.

## Summary

|                                                                                                                                                                                                                                                                                    ### Public constructors                                                                                                                                                                                                                                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SellerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#SellerConfiguration(kotlin.Int,kotlin.collections.Set))`(` ` maximumPayloadSizeBytes: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` perBuyerConfigurations: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[PerBuyerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration)`>` `)` |

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

|                                                                                                             ### Public properties                                                                                                             |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                   | [maximumPayloadSizeBytes](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#maximumPayloadSizeBytes()) Returns the maximum size of the payload in bytes that the service will return.                                                                                      |
| [Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[PerBuyerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration)`>` | [perBuyerConfigurations](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#perBuyerConfigurations()) Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding maximumPayloadSizeBytes. |

## Public constructors

### SellerConfiguration

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

```
SellerConfiguration(
    maximumPayloadSizeBytes: Int,
    perBuyerConfigurations: Set<PerBuyerConfiguration>
)
```  

|                                                                                                                               Parameters                                                                                                                                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `maximumPayloadSizeBytes: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                  | Returns the maximum size of the payload in bytes that the service will return.                                                                                                                                                                                                                                                                                              |
| `perBuyerConfigurations: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[PerBuyerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration)`>` | Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding maximumPayloadSizeBytes. If this is empty, the service will fill up the response with buyer data until maximumPayloadSizeBytes is reached. Otherwise, only data from buyers from the per buyer configuration will be included. |

## Public functions

### equals

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

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

### hashCode

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

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

### toString

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

Overrides the toString method.  

## Public properties

### maximumPayloadSizeBytes

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

```
val maximumPayloadSizeBytes: Int
```

Returns the maximum size of the payload in bytes that the service will return.  

### perBuyerConfigurations

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

```
val perBuyerConfigurations: Set<PerBuyerConfiguration>
```

Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding maximumPayloadSizeBytes. If this is empty, the service will fill up the response with buyer data until maximumPayloadSizeBytes is reached. Otherwise, only data from buyers from the per buyer configuration will be included.