> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-unity-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-unity-integration/formats/rewarded-video.md).

# Rewarded Video

Integrate rewarded video ads

### Usage

The integration steps for rewarded videos are very similar like for other [fullscreen ads](/aatkit-unity-integration/formats/fullscreen-interstitial.md). You will just need to use [createPlacement](/aatkit-unity-integration/other/reference/aatkitbinding/methods/createplacement.md) with `AATKitBinding.PlacementSize.Rewarded` parameter.

If you’ve used rewarded videos before with the normal fullscreen placement, please make sure to use a different placement name for your new rewarded video placement.

When the user watches the rewarded video and incentive is earned, the [onUserEarnedIncentive](/aatkit-unity-integration/other/reference/aatkitbinding/delegates/onuserearnedincentive.md) event is triggered. See the example of using rewarded video ads below.

```csharp
public class YourAdsManager : MonoBehaviour {

...

    public void InitializeAATKit()
    {
        //Register delegates
        AATKitBinding.OnHaveAdDelegate += OnHaveAd;
        AATKitBinding.OnUserEarnedIncentiveDelegate += OnUserEarnedIncentive;
        //Initialize AATKit
        ...
    }

    public void CreateRewarded() 
    {
        AATKitBinding.CreatePlacement("YourPlacementName", AATKitBinding.PlacementSize.Rewarded);
        AATKitBinding.StartPlacementAutoReload("YourPlacementName");
    }

    public ShowRewardedAd() 
    {
        if (AATKitBinding.HasAdForPlacement("YourPlacementName"))
        {
            AATKitBinding.ShowPlacement("YourPlacementName");
        }
    }

    public void OnHaveAd(string placementName) 
    {
        Debug.Log("onHaveAd event: " + placementName);

        if(placementName.Equals("YourPlacementName")) 
        {
            Debug.Log("OnHaveAd for YourPlacementName");
        }
    }

    public void OnUserEarnedIncentive(IncentiveData incentiveData) 
    {
        Debug.Log("OnUserEarnedIncentive event: " + incentiveData.ToString());
    }
}
```
