# TrustedBiddingData

# TrustedBiddingData

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

*** ** * ** ***

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

<br />

```
class TrustedBiddingData
```

<br />

*** ** * ** ***

Represents data used during the ad selection process to fetch buyer bidding signals from a trusted key/value server. The fetched data is used during the ad selection process and consumed by buyer JavaScript logic running in an isolated execution environment.

## Summary

|                                                                                                                                                                                                                                                ### Public constructors                                                                                                                                                                                                                                                |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [TrustedBiddingData](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/TrustedBiddingData#TrustedBiddingData(android.net.Uri,kotlin.collections.List))`(` ` trustedBiddingUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`,` ` trustedBiddingKeys: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>` `)` |

|                                        ### 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/customaudience/TrustedBiddingData#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/TrustedBiddingData#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/TrustedBiddingData#toString())`()`                                                                                            |

|                                                                              ### Public properties                                                                               |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>` | [trustedBiddingKeys](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/TrustedBiddingData#trustedBiddingKeys()) the list of keys to query from the trusted key-value server holding bidding signals. |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                              | [trustedBiddingUri](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/TrustedBiddingData#trustedBiddingUri()) the URI pointing to the trusted key-value server holding bidding signals.              |

## Public constructors

### TrustedBiddingData

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

```
TrustedBiddingData(
    trustedBiddingUri: Uri,
    trustedBiddingKeys: List<String>
)
```  

|                                                                                               Parameters                                                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
| `trustedBiddingUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                               | the URI pointing to the trusted key-value server holding bidding signals. The URI must use HTTPS. |
| `trustedBiddingKeys: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>` | the list of keys to query from the trusted key-value server holding bidding signals.              |

## Public functions

### equals

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

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if two[TrustedBiddingData](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/TrustedBiddingData)objects contain the same information |

### hashCode

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

|                                   Returns                                   |
|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | the hash of the[TrustedBiddingData](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/customaudience/TrustedBiddingData)object's data |

### toString

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

## Public properties

### trustedBiddingKeys

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

```
val trustedBiddingKeys: List<String>
```

the list of keys to query from the trusted key-value server holding bidding signals.  

### trustedBiddingUri

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

```
val trustedBiddingUri: Uri
```

the URI pointing to the trusted key-value server holding bidding signals. The URI must use HTTPS.