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{
  kAdValuePrecisionUnknown = 0,
  kAdValuePrecisionEstimated,
  kAdValuePrecisionPublisherProvided = 2,
  kAdValuePrecisionPrecise = 3
}
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().

Properties
kAdValuePrecisionEstimated

An ad value estimated from aggregated data.

kAdValuePrecisionPrecise

The precise value paid for this ad.

kAdValuePrecisionPublisherProvided

A publisher-provided ad value, such as manual CPMs in a mediation group.

kAdValuePrecisionUnknown

An ad value with unknown precision.

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.

precision_type

PrecisionType precision_type() const 

The precision of the reported ad value.

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.