Created
April 23, 2018 06:06
-
-
Save marchbold/8bebe8eaa8a6262cc6a72d888a9498d5 to your computer and use it in GitHub Desktop.
Rewarding your user after a Rewarded Video Ad using the Adverts ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rewardedVideoAd.addEventListener( RewardedVideoAdEvent.REWARD, rewardHandler ); | |
| function rewardHandler( event:RewardedVideoAdEvent ):void | |
| { | |
| // Here you should reward your user | |
| // event.rewardAmount contains the amount that should be awarded to your user | |
| // event.rewardType contains the type of this reward | |
| } | |
| // com.distriqt.Adverts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment