# 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)

*** ** * ** ***


```
@ExperimentalFeatures.Ext14OptIn
public final 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 |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#SellerConfiguration(kotlin.Int,kotlin.collections.Set)( int maximumPayloadSizeBytes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration> perBuyerConfigurations )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration` objects contain the same information. |
| `final int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#getMaximumPayloadSizeBytes()()` Returns the maximum size of the payload in bytes that the service will return. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration>` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#getPerBuyerConfigurations()()` Returns a set of per buyer configurations that the service will do a best effort to respect when constructing the response without exceeding maximumPayloadSizeBytes. |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#hashCode()()` Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration` object's data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration#toString()()` Overrides the toString method. |

## Public constructors

### SellerConfiguration

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

```
public SellerConfiguration(
    int maximumPayloadSizeBytes,
    @NonNull Set<@NonNull PerBuyerConfiguration> perBuyerConfigurations
)
```

| Parameters |
|---|---|
| `int maximumPayloadSizeBytes` | Returns the maximum size of the payload in bytes that the service will return. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration> 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. 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 methods

### equals

```
public boolean equals(Object other)
```

Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration` objects contain the same information.

### getMaximumPayloadSizeBytes

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

```
public final int getMaximumPayloadSizeBytes()
```

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

### getPerBuyerConfigurations

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

```
public final @NonNull Set<@NonNull PerBuyerConfiguration> getPerBuyerConfigurations()
```

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.

### hashCode

```
public int hashCode()
```

Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/SellerConfiguration` object's data.

### toString

```
public @NonNull String toString()
```

Overrides the toString method.