# firebase::gma::AdReward


`#include <types.h>`

Describes a reward credited to a user for interacting with a [RewardedAd](https://developers.google.com/admob/cpp/reference/class/firebase/gma/rewarded-ad#classfirebase_1_1gma_1_1_rewarded_ad).

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-reward#classfirebase_1_1gma_1_1_ad_reward_1afe5565b61d17a486b251261e637ec21a(const std::string & type, int64_t amount)` Creates an [AdReward](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-reward#classfirebase_1_1gma_1_1_ad_reward). ||

| ### Public functions ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-reward#classfirebase_1_1gma_1_1_ad_reward_1a290d225da091febe0db09891742934f6() const ` | `int64_t` Returns the reward amount. |
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-reward#classfirebase_1_1gma_1_1_ad_reward_1a91aa15427aa9328ae143dee05abab793() const ` | `const std::string &` Returns the type of the reward. |

## Public functions

### AdReward

```c++
 AdReward(
  const std::string & type,
  int64_t amount
)
```
Creates an [AdReward](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-reward#classfirebase_1_1gma_1_1_ad_reward).

### amount

```c++
int64_t amount() const 
```
Returns the reward amount.

### type

```c++
const std::string & type() const 
```
Returns the type of the reward.