@ExperimentalFeatures.Ext8OptIn
class ReportEventRequest


Represent input parameters to the reportImpression API.

Summary

Public constructors

ReportEventRequest(
    adSelectionId: Long,
    eventKey: String,
    eventData: String,
    reportingDestinations: Int,
    inputEvent: InputEvent?
)

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

Long

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

String

The ad event data

String

An event key, the type of ad event to be reported.

InputEvent?

The input event associated with the user interaction.

Int

The bitfield of reporting destinations to report to (buyer, seller, or both).

Constants

FLAG_REPORTING_DESTINATION_BUYER

const val FLAG_REPORTING_DESTINATION_BUYERInt

FLAG_REPORTING_DESTINATION_SELLER

const val FLAG_REPORTING_DESTINATION_SELLERInt

Public constructors

ReportEventRequest

Added in 1.1.0-beta11
ReportEventRequest(
    adSelectionId: Long,
    eventKey: String,
    eventData: String,
    reportingDestinations: Int,
    inputEvent: InputEvent? = null
)
Parameters
adSelectionId: Long

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

eventKey: String

An event key, the type of ad event to be reported.

eventData: String

The ad event data

reportingDestinations: Int

The bitfield of reporting destinations to report to (buyer, seller, or both).

inputEvent: InputEvent? = null

The input event associated with the user interaction.

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

adSelectionId

Added in 1.1.0-beta11
val adSelectionIdLong

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

eventData

Added in 1.1.0-beta11
val eventDataString

The ad event data

eventKey

Added in 1.1.0-beta11
val eventKeyString

An event key, the type of ad event to be reported.

inputEvent

Added in 1.1.0-beta11
@ExperimentalFeatures.Ext10OptIn
val inputEventInputEvent?

The input event associated with the user interaction.

reportingDestinations

Added in 1.1.0-beta11
val reportingDestinationsInt

The bitfield of reporting destinations to report to (buyer, seller, or both).