Hi. You probably can’t show ads because you try to show them before it’s actually cached(ad received). Could you try to implement sdkbox admob listeners, and when the ad received, show it:
That’s exactly what was happening. The banner must not have been cached yet. I added the show into the delegate method and now it’s showing up.
Thanks nite, for letting me know that the ad needed to be cached first. That doesn’t seem it be in the documentation anywhere and I was effectively omitting to do so.
C:\projects\cocos2dx\shipwreck>sdkbox update
_______ ______ _ _ ______ _____ _ _
|______ | \ |____/ |_____] | | \___/
______| |_____/ | \_ |_____] |_____| _/ \_
Copyright (c) 2015 SDKBOX Inc. v1.0.0.7
A newer version of SDKBOX is available, would you like to update v1.0.0.7 to v1.0.0.9?
Type [Y]es, [n]o or [q]uit
y
[###################################] 100%
SHA1 of update does not match
Found : df2321aa346efae7988f0bff9f2aa83f7367c8ee
Needed : 8f5fa467ace39e9cfb1b18db53a221bca7eadf87
Installation failed :(
Here I would get message saying that request was ignored probably because PluginAdMob was not fully initialized.
I then called the cache function later and tried. However it did not work either.
I also noticed this error thrown from the Firebase that I had previously integrated and same error is also displayed from the callback adViewDidFailToReceiveAdWithError.
errro:Request Error: No ad to show.
My config code is as follows.
"AdMob": {
"test":true,
"ads": {
"extratime":{
"id":"some id here",
"type":"rewarded_video"
},
"freetokens":{
"id":"some id here",
"type":"rewarded_video"
},
"doubletokenreward":{
"id":"some id here",
"type":"rewarded_video"
}
}
},
Apart from the above error, I do not see any other error related to ads.
I also tried to display test ads using test ad unit ids yet I get the same error.
There was some issue in configuring Ad Mob and that was resolved yesterday. I was provided with new Ad Unit IDs but even with those IDs, I am not able to view any ad. How long should I wait after a new Ad Unit gets created in order to view ads using that Ad Unit ID ??