ScheduleCustomAudienceUpdateRequest


@ExperimentalFeatures.Ext14OptIn
public final class ScheduleCustomAudienceUpdateRequest


The request object wrapping the required and optional parameters to schedule a deferred update for a buyer ad tech's custom audiences.

Summary

Public constructors

ScheduleCustomAudienceUpdateRequest(
    @NonNull Uri updateUri,
    @NonNull Duration minDelay,
    @NonNull List<@NonNull PartialCustomAudience> partialCustomAudienceList,
    boolean shouldReplacePendingUpdates
)

Public methods

boolean
equals(Object other)

Checks whether two ScheduleCustomAudienceUpdateRequest objects contain the same information.

final @NonNull Duration

The Duration representing the minimum of the delay before the service fetches updates for the buyer ad tech's custom audiences.

final @NonNull List<@NonNull PartialCustomAudience>

The list of PartialCustomAudience objects which are sent along with the request to download the updates for the buyer ad tech's custom audiences.

final @NonNull Uri

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

int

Returns the hash of the ScheduleCustomAudienceUpdateRequest object's data.

final boolean

If any pending scheduled updates should be canceled and replaced with the update detailed in the current ScheduleCustomAudienceUpdateRequest.

@NonNull String

Public constructors

ScheduleCustomAudienceUpdateRequest

Added in 1.1.0-beta12
public ScheduleCustomAudienceUpdateRequest(
    @NonNull Uri updateUri,
    @NonNull Duration minDelay,
    @NonNull List<@NonNull PartialCustomAudience> partialCustomAudienceList,
    boolean shouldReplacePendingUpdates
)
Parameters
@NonNull Uri updateUri

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

@NonNull Duration minDelay

The Duration representing the minimum of the delay before the service fetches updates for the buyer ad tech's custom audiences.

@NonNull List<@NonNull PartialCustomAudience> partialCustomAudienceList

The list of PartialCustomAudience objects which are sent along with the request to download the updates for the buyer ad tech's custom audiences.

boolean shouldReplacePendingUpdates

If any pending scheduled updates should be canceled and replaced with the update detailed in the current ScheduleCustomAudienceUpdateRequest. If it is false and there are previously requested updates still pending for the same buyer in the same app, a call to CustomAudienceManager.scheduleCustomAudienceUpdate with this ScheduleCustomAudienceUpdateRequest will fail.

Public methods

equals

public boolean equals(Object other)

Checks whether two ScheduleCustomAudienceUpdateRequest objects contain the same information.

getMinDelay

Added in 1.1.0-beta12
public final @NonNull Duration getMinDelay()

The Duration representing the minimum of the delay before the service fetches updates for the buyer ad tech's custom audiences.

getPartialCustomAudienceList

Added in 1.1.0-beta12
public final @NonNull List<@NonNull PartialCustomAudiencegetPartialCustomAudienceList()

The list of PartialCustomAudience objects which are sent along with the request to download the updates for the buyer ad tech's custom audiences.

getUpdateUri

Added in 1.1.0-beta12
public final @NonNull Uri getUpdateUri()

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

hashCode

public int hashCode()

Returns the hash of the ScheduleCustomAudienceUpdateRequest object's data.

shouldReplacePendingUpdates

Added in 1.1.0-beta12
public final boolean shouldReplacePendingUpdates()

If any pending scheduled updates should be canceled and replaced with the update detailed in the current ScheduleCustomAudienceUpdateRequest. If it is false and there are previously requested updates still pending for the same buyer in the same app, a call to CustomAudienceManager.scheduleCustomAudienceUpdate with this ScheduleCustomAudienceUpdateRequest will fail.

toString

public @NonNull String toString()