AdValue

public final class AdValue


The monetary value earned from an ad.

Summary

Nested types

@Retention(value = SOURCE)
@IntDef(value = [PrecisionType.UNKNOWN, PrecisionType.ESTIMATED, PrecisionType.PUBLISHER_PROVIDED, PrecisionType.PRECISE])
public annotation AdValue.PrecisionType

Allowed constants for getPrecisionType.

Public fields

final String
final long

Public methods

String

The value's ISO 4217 currency code.

int

The precision type of the reported ad value.

long

The ad's value in micro-units, where 1,000,000 micro-units equal one unit of the currency.

Public fields

currencyCode

public final String currencyCode

valueMicros

public final long valueMicros

Public methods

getCurrencyCode

public String getCurrencyCode()

The value's ISO 4217 currency code.

getPrecisionType

@AdValue.PrecisionType
public int getPrecisionType()

The precision type of the reported ad value.

getValueMicros

public long getValueMicros()

The ad's value in micro-units, where 1,000,000 micro-units equal one unit of the currency.