# UpdateAdCounterHistogramRequest

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/UpdateAdCounterHistogramRequest.kt+class:androidx.privacysandbox.ads.adservices.adselection.UpdateAdCounterHistogramRequest) Added in [1.1.0-beta12](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.1.0-beta12)

*** ** * ** ***


```
@ExperimentalFeatures.Ext8OptIn
class UpdateAdCounterHistogramRequest
```

<br />

*** ** * ** ***

This class represents input to the AdSelectionManager#updateAdCounterHistogram in the `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/AdSelectionManager`.

Note that the `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/FrequencyCapFilters#AD_EVENT_TYPE_WIN()` event type cannot be updated manually using the AdSelectionManager#updateAdCounterHistogram API.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/UpdateAdCounterHistogramRequest#UpdateAdCounterHistogramRequest(kotlin.Long,kotlin.Int,androidx.privacysandbox.ads.adservices.common.AdTechIdentifier)( adSelectionId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, adEventType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, callerAdTech: https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier )` |

| ### 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/UpdateAdCounterHistogramRequest#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/UpdateAdCounterHistogramRequest` 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/UpdateAdCounterHistogramRequest#hashCode()()` Returns the hash of the `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/UpdateAdCounterHistogramRequest` 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/UpdateAdCounterHistogramRequest#toString()()` Overrides the toString method. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/UpdateAdCounterHistogramRequest#adEventType()` A render URL for the winning ad. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/UpdateAdCounterHistogramRequest#adSelectionId()` An ID unique only to a device user that identifies a successful ad selection. |
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/adselection/UpdateAdCounterHistogramRequest#callerAdTech()` The caller adtech entity's `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier`. |

## Public constructors

### UpdateAdCounterHistogramRequest

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

```
UpdateAdCounterHistogramRequest(
    adSelectionId: Long,
    adEventType: Int,
    callerAdTech: AdTechIdentifier
)
```

| 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. |
| `adEventType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | A render URL for the winning ad. Value is one of the following: - `0` - `2` - `3` - `1` <br /> |
| `callerAdTech: https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier` | The caller adtech entity's `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier`. |

## Public functions

### equals

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

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

### toString

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

Overrides the toString method.

## Public properties

### adEventType

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

```
val adEventType: Int
```

A render URL for the winning ad.

Value is one of the following:

- `0`
- `2`
- `3`
- `1`

<br />

### 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.

### callerAdTech

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

```
val callerAdTech: AdTechIdentifier
```

The caller adtech entity's `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier`.