# 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
class ReportEventRequest
```

<br />

*** ** * ** ***

Represent input parameters to the reportImpression API.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_BUYER()` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_SELLER()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#ReportEventRequest(kotlin.Long,kotlin.String,kotlin.String,kotlin.Int,android.view.InputEvent)( adSelectionId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, eventKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, eventData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, reportingDestinations: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, inputEvent: https://developer.android.com/reference/android/view/InputEvent.html? )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` Checks whether two `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportImpressionRequest` objects contain the same information. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#hashCode()()` Returns the hash of the `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportImpressionRequest` object's data. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#toString()()` Overrides the toString method. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#adSelectionId()` An ID unique only to a device user that identifies a successful ad selection. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#eventData()` The ad event data |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#eventKey()` An event key, the type of ad event to be reported. |
| `https://developer.android.com/reference/android/view/InputEvent.html?` | `@https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/ExperimentalFeatures.Ext10OptIn https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#inputEvent()` The input event associated with the user interaction. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportEventRequest#reportingDestinations()` The bitfield of reporting destinations to report to (buyer, seller, or both). |

## Constants

### FLAG_REPORTING_DESTINATION_BUYER

```
const val FLAG_REPORTING_DESTINATION_BUYER: Int
```

### FLAG_REPORTING_DESTINATION_SELLER

```
const val FLAG_REPORTING_DESTINATION_SELLER: Int
```

## Public constructors

### ReportEventRequest

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

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

| Parameters |
|---|---|
| `adSelectionId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | An ID unique only to a device user that identifies a successful ad selection. |
| `eventKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | An event key, the type of ad event to be reported. |
| `eventData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The ad event data |
| `reportingDestinations: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | 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 /> |
| `inputEvent: https://developer.android.com/reference/android/view/InputEvent.html? = null` | The input event associated with the user interaction. |

## Public functions

### equals

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

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

### hashCode

```
open fun hashCode(): Int
```

Returns the hash of the `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/ReportImpressionRequest` object's data.

### toString

```
open fun toString(): String
```

Overrides the toString method.

## Public properties

### adSelectionId

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

```
val adSelectionId: Long
```

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

### eventData

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

```
val eventData: String
```

The ad event data

### eventKey

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

```
val eventKey: String
```

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

### inputEvent

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

```
@ExperimentalFeatures.Ext10OptIn
val inputEvent: InputEvent?
```

The input event associated with the user interaction.

### reportingDestinations

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

```
val reportingDestinations: Int
```

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 />