[Solved] Admob test mode wont work


#1

hi guys

i try to test my game or any game with admob test mode but its not showing any example ad on preview.
am following the steps on gdevelop wiki.


#2

hi, I think you must fill Admov banner ID with your real banner ID and in your project properties you must also set your app id.
With Test mode? YES you enable test mode not with “test” on the banner ID, for IOs you can leave “test” if you don’t have id


#3

Yes i’ve done that, it still won’t work :disappointed:


#4

can show the code? sometimes it takes time to admob to start working, it is all ok in your admob account?? be sure to use / on banner ID and ~ on app Id I think


#5

@csabahalasz You had a similar problem maybe you could explain what to look out for:)


#6

App ID and adMob Banner/interstitial ID are different. Need to take a look at the code, first.Also the game settings are very important.


#7

document.addEventListener(
‘admob.banner.events.LOAD_FAIL’,
function() {
gdjs.adMob.bannerLoading = false;
},
false
);

// BUG: These two never get called
/*
document.addEventListener(
“admob.banner.events.OPEN”,
function() {
gdjs.adMob.bannerExists = true;
gdjs.adMob.bannerShowing = true;
gdjs.adMob.bannerReady = false;
},
false
);

document.addEventListener(
“admob.banner.events.CLOSE”,
function() {
gdjs.adMob.bannerExists = false;
gdjs.adMob.bannerShowing = false;
},
false
);
*/



its all ok in my admob account, but even test mode banner is not working on gdevelop. tnx for the help :laughing:


#8

bunny

i get this bunny.png error in every app/game. dont even know what this file is.


#9

Bunny.png is normal, don’t worry about it.
You seem to be testing your application in the browser, except that admob only works in the android export.


#10

Ok so i have to export before i can test it with test mode?


#11

Yes only works on android. I think you don’t need the show banner as you told it to show on load.


#12

Ok tnx, it works fine now