@ExperimentalFeatures.Ext8OptIn
public final class ReportEventRequest


Represent input parameters to the reportImpression API.

Summary

Constants

static final int
static final int

Public constructors

ReportEventRequest(
    long adSelectionId,
    @NonNull String eventKey,
    @NonNull String eventData,
    int reportingDestinations,
    InputEvent inputEvent
)

Public methods

boolean
equals(Object other)

Checks whether two ReportImpressionRequest objects contain the same information.

final long

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

final @NonNull String

The ad event data

final @NonNull String

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

final InputEvent

The input event associated with the user interaction.

final int

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

int

Returns the hash of the ReportImpressionRequest object's data.

@NonNull String

Overrides the toString method.

Constants

FLAG_REPORTING_DESTINATION_BUYER

public static final int FLAG_REPORTING_DESTINATION_BUYER

FLAG_REPORTING_DESTINATION_SELLER

public static final int FLAG_REPORTING_DESTINATION_SELLER

Public constructors

ReportEventRequest

Added in 1.1.0-beta06
public ReportEventRequest(
    long adSelectionId,
    @NonNull String eventKey,
    @NonNull String eventData,
    int reportingDestinations,
    InputEvent inputEvent
)
Parameters
long adSelectionId

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

@NonNull String eventKey

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

@NonNull String eventData

The ad event data

int reportingDestinations

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

InputEvent inputEvent

The input event associated with the user interaction.

Public methods

equals

public boolean equals(Object other)

Checks whether two ReportImpressionRequest objects contain the same information.

getAdSelectionId

Added in 1.1.0-beta06
public final long getAdSelectionId()

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

getEventData

Added in 1.1.0-beta06
public final @NonNull String getEventData()

The ad event data

getEventKey

Added in 1.1.0-beta06
public final @NonNull String getEventKey()

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

getInputEvent

Added in 1.1.0-beta06
public final InputEvent getInputEvent()

The input event associated with the user interaction.

getReportingDestinations

Added in 1.1.0-beta06
public final int getReportingDestinations()

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

hashCode

public int hashCode()

Returns the hash of the ReportImpressionRequest object's data.

toString

public @NonNull String toString()

Overrides the toString method.