Builder


class Builder
kotlin.Any
   ↳ android.adservices.customaudience.AddCustomAudienceOverrideRequest.Builder

Builder for AddCustomAudienceOverrideRequest objects.

Summary

Public constructors

Public methods
AddCustomAudienceOverrideRequest

Builds a AddCustomAudienceOverrideRequest instance.

AddCustomAudienceOverrideRequest.Builder
setBiddingLogicJs(biddingLogicJs: String)

Sets the bidding logic JavaScript that should be served during ad selection.

AddCustomAudienceOverrideRequest.Builder
setBiddingLogicJsVersion(biddingLogicJsVersion: Long)

Sets the bidding logic JavaScript version.

AddCustomAudienceOverrideRequest.Builder

Sets the buyer AdTechIdentifier for the custom audience.

AddCustomAudienceOverrideRequest.Builder
setName(name: String)

Sets the name for the custom audience to be overridden.

AddCustomAudienceOverrideRequest.Builder

Sets the trusted bidding signals to be served during ad selection.

Public constructors

Builder

Builder()

Public methods

build

fun build(): AddCustomAudienceOverrideRequest

Builds a AddCustomAudienceOverrideRequest instance.

Return
AddCustomAudienceOverrideRequest This value cannot be null.

setBiddingLogicJs

fun setBiddingLogicJs(biddingLogicJs: String): AddCustomAudienceOverrideRequest.Builder

Sets the bidding logic JavaScript that should be served during ad selection.

Parameters
biddingLogicJs String: This value cannot be null.
Return
AddCustomAudienceOverrideRequest.Builder This value cannot be null.

setBiddingLogicJsVersion

fun setBiddingLogicJsVersion(biddingLogicJsVersion: Long): AddCustomAudienceOverrideRequest.Builder

Sets the bidding logic JavaScript version.

Default to be 0L, which will fall back to use default version(V1 or V2).

Return
AddCustomAudienceOverrideRequest.Builder This value cannot be null.

setBuyer

fun setBuyer(buyer: AdTechIdentifier): AddCustomAudienceOverrideRequest.Builder

Sets the buyer AdTechIdentifier for the custom audience.

Parameters
buyer AdTechIdentifier: This value cannot be null.
Return
AddCustomAudienceOverrideRequest.Builder This value cannot be null.

setName

fun setName(name: String): AddCustomAudienceOverrideRequest.Builder

Sets the name for the custom audience to be overridden.

Parameters
name String: This value cannot be null.
Return
AddCustomAudienceOverrideRequest.Builder This value cannot be null.

setTrustedBiddingSignals

fun setTrustedBiddingSignals(trustedBiddingSignals: AdSelectionSignals): AddCustomAudienceOverrideRequest.Builder

Sets the trusted bidding signals to be served during ad selection.

Parameters
trustedBiddingSignals AdSelectionSignals: This value cannot be null.
Return
AddCustomAudienceOverrideRequest.Builder This value cannot be null.