• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML About advertising programming

U

uni00

Guest
Good evening. I am developing an android game app. I want to use Intermotional Ads with Admob. I tried programming based on the following URL, but nothing happens. .. .. There is no error.


The id will be a temporary name here.
I want the advertisement to appear when the room moves.
thanks!

GML:
--obj_UI--

[create]

if os_type == os_ios
    {
    }
else
    {
    app_id = "ca-app-pub-〇〇〇〇〇";
    interstitial_id = "ca-app-pub-〇〇〇〇";
    }
GoogleMobileAds_Init(interstitial_id, app_id);
GoogleMobileAds_LoadInterstitial();
interstitial_loaded = false;

[step]
if GoogleMobileAds_InterstitialStatus() == "Ready"
    {
    if interstitial_loaded != true
        {
        interstitial_loaded = true;
        }
    }
   
[room start]
if interstitial_loaded == true
    {
    interstitial_loaded = false;
    GoogleMobileAds_ShowInterstitial();
    }  
   
[Async social]
    var _id = async_load[? "id"];
if _id == GoogleMobileAds_ASyncEvent
   {
   var ident = async_load[? "type"];
    switch (ident)
        {
        case "interstitial_load":
            if async_load[? "loaded"] == 1
                {
                interstitial_loaded = true;
                }
            break;
        }
    }
 
U

uni00

Guest
I'm Japanese so I don't understand English well. It depends on Google translation.
 
Top