# ReportEventRequest

Artifact: [androidx.privacysandbox.ads:ads-adservices](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest.kt+class:androidx.privacysandbox.ads.adservices.adselection.ReportEventRequest) Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

*** ** * ** ***


```
@ExperimentalFeatures.Ext8OptIn
public final class ReportEventRequest
```

<br />

*** ** * ** ***

Represent input parameters to the reportImpression API.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_BUYER()` |
| `static final int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_SELLER()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#ReportEventRequest(kotlin.Long,kotlin.String,kotlin.String,kotlin.Int,android.view.InputEvent)( long adSelectionId, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html eventKey, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html eventData, int reportingDestinations, https://developer.android.com/reference/android/view/InputEvent.html inputEvent )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportImpressionRequest` objects contain the same information. |
| `final long` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#getAdSelectionId()()` An ID unique only to a device user that identifies a successful ad selection. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#getEventData()()` The ad event data |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#getEventKey()()` An event key, the type of ad event to be reported. |
| `final https://developer.android.com/reference/android/view/InputEvent.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#getInputEvent()()` The input event associated with the user interaction. |
| `final int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#getReportingDestinations()()` The bitfield of reporting destinations to report to (buyer, seller, or both). |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#hashCode()()` Returns the hash of the `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportImpressionRequest` object's data. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#toString()()` 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-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
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. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html eventKey` | An event key, the type of ad event to be reported. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html eventData` | The ad event data |
| `int reportingDestinations` | The bitfield of reporting destinations to report to (buyer, seller, or both). Value is either `0` or a combination of the following: - `1` - `2` <br /> |
| `https://developer.android.com/reference/android/view/InputEvent.html inputEvent` | The input event associated with the user interaction. |

## Public methods

### equals

```
public boolean equals(Object other)
```

Checks whether two `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportImpressionRequest` objects contain the same information.

### getAdSelectionId

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public final long getAdSelectionId()
```

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

### getEventData

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public final @NonNull String getEventData()
```

The ad event data

### getEventKey

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public final @NonNull String getEventKey()
```

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

### getInputEvent

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
public final InputEvent getInputEvent()
```

The input event associated with the user interaction.

### getReportingDestinations

Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

```
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 `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/adselection/ReportImpressionRequest` object's data.

### toString

```
public @NonNull String toString()
```

Overrides the toString method.