1. Hey! Guest! The 33rd GMC Jam will take place between May 23rd, 12:00 UTC (Friday noon) and May 27th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Advertising No Rewarded Video showing up Android

Discussion in 'Programming' started by ProjectGamesInc, May 15, 2019 at 9:38 PM.

  1. ProjectGamesInc

    ProjectGamesInc Member

    Joined:
    May 22, 2018
    Posts:
    56
    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!
     
  2. pipebkOT

    pipebkOT Member

    Joined:
    Dec 13, 2018
    Posts:
    72
    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


     
  3. ProjectGamesInc

    ProjectGamesInc Member

    Joined:
    May 22, 2018
    Posts:
    56
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice