firebase:: gma:: AdValue
#include <types.h>
The monetary value earned from an ad.
Summary
Constructors and Destructors |
|
---|---|
AdValue(const char *currency_code, PrecisionType precision_type, int64_t value_micros)
Constructor.
|
Public types |
|
---|---|
PrecisionType{
|
enum Allowed constants for precision_type(). |
Public functions |
|
---|---|
currency_code() const
|
const std::string &
The value's ISO 4217 currency code.
|
precision_type() const
|
The precision of the reported ad value.
|
value_micros() const
|
int64_t
The ad's value in micro-units, where 1,000,000 micro-units equal one unit of the currency.
|
Public types
PrecisionType
PrecisionType
Allowed constants for precision_type().
Public functions
AdValue
AdValue( const char *currency_code, PrecisionType precision_type, int64_t value_micros )
Constructor.
currency_code
const std::string & currency_code() const
The value's ISO 4217 currency code.
value_micros
int64_t value_micros() const
The ad's value in micro-units, where 1,000,000 micro-units equal one unit of the currency.