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

An ad value estimated from aggregated data.

The precise value paid for this ad.

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

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.

Create a Mobile Website
View Site in Mobile | Classic
Share by: