UpdateAdCounterHistogramRequest


@ExperimentalFeatures.Ext8OptIn
public final class UpdateAdCounterHistogramRequest


This class represents input to the AdSelectionManager#updateAdCounterHistogram in the AdSelectionManager.

Note that the FrequencyCapFilters.AD_EVENT_TYPE_WIN event type cannot be updated manually using the AdSelectionManager#updateAdCounterHistogram API.

Summary

Public constructors

UpdateAdCounterHistogramRequest(
    long adSelectionId,
    int adEventType,
    @NonNull AdTechIdentifier callerAdTech
)

Public methods

boolean
equals(Object other)

Checks whether two UpdateAdCounterHistogramRequest objects contain the same information.

final int

A render URL for the winning ad.

final long

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

final @NonNull AdTechIdentifier

The caller adtech entity's AdTechIdentifier.

int

Returns the hash of the UpdateAdCounterHistogramRequest object's data.

@NonNull String

Overrides the toString method.

Public constructors

UpdateAdCounterHistogramRequest

Added in 1.1.0-beta11
public UpdateAdCounterHistogramRequest(
    long adSelectionId,
    int adEventType,
    @NonNull AdTechIdentifier callerAdTech
)
Parameters
long adSelectionId

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

int adEventType

A render URL for the winning ad.

@NonNull AdTechIdentifier callerAdTech

The caller adtech entity's AdTechIdentifier.

Public methods

equals

public boolean equals(Object other)

Checks whether two UpdateAdCounterHistogramRequest objects contain the same information.

getAdEventType

Added in 1.1.0-beta11
public final int getAdEventType()

A render URL for the winning ad.

getAdSelectionId

Added in 1.1.0-beta11
public final long getAdSelectionId()

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

getCallerAdTech

Added in 1.1.0-beta11
public final @NonNull AdTechIdentifier getCallerAdTech()

The caller adtech entity's AdTechIdentifier.

hashCode

public int hashCode()

Returns the hash of the UpdateAdCounterHistogramRequest object's data.

toString

public @NonNull String toString()

Overrides the toString method.