GameMaker (2.3)
Icon

Unity Ads for Android

breakmt

You must be logged in to obtain assets

Description

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).

Age Rating: 4+

Version

GMS2.3 - Version 1.0.2. Published October 17, 2021

Example project added! Enjoy!

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait