This extension allows you to work with Unity Ads for Android. You can now show Interstitials and Rewared videos! Tested with latest GameMaker 2.3.3
STEP ONE. Initialize:
unity_ads_init(game_id, is_test_mode)
STEP TWO. Show ads:
unity_ads_show(placement_id)
Peace of cake, right? One more function you could need is to check if ad is ready to show:
unity_ads_is_ready(placement_id)
it will return 1 if it's ready and 0 if it's not.
There is one more thing! When you use rewarded ads you definitely need to know when user complete watching ad or if user skipped video. Add "Async - Social" event and add some logic!
// User watched full ad and should be rewared
if ds_map_find_value(async_load, "type") == "unity_ads_video_completed"
{
// Some code
}
// User skipped ad
if ds_map_find_value(async_load, "type") == "unity_ads_video_skipped"
{
// Some code
}
PLEASE, NOTE THAT YOU SHOULD SET UP YOUR GAME MAKER FOR ANDROID, SEE MANUAL https://help.yoyogames.com/hc/en-us/articles/115001368727-Setting-Up-For-Android-or-Amazon-Fire
End User Licence Agreement (EULA).
Example project added! Enjoy!