Builder


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

Builder for ScheduleCustomAudienceUpdateRequest objects.

Summary

Public constructors
Builder(updateUri: Uri, minDelay: Duration, partialCustomAudienceList: MutableList<PartialCustomAudience!>)

Instantiates a builder for a ScheduleCustomAudienceUpdateRequest object.

Public methods
ScheduleCustomAudienceUpdateRequest

Builds an instance of ScheduleCustomAudienceUpdateRequest.

ScheduleCustomAudienceUpdateRequest.Builder
setMinDelay(minDelay: Duration)

Sets the minimum Duration that the update will be deferred before the service fetches updates for the buyer ad tech's custom audiences.

ScheduleCustomAudienceUpdateRequest.Builder

Sets the list of PartialCustomAudience objects that are sent to the buyer ad tech's server when making a request to download updates for the buyer's custom audiences.

ScheduleCustomAudienceUpdateRequest.Builder
setShouldReplacePendingUpdates(shouldReplacePendingUpdates: Boolean)

Sets whether any pending scheduled updates should be deleted and replaced with this ScheduleCustomAudienceUpdateRequest.

ScheduleCustomAudienceUpdateRequest.Builder
setUpdateUri(updateUri: Uri)

Sets the Uri from which the update for the buyer's custom audiences will be fetched.

Public constructors

Builder

Builder(
    updateUri: Uri,
    minDelay: Duration,
    partialCustomAudienceList: MutableList<PartialCustomAudience!>)

Instantiates a builder for a ScheduleCustomAudienceUpdateRequest object.

Parameters
updateUri Uri: Uri of the buyer ad tech's server from which the updates for the buyer's custom audiences will be fetched This value cannot be null.
minDelay Duration: Minimum Duration for which the update should be deferred This value cannot be null.
partialCustomAudienceList MutableList<PartialCustomAudience!>: List of PartialCustomAudience objects which will be sent to the buyer ad tech's server This value cannot be null.

Public methods

build

fun build(): ScheduleCustomAudienceUpdateRequest

Builds an instance of ScheduleCustomAudienceUpdateRequest.

Return
ScheduleCustomAudienceUpdateRequest This value cannot be null.

setMinDelay

fun setMinDelay(minDelay: Duration): ScheduleCustomAudienceUpdateRequest.Builder

Sets the minimum Duration that the update will be deferred before the service fetches updates for the buyer ad tech's custom audiences.

This delay must not be a negative Duration.

See getMinDelay() for more details.

Parameters
minDelay Duration: This value cannot be null.
Return
ScheduleCustomAudienceUpdateRequest.Builder This value cannot be null.

setPartialCustomAudienceList

fun setPartialCustomAudienceList(partialCustomAudienceList: MutableList<PartialCustomAudience!>): ScheduleCustomAudienceUpdateRequest.Builder

Sets the list of PartialCustomAudience objects that are sent to the buyer ad tech's server when making a request to download updates for the buyer's custom audiences.

See getPartialCustomAudienceList() for more details.

Parameters
partialCustomAudienceList MutableList<PartialCustomAudience!>: This value cannot be null.
Return
ScheduleCustomAudienceUpdateRequest.Builder This value cannot be null.

setShouldReplacePendingUpdates

fun setShouldReplacePendingUpdates(shouldReplacePendingUpdates: Boolean): ScheduleCustomAudienceUpdateRequest.Builder

Sets whether any pending scheduled updates should be deleted and replaced with this ScheduleCustomAudienceUpdateRequest.

By default, this setting is false.

See shouldReplacePendingUpdates() for more details.

Return
ScheduleCustomAudienceUpdateRequest.Builder This value cannot be null.

setUpdateUri

fun setUpdateUri(updateUri: Uri): ScheduleCustomAudienceUpdateRequest.Builder

Sets the Uri from which the update for the buyer's custom audiences will be fetched.

The Uri must use the same HTTPS site as the buyer ad tech's enrolled server.

See getUpdateUri() for more details.

Parameters
updateUri Uri: This value cannot be null.
Return
ScheduleCustomAudienceUpdateRequest.Builder This value cannot be null.