Builder


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

Builder for FetchAndJoinCustomAudienceRequest objects.

Summary

Public constructors
Builder(fetchUri: Uri)

Instantiates a FetchAndJoinCustomAudienceRequest.Builder with the Uri from which the custom audience is to be fetched.

Public methods
FetchAndJoinCustomAudienceRequest

Builds an instance of a FetchAndJoinCustomAudienceRequest.

FetchAndJoinCustomAudienceRequest.Builder
setActivationTime(activationTime: Instant?)

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

FetchAndJoinCustomAudienceRequest.Builder
setExpirationTime(expirationTime: Instant?)

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

FetchAndJoinCustomAudienceRequest.Builder
setFetchUri(fetchUri: Uri)

Sets the Uri from which the custom audience is to be fetched.

FetchAndJoinCustomAudienceRequest.Builder
setName(name: String?)

Sets the String name of the custom audience to join.

FetchAndJoinCustomAudienceRequest.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(fetchUri: Uri)

Instantiates a FetchAndJoinCustomAudienceRequest.Builder with the Uri from which the custom audience is to be fetched.

Parameters
fetchUri Uri: This value cannot be null.

Public methods

build

fun build(): FetchAndJoinCustomAudienceRequest

Builds an instance of a FetchAndJoinCustomAudienceRequest.

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

setActivationTime

fun setActivationTime(activationTime: Instant?): FetchAndJoinCustomAudienceRequest.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
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setExpirationTime

fun setExpirationTime(expirationTime: Instant?): FetchAndJoinCustomAudienceRequest.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
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setFetchUri

fun setFetchUri(fetchUri: Uri): FetchAndJoinCustomAudienceRequest.Builder

Sets the Uri from which the custom audience is to be fetched.

See getFetchUri() ()} for details.

Parameters
fetchUri Uri: This value cannot be null.
Return
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setName

fun setName(name: String?): FetchAndJoinCustomAudienceRequest.Builder

Sets the String name of the custom audience to join.

See getName() for details.

Parameters
name String?: This value may be null.
Return
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.

setUserBiddingSignals

fun setUserBiddingSignals(userBiddingSignals: AdSelectionSignals?): FetchAndJoinCustomAudienceRequest.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
FetchAndJoinCustomAudienceRequest.Builder This value cannot be null.