AdSelectionOutcome


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 companion properties

AdSelectionOutcome

Represents an AdSelectionOutcome with empty results.

Public constructors

AdSelectionOutcome(adSelectionId: Long, renderUri: Uri)

Public functions

open operator Boolean
equals(other: Any?)

Checks whether two AdSelectionOutcome objects contain the same information.

Boolean
open Int

Returns the hash of the AdSelectionOutcome object's data.

open String

Overrides the toString method.

Public properties

Long

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

Uri

A render URL for the winning ad.

Public companion properties

NO_OUTCOME

@ExperimentalFeatures.Ext10OptIn
val NO_OUTCOMEAdSelectionOutcome

Represents an AdSelectionOutcome with empty results.

Public constructors

AdSelectionOutcome

Added in 1.0.0
AdSelectionOutcome(adSelectionId: Long, renderUri: Uri)
Parameters
adSelectionId: Long

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

renderUri: Uri

A render URL for the winning ad.

Public functions

equals

open operator fun equals(other: Any?): Boolean

Checks whether two AdSelectionOutcome objects contain the same information.

hashCode

open fun hashCode(): Int

Returns the hash of the AdSelectionOutcome object's data.

toString

open fun toString(): String

Overrides the toString method.

Public properties

adSelectionId

Added in 1.0.0
val adSelectionIdLong

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

renderUri

Added in 1.0.0
val renderUriUri

A render URL for the winning ad.