I’ve been trying to get AdMob working with the Prime31 plugin for Android. And I actually had it working for a while, with a banner showing. Then suddenly it just didn’t appear anymore, and I can’t for the life of me see what I’ve done differently. I’m currently using the example implementation that came with the plugin (AdMobAndroidBanner), and that’s what was working before as well.
Logcat tells me this when I run the game:
I/Prime31 ( 2838): requested adSize enum value: 0
D/Prime31 ( 2838): creating ad banner with leftMargin:topMargin: 160:0
V/Unity ( 2838): Non platform assembly: /assets/bin/Data/Managed/Boo.Lang.dll (this message is harmless)
I/Ads ( 2838): To get test ads on this device, call adRequest.addTestDevice("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
I/Ads ( 2838): adRequestUrlHtml: <html><head><script src="http://www.gstatic.com/afma/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":0,"u_sd":1.5,"slotname":"xxxxxxxxxxxx","u_w":533,"msid":"se.xxxxxxxxxxxxxxx.xxxxxx","js":"afma-sdk-a-v4.1.0","isu":"xxxxxxxxxxxxxxxxxxxxxxxxxx","format":"320x50_mb","net":"wi","app_name":"2.android.se.xxxxxxxxxxxxxxx.xxxxx","hl":"en","u_h":320,"u_audio":3,"u_so":"l"});</script></head><body></body></html>
D/dalvikvm( 984): GC_EXPLICIT freed 4K, 50% free 2731K/5379K, external 1625K/2137K, paused 592ms
I/Ads ( 2838): Received ad url: <"url": "http://r.admob.com:80/ad_source.php?preqs=0&u_sd=1.5&slotname=xxxxxxxxxxxx&u_w=533&msid=se.xxxxxxxxxxxxxxxxxxxx.xxxxx&js=afma-sdk-a-v4.1.0&isu=xxxxxxxxxxxxxxxxxxxxx&format=320x50_mb&net=wi&app_name=2.android.se.xxxxxxxxxxxx.xxxx&hl=en&u_h=320&u_audio=3&u_so=l&output=html®ion=mobile_app&u_tz=-120&ex=1&client_sdk=1", "afmaNotifyDt": "null">
D/dalvikvm( 2838): GC_CONCURRENT freed 707K, 47% free 3557K/6663K, external 2006K/2137K, paused 6ms+3ms
D/webviewglue( 2838): nativeDestroy view: 0x76da00
D/webviewglue( 2838): nativeDestroy view: 0x739da0
I/Ads ( 2838): onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory.)
D/Prime31 ( 2838): onFailedToReceiveAd. errorCode: Ad request successful, but no ad returned due to lack of ad inventory.
V/Unity ( 2838): SendMessage: object AdMobAndroidManager not found!
I’m really lost at where I should even begin to look, as all the example projects that was working before also seems to have stopped working. Any help is appreciated!