# Rewarded

{% hint style="info" %}
There are some advertisement settings in the `playgama-bridge-config.json` file

[playgama-bridge-config](https://wiki.playgama.com/playgama/sdk/playgama-bridge-config "mention")
{% endhint %}

**Rewarded ads** are a type of advertisement where players have the option to watch an ad in exchange for in-game rewards

Offer players rewards in exchange for watching ads, incentivizing ad engagement and increasing ad revenue.

#### Is Rewarded Supported

Check if the platform supports displaying rewarded ads.

```csharp
Bridge.advertisement.isRewardedSupported
```

#### **Rewarded State** <a href="#rewarded-state" id="rewarded-state"></a>

Monitor the state of the rewarded ad (loading, opened, closed, rewarded, failed) to manage the reward process.

```csharp
Bridge.advertisement.rewardedState
```

Possible values: `Loading`, `Opened`, `Closed`, `Rewarded`, `Failed`.

```csharp
// To track rewarded ad state changes, subscribe to the event
private void Start()
{
    Bridge.advertisement.rewardedStateChanged += OnRewardedStateChanged;
}

private void OnRewardedStateChanged(RewardedState state)
{
    Debug.Log(state);
}
```

{% hint style="info" %}
React to changes in ad state. For example, mute the game sound when `Opened` and unmute when `Closed` and `Failed`.
{% endhint %}

{% hint style="danger" %}
Reward the player only when the state is `Rewarded`.
{% endhint %}

#### **Rewarded Placement** <a href="#show-rewarded-a-d" id="show-rewarded-a-d"></a>

Monitor the current placement of the rewarded ad to manage the reward process.

```csharp
Bridge.advertisement.rewardedPlacement
```

#### **Show Rewarded Ad** <a href="#show-rewarded-a-d" id="show-rewarded-a-d"></a>

Display a rewarded ad and provide incentives to players for watching the entire ad.

```csharp
private void Start()
{
    var placement = "test_placement"; // optional
    Bridge.advertisement.ShowRewarded(placement);
}
```
