# PerBuyerConfiguration

# PerBuyerConfiguration

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/PerBuyerConfiguration.kt+class:androidx.privacysandbox.ads.adservices.adselection.PerBuyerConfiguration)  
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/PerBuyerConfiguration "View this page in Java")

<br />

```
@ExperimentalFeatures.Ext14OptIn
class PerBuyerConfiguration
```

<br />

*** ** * ** ***

Contains a per buyer configuration which will be used as part of a SellerConfiguration in a GetAdSelectionDataRequest. This object will be created by the calling SDK as part of creating the seller configuration.

## Summary

|                                                                                                                                                                                                                                       ### Public constructors                                                                                                                                                                                                                                        |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PerBuyerConfiguration](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration#PerBuyerConfiguration(kotlin.Int,androidx.privacysandbox.ads.adservices.common.AdTechIdentifier))`(targetInputSizeBytes: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, buyer: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier)`)` |

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

|                                                       ### Public properties                                                       |
|-----------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier) | [buyer](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration#buyer()) associated with this per buyer configuration.                                                                                                                     |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                       | [targetInputSizeBytes](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/PerBuyerConfiguration#targetInputSizeBytes()) The service will make a best effort attempt to include this amount of bytes into the response of GetAdSelectionData for this buyer. |

## Public constructors

### PerBuyerConfiguration

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

```
PerBuyerConfiguration(targetInputSizeBytes: Int, buyer: AdTechIdentifier)
```  

|                                                                 Parameters                                                                 |
|--------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `targetInputSizeBytes: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                        | The service will make a best effort attempt to include this amount of bytes into the response of GetAdSelectionData for this buyer. |
| `buyer: `[AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier) | associated with this per buyer configuration.                                                                                       |

## Public functions

### equals

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

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

### hashCode

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

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

### toString

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

Overrides the toString method.  

## Public properties

### buyer

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

```
val buyer: AdTechIdentifier
```

associated with this per buyer configuration.  

### targetInputSizeBytes

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

```
val targetInputSizeBytes: Int
```

The service will make a best effort attempt to include this amount of bytes into the response of GetAdSelectionData for this buyer.