AdSelectionOutcome


public final class AdSelectionOutcome


This class represents the output of the AdSelectionManager#selectAds in the AdSelectionManager. The fields are populated in the case of a successful AdSelectionManager#selectAds call.

Summary

Public fields

static final @NonNull AdSelectionOutcome

Represents an AdSelectionOutcome with empty results.

Public constructors

AdSelectionOutcome(long adSelectionId, @NonNull Uri renderUri)

Public methods

boolean
equals(Object other)

Checks whether two AdSelectionOutcome objects contain the same information.

final long

An ID unique only to a device user that identifies a successful ad selection.

final @NonNull Uri

A render URL for the winning ad.

final boolean
int

Returns the hash of the AdSelectionOutcome object's data.

@NonNull String

Overrides the toString method.

Public fields

NO_OUTCOME

@ExperimentalFeatures.Ext10OptIn
public static final @NonNull AdSelectionOutcome NO_OUTCOME

Represents an AdSelectionOutcome with empty results.

Public constructors

AdSelectionOutcome

Added in 1.0.0
public AdSelectionOutcome(long adSelectionId, @NonNull Uri renderUri)
Parameters
long adSelectionId

An ID unique only to a device user that identifies a successful ad selection.

@NonNull Uri renderUri

A render URL for the winning ad.

Public methods

equals

public boolean equals(Object other)

Checks whether two AdSelectionOutcome objects contain the same information.

getAdSelectionId

Added in 1.0.0
public final long getAdSelectionId()

An ID unique only to a device user that identifies a successful ad selection.

getRenderUri

Added in 1.0.0
public final @NonNull Uri getRenderUri()

A render URL for the winning ad.

hasOutcome

Added in 1.1.0-beta11
@ExperimentalFeatures.Ext10OptIn
public final boolean hasOutcome()

hashCode

public int hashCode()

Returns the hash of the AdSelectionOutcome object's data.

toString

public @NonNull String toString()

Overrides the toString method.