onUserEarnedIncentive
Overview
Notifies that placement has earned incentive (by rewarded ads).
Data passed by the event
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.
document.addEventListener('onUserEarnedIncentive', (data: any) => {
console.log('onUserEarnedIncentive placementName: ' + data.placementName + ' reward.name: ' + data.reward.name + ' reward.value ' + data.reward.value);
});
Last updated