• Hey! Guest! The 37th GMC Jam will take place between May 28th, 12:00 UTC and June 1st, 12:00 UTC. Why not join in! Click here to find out more!

No Rewarded Video showing up Android

Hi all.

I have a big problem, in my project rewarded videos are not showing up at all, even with everything setting correctly done.
I have this code in the very 1st object of the game

Code:
ads_app_id = "ca-app-pub-3358768460559522~blabla";
rewarded_id = "ca-app-pub-3358768460559522/blabla";
GoogleMobileAds_Init("", ads_app_id);
GoogleMobileAds_LoadRewardedVideo(rewarded_id);

Then i have this code in a touch event in one object

Code:
GoogleMobileAds_ShowRewardedVideo();

and in the same object this async social

Code:
if global.videosoldi = 1
{
var _id = async_load[? "id"];
    if _id = GoogleMobileAds_ASyncEvent
    {
    var ident = async_load[? "type"]
    switch (ident)
        {
        case "rewardedvideo_adopened":
            break;
        case "rewardedvideo_videostarted":
            break;
        case "rewardedvideo_watched":
            global.money += 100 * global.gamemulti * 5
            global.avviso = 0
        with Ogg_Avviso
{
    instance_destroy()
}
with Ogg_NoVideo
{
    instance_destroy()
}
with Ogg_SiVideo
{
    instance_destroy()
}
instance_destroy()
GoogleMobileAds_LoadRewardedVideo("ca-app-pub-3358768460559522/blabla");
            break;
        case "rewardedvideo_adclosed":
        global.avviso = 0
        with Ogg_Avviso
{
    instance_destroy()
}
with Ogg_NoVideo
{
    instance_destroy()
}
with Ogg_SiVideo
{
    instance_destroy()
}
instance_destroy()
            GoogleMobileAds_LoadRewardedVideo("ca-app-pub-3358768460559522/blabla");
            break;
        }
    }
}
if global.videovita = 1
{
    var _id = async_load[? "id"];
    if _id = GoogleMobileAds_ASyncEvent
    {
    var ident = async_load[? "type"]
    switch (ident)
        {
        case "rewardedvideo_adopened":
            break;
        case "rewardedvideo_videostarted":
            break;
        case "rewardedvideo_watched":
            global.herostartlife += 1
            global.stop = 0
            global.avviso = 0
            Ogg_Hero.image_alpha = 1
            with Ogg_Spawner
            {
                alarm[0] = al0
                alarm[1] = al1
                alarm[2] = al2
                alarm[3] = al3
                alarm[4] = al4
            }
            with Ogg_GUI
            {
                alarm[0] = al5
            }
            
    instance_create_depth(1806,1170,-10000,Ogg_GUIShieldNo)
    instance_create_depth(1998,1170,-10000,Ogg_GUIShipsNo)
    instance_create_depth(2190,1170,-10000,Ogg_GUIMissleNo)
    with Ogg_GUIMissle
{
    image_alpha = 1
}
with Ogg_GUIShield
{
    image_alpha = 1
}
with Ogg_GUIShips
{
    image_alpha = 1
}
        with Ogg_Avviso
{
    instance_destroy()
}
with Ogg_NoVideo
{
    instance_destroy()
}
with Ogg_SiVideo
{
    instance_destroy()
}
GoogleMobileAds_LoadRewardedVideo("ca-app-pub-3358768460559522/blabla");
            break;
        case "rewardedvideo_adclosed":
            GoogleMobileAds_LoadRewardedVideo("ca-app-pub-3358768460559522/blabla");
            global.avviso = 0           
with Ogg_Avviso
{
    instance_destroy()
}
with Ogg_NoVideo
{
    instance_destroy()
}
with Ogg_SiVideo
{
    instance_destroy()
}
            break;
        }
    }
}

By the way no matter how and what, tapping on the button do nothing! No video showing up! Already double, triple checked the app id and rewarded video id from admob and they are correct.
Checked everything houndred times with no result! Am i missing something?

Any help will be really, REALLY appreciated!
 

pipebkOT

Member
run the game(F5) so you can see what messages it give you in the adb window when you try to call the ad, that would be helpful so we can know what error gives you.


if the ad was created not long ago it may take some days to be available to users, you can check this by using test ads from admob: if the sample reward video ad shows up then the problem is your ad


Sample ad units
The quickest way to enable testing is to use Google-provided test ad units. These ad units are not associated with your AdMob account, so there's no risk of your account generating invalid traffic when using these ad units. Here are sample ad units that point to specific test creatives for each format:

Ad format Sample ad unit ID
Banner ca-app-pub-3940256099942544/6300978111
Interstitial ca-app-pub-3940256099942544/1033173712
Interstitial Video ca-app-pub-3940256099942544/8691691433
Rewarded Video ca-app-pub-3940256099942544/5224354917
Native Advanced ca-app-pub-3940256099942544/2247696110
Native Advanced Video ca-app-pub-3940256099942544/1044960115
 
Thanks for the reply, now its solved!
The ad was created 2 days ago and was working while testing the app with GMS2, but i find that after uploading and apk with Google Licensing, it may take 1 day to activate correctly the ads, even if you can download the app from the store that may be ads not working for the 1st day.
 
Top