> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-ionic-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-ionic-integration/formats/rewarded-video.md).

# Rewarded Video

### Usage

The integration steps for rewarded videos are very similar like for other [fullscreen ads](/aatkit-ionic-integration/formats/fullscreen-interstitial.md). You will just need to use [createRewardedVideoPlacement](/aatkit-ionic-integration/other/reference/functions/createrewardedvideoplacement.md) function. When the user watches the rewarded video and incentive is earned, the [onUserEarnedIncentive](/aatkit-ionic-integration/other/reference/events/onuserearnedincentive.md) event is triggered. See the example of using rewarded video ads below.

```typescript
AATKitIonic.createRewardedVideoPlacement({placementName: "RewardedPlacement"});

document.addEventListener('onUserEarnedIncentive', (data: any) => {
    console.log('onUserEarnedIncentive placementName: ' + data.placementName + ' name: ' + data.reward.name + ' value ' +  data.reward.value);
  });
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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-ionic-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.
