[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  
Summary:[Ctors](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#pubctors)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#inhmethods)  

# ReportEventRequest.Builder

`
public
static
final

class
ReportEventRequest.Builder
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|-----------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.adservices.adselection.ReportEventRequest.Builder |

<br />

*** ** * ** ***

Builder for[ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest)objects.

## Summary

|                                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#Builder(long,%20java.lang.String,%20java.lang.String,%20int))`(long adSelectionId, `[String](https://developer.android.com/reference/java/lang/String)` eventKey, `[String](https://developer.android.com/reference/java/lang/String)` eventData, int reportingDestinations) ` |

|                                                                                                                                                                                                                                               ### Public methods                                                                                                                                                                                                                                               ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest)                 | ` `[build](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#build())`() ` Builds the[ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest)object.                                  |
| ` `[ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | ` `[setAdSelectionId](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#setAdSelectionId(long))`(long adSelectionId) ` Sets the ad selection ID with which the rendered ad's events are associated.                                                                    |
| ` `[ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | ` `[setData](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#setData(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` eventData) ` Sets the ad event data.                                                                   |
| ` `[ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | ` `[setInputEvent](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#setInputEvent(android.view.InputEvent))`(`[InputEvent](https://developer.android.com/reference/android/view/InputEvent)` inputEvent) ` Sets the input event associated with the user interaction. |
| ` `[ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | ` `[setKey](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#setKey(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String)` eventKey) ` Sets the event key, the type of ad event to be reported.                                     |
| ` `[ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | ` `[setReportingDestinations](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder#setReportingDestinations(int))`(int reportingDestinations) ` Sets the bitfield of reporting destinations to report to (buyer, seller, or both).                                        |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### Builder

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public Builder (long adSelectionId, 
                String eventKey, 
                String eventData, 
                int reportingDestinations)
```

<br />

<br />

|                                                                                                                                                                                                                                                Parameters                                                                                                                                                                                                                                                 ||
|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `adSelectionId`         | `long` <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `eventKey`              | `String`: This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `eventData`             | `String`: This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `reportingDestinations` | `int`: Value is either`0`or a combination of[ReportEventRequest.FLAG_REPORTING_DESTINATION_SELLER](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_SELLER), and[ReportEventRequest.FLAG_REPORTING_DESTINATION_BUYER](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_BUYER) <br /> |

## Public methods

### build

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public ReportEventRequest build ()
```

Builds the[ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest)object.

<br />

|                                                                                    Returns                                                                                    ||
|-------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [ReportEventRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest) | This value cannot be`null`. <br /> |

### setAdSelectionId

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public ReportEventRequest.Builder setAdSelectionId (long adSelectionId)
```

Sets the ad selection ID with which the rendered ad's events are associated.

See[ReportEventRequest.getAdSelectionId()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#getAdSelectionId())for more information.

<br />

|           Parameters           ||
|-----------------|---------------|
| `adSelectionId` | `long` <br /> |

|                                                                                            Returns                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | This value cannot be`null`. <br /> |

### setData

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public ReportEventRequest.Builder setData (String eventData)
```

Sets the ad event data.

See[ReportEventRequest.getData()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#getData())for more information.

<br />

|                        Parameters                         ||
|-------------|----------------------------------------------|
| `eventData` | `String`: This value cannot be`null`. <br /> |

|                                                                                            Returns                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | This value cannot be`null`. <br /> |

### setInputEvent

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public ReportEventRequest.Builder setInputEvent (InputEvent inputEvent)
```

Sets the input event associated with the user interaction.

See[ReportEventRequest.getInputEvent()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#getInputEvent())for more information.

<br />

|                         Parameters                          ||
|--------------|-----------------------------------------------|
| `inputEvent` | `InputEvent`: This value may be`null`. <br /> |

|                                                                                            Returns                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | This value cannot be`null`. <br /> |

### setKey

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public ReportEventRequest.Builder setKey (String eventKey)
```

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

See[ReportEventRequest.getKey()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#getKey())for more information.

<br />

|                        Parameters                        ||
|------------|----------------------------------------------|
| `eventKey` | `String`: This value cannot be`null`. <br /> |

|                                                                                            Returns                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | This value cannot be`null`. <br /> |

### setReportingDestinations

[**Added in Android UpsideDownCakePrivacySandbox**](https://developer.android.com/preview)  

```
public ReportEventRequest.Builder setReportingDestinations (int reportingDestinations)
```

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

See[ReportEventRequest.getReportingDestinations()](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#getReportingDestinations())for more information.

<br />

|                                                                                                                                                                                                                                                Parameters                                                                                                                                                                                                                                                 ||
|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `reportingDestinations` | `int`: Value is either`0`or a combination of[ReportEventRequest.FLAG_REPORTING_DESTINATION_SELLER](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_SELLER), and[ReportEventRequest.FLAG_REPORTING_DESTINATION_BUYER](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest#FLAG_REPORTING_DESTINATION_BUYER) <br /> |

|                                                                                            Returns                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [ReportEventRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/adselection/ReportEventRequest.Builder) | This value cannot be`null`. <br /> |