And in TestScene.cpp, inside a callback func called from a menu button:
sdkbox::PluginAdMob::show("test banner");
If i press the menu button too quick, banner isn’t shown as it’s still being cached. I’m ok with that as I plan to implement a listener to check when the banner is ready and show from the listener. What worries me is that it only shows real ads, no test ones.
What should I change? As you can see, I call setTestDevices() before caching
I have checked this particular issue some days before.
we found it to be working, but let me double-check it.
FEATURE:
We also had a feature of config change of bool value to enable the test device, but that seems not to be there in the current production build.
Thanks for your fast answer. I’ve tried with another device, I’ve replaced my test device code ID with the one for the new device, but got no test ad in new device either.
I’ve checked all steps given in the Manual integration For Android Wiki and everything seems fine. I’ve checked my plugin version, and it’s sdkbox-admob_v2.1.2.7
How many symbols in your device id? Today I was faced with a similar problem - the app from the store showed the identifiers longer than 16 characters, whereas the correct ID is consisted of 32.
Sorry for the trouble.
Anyway we are checking up the release of the new feature.
If it’s already available, I will list you down the steps and will update our documentation.
If not, we will release a hot-fix or a new release with the feature.
@chmyaf my device ID is 32 characters long. I’m still developing the app so it’s not published in the store yet. The only codes I’ve are the one I read from logcat and put in setTestDevices() and the one got from admob for the banner and that is stored in my sdkbox_config.json and, as stated before, guess last one is working properly as I can see a real banner in my app.
@pabitrapadhy Thanks for the info. I’ll be off until next week, I’ll check back for info on monday Btw, have you managed to reproduce the error? Do you need more info?
After doing some tests, I couldn’t manage to make it work either with my current version or after updating to newest one and modifing sdkbox_config.json to include “test”:true
Anyway, I made a new project, moved my code to it, and still same issue. Then, I did a fresh install of cocos, sdkbox, ndk & android sdk, created again a new project and moved my code to it, and this time it worked like a charm.
I’m not sure what was messing with my project, as I’ve been periodically updating ndk and sdk (different paths and executing setup.py on cocos2d-x folder), but problem now is solved.
Thank you for replying me
I tried to do the same to you but still not work.
After updated sdkbox to 2.2.0.12 i found that sdkbox_config.json must set to this to work
Hello,
Is this issue not solved yet?
I tested it on iOS but I can’t see real ads
“test”:true is set correct position
When I tested it with sample project I can’t see real ads
I haven’t tested it on IOS, but for android it works flawlessly. If you put “test”: TRUE it won’t show real ads. for real ads, you need to put “test”: false
As a recomendation, I’d suggest using LiveOps for creating your JSON files. Even if you don’t use LiveOps at all, it’s still a nice way to have them created automatically and thus being well formatted.
I have interesting issue. On August 7 my released Android game stopped show ads with AdMob plugin.
I tested ads with AdMob test_id and it works.
According to AdMob Android setup guide (https://developers.google.com/admob/android/quick-start) it is required AdMob APP_ID for initialize. MobileAds.initialize(this, "YOUR_ADMOB_APP_ID");
In Cocos AdMob plugin this AdMob APP_ID is not used in setup. Just wondered isn’t it required?
Yes, its works without app_id, thanks.
I also tested the game with AD_IDs from Cocos2d-x sample, and it works. Probably it some problem with my AdMob account.