P
ProjectGamesInc
Guest
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
Then i have this code in a touch event in one object
and in the same object this async social
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!
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!