Stay organized with collections Save and categorize content based on your preferences.

TrustedBiddingData.Builder

public static final class TrustedBiddingData.Builder
extends Object

java.lang.Object
   ↳ android.adservices.customaudience.TrustedBiddingData.Builder


Builder for TrustedBiddingData objects.

Summary

Public constructors

Builder()

Public methods

TrustedBiddingData build()

Builds the TrustedBiddingData object.

TrustedBiddingData.Builder setTrustedBiddingKeys(List<String> trustedBiddingKeys)

Sets the list of keys to query the trusted key-value server with.

TrustedBiddingData.Builder setTrustedBiddingUrl(Uri trustedBiddingUrl)

Sets the URL pointing to a trusted key-value server used to fetch bidding signals during the ad selection process.

Inherited methods

Public constructors

Builder

public Builder ()

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

setTrustedBiddingUrl

public TrustedBiddingData.Builder setTrustedBiddingUrl (Uri trustedBiddingUrl)

Sets the URL pointing to a trusted key-value server used to fetch bidding signals during the ad selection process. The URL must use HTTPS.

Parameters
trustedBiddingUrl Uri: This value cannot be null.

Returns
TrustedBiddingData.Builder This value cannot be null.