GameMaker Studio 2 (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.1

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
}

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 1.0.1. Published January 13, 2021

  • ACCESS_NETWORK_STATE permission added and now everything should work like a charm!
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top