I am having problems getting AdMob ads to show as smart banner ads on Android.
When I create my ads with
CreateAdvert( 0, 1, 2, 0 )
My banner ad shows fine at the bottom of the screen. It's not perfectly centered etc. but at least it shows.
But changing the first parameter to 5 for smart banners (according to https://www.appgamekit.com/documentation/Reference/Advert/CreateAdvert.htm):
CreateAdvert( 5, 1, 2, 0 )
No ad is shown. I went over to AdMob console and tried to create a new ad unit just to see if there was a specific type for smart banners. But no, it is just "banner". Googled it and there seems to be only setting on "banner" which should work for smart banners as well. So that should be fine.
Looking at the logcat console for Android, there is this message:
Not enough space to show ad. Needs 360x50 dp, but only has 320x592 dp
This is for a game in portrait mode. And if I run my other game, which is in landscape mode:
Not enough space to show ad. Needs 592x32 dp, but only has 320x360 dp.
So in the first case (Portrait) the problem seems to be the expectation of AdMob SDK to get 360dp vs getting only 320dp space. In the second one (Landscape) it seems to be completely off. The banner space seems to be broken.
Googling around for this error message it seems to come if there is some layout on screen that prevents the smart banner from getting full screen width size for itself. Given that when using the regular banner, for the same game(s), the regular banner also seems to be offset to the right by what could well be that 40dp, is there maybe some issue with banner ad implementation in AppGameKit?
If I run the same game code with only change being to change my AdMob banner codes to iOS version codes, the smart banner works perfectly well in Portrait mode for iOS. Fills whole screen horizontally. In Landscape mode it leaves an odd large gap on the left hand side on iOS but still shows the ad banner filling most of the screen. The main point being that it shows up at least and maybe even works as intended..
Also there is a mention about using old version of Google Play SDK in the log:
You are using version 9.3 of the Google Play services Ads SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. See http://goo.gl/r2TRzC for instructions on how to get the latest version of Google Play services.
Looking at that URL in this message, the latest Google Play services version seems to be 10.2.xxx. Don't know if that has any impact.
So, are AppGameKit smart banners broken on Android or am I just doing it wrong?