Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for TrustedBiddingData
objects.
Summary
Public constructors
Public methods
setTrustedBiddingKeys
fun setTrustedBiddingKeys(trustedBiddingKeys: MutableList<String!>): TrustedBiddingData.Builder
Sets the list of keys to query the trusted key-value server with.
This list is permitted to be empty, but it must not be null.
setTrustedBiddingUri
fun setTrustedBiddingUri(trustedBiddingUri: Uri): TrustedBiddingData.Builder
Sets the URI pointing to a trusted key-value server used to fetch bidding signals during the ad selection process. The URI must use HTTPS.
Parameters |
trustedBiddingUri |
Uri: This value cannot be null . |
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-02-10 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-02-10 UTC."],[],[],null,["# TrustedBiddingData.Builder\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/customaudience/TrustedBiddingData.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.customaudience.TrustedBiddingData.Builder](#) |\n\nBuilder for [TrustedBiddingData](/reference/kotlin/android/adservices/customaudience/TrustedBiddingData) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TrustedBiddingData](/reference/kotlin/android/adservices/customaudience/TrustedBiddingData) | [build](#build())`()` Builds the [TrustedBiddingData](/reference/kotlin/android/adservices/customaudience/TrustedBiddingData) object. |\n| [TrustedBiddingData.Builder](#) | [setTrustedBiddingKeys](#setTrustedBiddingKeys(kotlin.collections.MutableList))`(`trustedBiddingKeys:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e`)` Sets the list of keys to query the trusted key-value server with. |\n| [TrustedBiddingData.Builder](#) | [setTrustedBiddingUri](#setTrustedBiddingUri(android.net.Uri))`(`trustedBiddingUri:` `[Uri](../../net/Uri.html#)`)` Sets the URI pointing to a trusted key-value server used to fetch bidding signals during the ad selection process. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nfun build(): TrustedBiddingData\n```\n\nBuilds the [TrustedBiddingData](/reference/kotlin/android/adservices/customaudience/TrustedBiddingData) object.\n\n| Return ||\n|----------------------------------------------------------------------------------------------|------------------------------|\n| [TrustedBiddingData](/reference/kotlin/android/adservices/customaudience/TrustedBiddingData) | This value cannot be `null`. |\n\n| Exceptions ||\n|----------------------------------|---------------------------------------|\n| `java.lang.NullPointerException` | if any parameters are null when built |\n\n### setTrustedBiddingKeys\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nfun setTrustedBiddingKeys(trustedBiddingKeys: MutableList\u003cString!\u003e): TrustedBiddingData.Builder\n```\n\nSets the list of keys to query the trusted key-value server with.\n\nThis list is permitted to be empty, but it must not be null.\n\n| Parameters ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `trustedBiddingKeys` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e: This value cannot be `null`. |\n\n### setTrustedBiddingUri\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nfun setTrustedBiddingUri(trustedBiddingUri: Uri): TrustedBiddingData.Builder\n```\n\nSets the URI pointing to a trusted key-value server used to fetch bidding signals during the ad selection process. The URI must use HTTPS.\n\n| Parameters ||\n|---------------------|----------------------------------------------------------|\n| `trustedBiddingUri` | [Uri](../../net/Uri.html#): This value cannot be `null`. |\n\n| Return ||\n|---------------------------------|------------------------------|\n| [TrustedBiddingData.Builder](#) | This value cannot be `null`. |"]]