> 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/other/reference/events/onuserearnedincentive.md).

# onUserEarnedIncentive

### Overview <a href="#markdown-header-overview" id="markdown-header-overview"></a>

Notifies that placement has earned incentive (by rewarded ads).

### Data passed by the event <a href="#markdown-header-data-passed-by-the-event" id="markdown-header-data-passed-by-the-event"></a>

**DATA**

JSON object containing information about incentive:

*string* **placementName** - Unique name of the placement. The same name will be used in gravite.net account.

*object* **reward** - JSON object containing information about reward. Might not exists if network doesn't return information about reward.

* *string* **name** - name of the reward.
* *string* **value** - value of the reward.

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