Android / Amazon Fire AdMob Reward Video doesn't work at the first time

Hello everyone! ^^
Guys, lately something very strange is happening in my apk I don't know if it's something from google or if something is wrong.

Come on, I correctly printed all the steps following the official yoyo tutorial. I have the latest version of GMS2 and I have everything updated by the Android Studio SDK manager

The problem is that when a player downloads my game for the first time, the ad windows do not load! However, if the player enters the second time, the vidios ads load perfectly !!! whaat o_O

I'll put here exactly as I did:

GAME START
GML:
//GOOGLE ADMOB LOGIN
if (os_type == os_android) {
    app_id = "MY APP ID";
    rewarded_id = "MY VIDIO ID";
    GoogleMobileAds_Init(app_id);
    GoogleMobileAds_LoadRewardedVideo(rewarded_id);
}
//------
Object that calls vidio create
GML:
vidio_load=false
STEP
GML:
if vidio_load == true {
    GoogleMobileAds_ShowRewardedVideo();
} else {
    GoogleMobileAds_LoadRewardedVideo(rewarded_id );
}
ASYNC - SOCIAL
GML:
var _id = async_load[? "id"];
if (_id == GoogleMobileAds_ASyncEvent) {
    var ident = async_load[? "type"];
  
    switch(ident) {
        case "rewardedvideo_adloaded":
            vidio_load = true; 
   
        break;
        case "rewardedvideo_adopened":

 
        break;
        case "rewardedvideo_videostarted":

        break;
        case "rewardedvideo_watched":
        vidio_complete=true;
        if alarm[2]<0{alarm[2]=90; // Script to reward!
        break;
             
        case "rewardedvideo_adclosed":
        // Error message

        break;
    }
}
Remembering that it is working perfectly but only the second time the player enters the app. :(

I’ve also updated all GooglePlayServicesExtension extensions
 
Last edited:

Nocturne

Friendly Tyrant
Forum Staff
Admin
Is this being tested on a "live" app from the store or running from within GameMaker? Also, add some debug code to the async event to show a message or something when ads are loaded and see if the ad is actually loading on the first run. Also keep in mind that Google fill rates will be sporadic and low until the app is on the store and has a few downloads.
 
Top