3jgamesdev
Member
Hi Good day,
I have been following this ARTICLE but i always get the error, when im doing the testing my game force close in my phone,this is what i have done
I made an object for ads i name it, obj_ads
obj_ads
Room Start:
Step event:
Social:
then i have this button when the character gets game over
I dont know where i went wrong, I have check the internet permission
Please Help thanks
I have been following this ARTICLE but i always get the error, when im doing the testing my game force close in my phone,this is what i have done
I made an object for ads i name it, obj_ads
obj_ads
Room Start:
Code:
if os_type == os_android
{
app_id = "ca-app-pub-8945688549689911~xxxxxxx";
banner_id = "ca-app-pub-4337965814269841/xxxxxxx";
interstitial_id = "ca-app-pub-8945688549689911/xxxxxxx";
rewarded_id = "ca-app-pub-4337965814269841/xxxxxxx";
}
GoogleMobileAds_Init(ads_interstitial, ads_app_id);
GoogleMobileAds_LoadInterstitial();
interstitial_loaded = false;
Code:
if GoogleMobileAds_InterstitialStatus() == "Ready"
{
if interstitial_loaded != true
{
interstitial_loaded = true;
}
}
Code:
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;
}
}
then i have this button when the character gets game over
Code:
if interstitial_loaded == true
{
interstitial_loaded = false;
GoogleMobileAds_ShowInterstitial();
}
room_restart();
Please Help thanks
Last edited: