You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
SetAdMobRewardAdDetails ( szID ) // here you insert your unique admob ID
SetAdMobTesting (1) //this will not load actual advertisements, only a test one to prevent from getting banned by admob if pressed. Change this value to 0 if you are publishing your game.
If GetRewardAdLoadedAdMob() = 1 //this checks if there is a loaded advertisement ready " If this command continues to return 0 then ad loading may have failed due to the provider running out of ads and AGK will stop trying to load them. In this case you should try your other ad providers instead."
ShowRewardAdAdMob() // shows the actual ad
//rewarding the player
if GetRewardAdRewardedAdMob() = 1 //this checks if a person finished watching an ad and makes sure they will be rewarded
coins = coins + 100 // here you give your player his/her reward. In this case, it is 100 coins
ResetRewardAdMob() //this resets the value to 0 so your player wont be rewarded multiple times
Login to post a reply