PartialCustomAudience


@ExperimentalFeatures.Ext14OptIn
public final class PartialCustomAudience


Represents a partial custom audience that is passed along to DSP, when scheduling a delayed update for Custom Audience. Any field set by the caller cannot be overridden by the custom audience fetched from the updateUri.

Given multiple Custom Audiences could be returned by DSP we will match the override restriction based on the name of Custom Audience. Thus name would be a required field.

For more information about each field refer to CustomAudience.

Summary

Public constructors

PartialCustomAudience(
    @NonNull String name,
    Instant activationTime,
    Instant expirationTime,
    AdSelectionSignals userBiddingSignals
)

Public methods

boolean
equals(Object other)

Checks whether two PartialCustomAudience objects contain the same information.

final Instant
final Instant
final @NonNull String
final AdSelectionSignals
int

Returns the hash of the PartialCustomAudience object's data.

@NonNull String

Public constructors

PartialCustomAudience

Added in 1.1.0-beta12
public PartialCustomAudience(
    @NonNull String name,
    Instant activationTime,
    Instant expirationTime,
    AdSelectionSignals userBiddingSignals
)

Public methods

equals

public boolean equals(Object other)

Checks whether two PartialCustomAudience objects contain the same information.

getActivationTime

Added in 1.1.0-beta12
public final Instant getActivationTime()

getExpirationTime

Added in 1.1.0-beta12
public final Instant getExpirationTime()

getName

Added in 1.1.0-beta12
public final @NonNull String getName()

getUserBiddingSignals

Added in 1.1.0-beta12
public final AdSelectionSignals getUserBiddingSignals()

hashCode

public int hashCode()

Returns the hash of the PartialCustomAudience object's data.

toString

public @NonNull String toString()