# Rewarded Video

### 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());
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aatkit.gitbook.io/aatkit-unity-integration/formats/rewarded-video.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
