A
ArtCode
Guest
Hello to everyone,
I'm creating a little free videogame for Android, but also I want to add Ads.
I created a Google AdMob account and all necessary.
I created an AD with his ID, now I'm following this Official Guide but it doesn't works.
Here is my code:
To do this I created 2 empty Objects and insert them to the room.
obj_LoadAds
GAME START Event
obj_BannerAd
GAME START Event
This are only few lines of code but still I have some problems...
The error message is:
I'm creating a little free videogame for Android, but also I want to add Ads.
I created a Google AdMob account and all necessary.
I created an AD with his ID, now I'm following this Official Guide but it doesn't works.
Here is my code:
To do this I created 2 empty Objects and insert them to the room.
obj_LoadAds
GAME START Event
Code:
GoogleMobileAds_Init(ca-app-pub-7345505760380035/6302105897);
GoogleMobileAds_LoadInterstitial();
GAME START Event
Code:
GoogleMobileAds_AddBannerAt("ca-app-pub-7345505760380035/6302105897", GoogleMobileAds_Banner, 0, 0);
The error message is:
The messagge is saying that the Object is NOT set in the room, but he is present....Variable obj_LoadAds.banner(100003, -2147483648) not set before reading it.
at gml_Object_obj_LoadAds_StartGameEvent_1 (line 3) - GoogleMobileAds_Init(banner);