ReportImpressionRequest


class ReportImpressionRequest


Represent input parameters to the reportImpression API.

Summary

Public constructors

ReportImpressionRequest(
    adSelectionId: Long,
    adSelectionConfig: AdSelectionConfig
)

Public functions

open operator Boolean
equals(other: Any?)

Checks whether two ReportImpressionRequest objects contain the same information.

open Int

Returns the hash of the ReportImpressionRequest object's data.

open String

Overrides the toString method.

Public properties

AdSelectionConfig

optional config used in the selectAds() call identified by the provided ad selection ID.

Long

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

Public constructors

ReportImpressionRequest

Added in 1.1.0-beta11
@ExperimentalFeatures.Ext8OptIn
ReportImpressionRequest(adSelectionId: Long)

ReportImpressionRequest

Added in 1.0.0
ReportImpressionRequest(
    adSelectionId: Long,
    adSelectionConfig: AdSelectionConfig
)
Parameters
adSelectionId: Long

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

adSelectionConfig: AdSelectionConfig

optional config used in the selectAds() call identified by the provided ad selection ID. If the {@code adSelectionId} is for a on-device auction run using AdSelectionManager#selectAds, then the config must be included. If the {@code adSelectionId} is for a server auction run where device info collected by [AdSelectionManager#getAdSelectionData} then the impression reporting request should only include the ad selection id.

Public functions

equals

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

Checks whether two ReportImpressionRequest objects contain the same information.

hashCode

open fun hashCode(): Int

Returns the hash of the ReportImpressionRequest object's data.

toString

open fun toString(): String

Overrides the toString method.

Public properties

adSelectionConfig

Added in 1.0.0
val adSelectionConfigAdSelectionConfig

optional config used in the selectAds() call identified by the provided ad selection ID. If the {@code adSelectionId} is for a on-device auction run using AdSelectionManager#selectAds, then the config must be included. If the {@code adSelectionId} is for a server auction run where device info collected by [AdSelectionManager#getAdSelectionData} then the impression reporting request should only include the ad selection id.

adSelectionId

Added in 1.0.0
val adSelectionIdLong

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