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 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

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

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.