TrustedBiddingData.Builder
public
static
final
class
TrustedBiddingData.Builder
extends Object
| java.lang.Object | |
| ↳ | android.adservices.customaudience.TrustedBiddingData.Builder |
This class was deprecated
in API level 37.
The Rubidium (Rb) Relevance APIs, including those in
android.adservices.customaudience, are being deprecated. Relevance APIs have no direct
replacement. Developers should stop using them, as calls will be rejected in future
Android releases. Please refer to official Privacy Sandbox documentation for deprecation
and roadmap details:
https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/
Builder for TrustedBiddingData objects.
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
TrustedBiddingData
|
build()
Builds the |
TrustedBiddingData.Builder
|
setTrustedBiddingKeys(List<String> trustedBiddingKeys)
Sets the list of keys to query the trusted key-value server with. |
TrustedBiddingData.Builder
|
setTrustedBiddingUri(Uri trustedBiddingUri)
Sets the URI pointing to a trusted key-value server used to fetch bidding signals during the ad selection process. |
Inherited methods | |
|---|---|
Public constructors
Public methods
build
public TrustedBiddingData build ()
Builds the TrustedBiddingData object.
| Returns | |
|---|---|
TrustedBiddingData |
This value cannot be null. |
| Throws | |
|---|---|
NullPointerException |
if any parameters are null when built |
setTrustedBiddingKeys
public TrustedBiddingData.Builder setTrustedBiddingKeys (List<String> trustedBiddingKeys)
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.
| Parameters | |
|---|---|
trustedBiddingKeys |
List: This value cannot be null. |
| Returns | |
|---|---|
TrustedBiddingData.Builder |
|
setTrustedBiddingUri
public TrustedBiddingData.Builder setTrustedBiddingUri (Uri trustedBiddingUri)
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. |
| Returns | |
|---|---|
TrustedBiddingData.Builder |
This value cannot be null. |