AddCustomAudienceOverrideRequest


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

This POJO represents the android.adservices.customaudience.TestCustomAudienceManager#overrideCustomAudienceRemoteInfo(android.adservices.customaudience.AddCustomAudienceOverrideRequest,java.util.concurrent.Executor,android.os.OutcomeReceiver) request.

It contains fields buyer and name which will serve as the identifier for the override fields, biddingLogicJs and trustedBiddingSignals, which are used during ad selection instead of querying external servers.

Summary

Nested classes

Builder for AddCustomAudienceOverrideRequest objects.

Public constructors
AddCustomAudienceOverrideRequest(buyer: AdTechIdentifier, name: String, biddingLogicJs: String, trustedBiddingSignals: AdSelectionSignals)

Public methods
open String

open Long

Returns the value to return as version for JavaScript bidding logic.

open AdTechIdentifier

open String

open AdSelectionSignals

Public constructors

AddCustomAudienceOverrideRequest

AddCustomAudienceOverrideRequest(
    buyer: AdTechIdentifier,
    name: String,
    biddingLogicJs: String,
    trustedBiddingSignals: AdSelectionSignals)
Parameters
buyer AdTechIdentifier: This value cannot be null.
name String: This value cannot be null.
biddingLogicJs String: This value cannot be null.
trustedBiddingSignals AdSelectionSignals: This value cannot be null.

Public methods

getBiddingLogicJs

open fun getBiddingLogicJs(): String
Return
String the override JavaScript result that should be served during ad selection This value cannot be null.

getBiddingLogicJsVersion

open fun getBiddingLogicJsVersion(): Long

Returns the value to return as version for JavaScript bidding logic.

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

getBuyer

open fun getBuyer(): AdTechIdentifier
Return
AdTechIdentifier an AdTechIdentifier representing the buyer This value cannot be null.

getName

open fun getName(): String
Return
String name of the custom audience being overridden This value cannot be null.

getTrustedBiddingSignals

open fun getTrustedBiddingSignals(): AdSelectionSignals
Return
AdSelectionSignals the override trusted bidding signals that should be served during ad selection This value cannot be null.