Builder


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

Builder for PartialCustomAudience objects.

Summary

Public constructors
Builder(name: String)

Instantiates a PartialCustomAudience.Builder with a String name for which this Partial Custom Audience will be updated

Public methods
PartialCustomAudience

Builds an instance of a FetchAndJoinCustomAudienceRequest.

PartialCustomAudience.Builder
setActivationTime(activationTime: Instant?)

Sets the Instant by which joining the custom audience will be delayed.

PartialCustomAudience.Builder
setExpirationTime(expirationTime: Instant?)

Sets the Instant by when the membership to the custom audience will expire.

PartialCustomAudience.Builder

Sets the buyer signals to be consumed by the buyer-provided JavaScript when the custom audience participates in an ad selection.

Public constructors

Builder

Builder(name: String)

Instantiates a PartialCustomAudience.Builder with a String name for which this Partial Custom Audience will be updated

Parameters
name String: This value cannot be null.

Public methods

build

fun build(): PartialCustomAudience

Builds an instance of a FetchAndJoinCustomAudienceRequest.

Return
PartialCustomAudience This value cannot be null.
Exceptions
java.lang.NullPointerException if any non-null parameter is null.

setActivationTime

fun setActivationTime(activationTime: Instant?): PartialCustomAudience.Builder

Sets the Instant by which joining the custom audience will be delayed.

See getActivationTime() for details.

Parameters
activationTime Instant?: This value may be null.
Return
PartialCustomAudience.Builder This value cannot be null.

setExpirationTime

fun setExpirationTime(expirationTime: Instant?): PartialCustomAudience.Builder

Sets the Instant by when the membership to the custom audience will expire.

See getExpirationTime() for details.

Parameters
expirationTime Instant?: This value may be null.
Return
PartialCustomAudience.Builder This value cannot be null.

setUserBiddingSignals

fun setUserBiddingSignals(userBiddingSignals: AdSelectionSignals?): PartialCustomAudience.Builder

Sets the buyer signals to be consumed by the buyer-provided JavaScript when the custom audience participates in an ad selection.

See getUserBiddingSignals() for details.

Parameters
userBiddingSignals AdSelectionSignals?: This value may be null.
Return
PartialCustomAudience.Builder This value cannot be null.