Created
April 23, 2018 05:53
-
-
Save marchbold/59c955eb8ec90619cc2052687ef5a984 to your computer and use it in GitHub Desktop.
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
var rewardedVideoAd : RewardedVideoAd = Adverts.service.rewardedVideoAds.createRewardedVideoAd(); | |
rewardedVideoAd.addEventListener( RewardedVideoAdEvent.LOADED, loadedHandler ); | |
rewardedVideoAd.addEventListener( RewardedVideoAdEvent.ERROR, errorHandler ); | |
rewardedVideoAd.load( | |
adUnitId, | |
new AdRequestBuilder().build() | |
); | |
function loadedHandler( event:RewardedVideoAdEvent ):void | |
{ | |
// Ad loaded | |
} | |
function errorHandler( event:RewardedVideoAdEvent ):void | |
{ | |
// An error occurred | |
} | |
// com.distriqt.Adverts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment