Hi all,
I'm testing admob interstitial ads for my game using sample ad units (
https://developers.google.com/admob/android/test-ads) and I have a problem.
This is my code flow:
-> Play some levels
-> load ad
-> if received show ad (this happened)
-> play some levels more
-> load ad
-> nothing happened ( no error, no received, nothing)
If i shutdown the game and launch again, happen the same: first time load ad, and next time nothing happened.
Same code flow works with chartboost, and load ad every time i call loadAd function.
Thanks a lot.
Comments
Likes: theone10
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
No
Event.AD_DISPLAYED - The event writes something, I don't remember
Likes: theone10
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
This is logcat, maybe the error produces not load anymore?
10-22 22:24:35.556 21342-21342/? I/Ads: Updating ad debug logging enablement.
10-22 22:24:35.582 21342-21342/? I/Ads: Use AdRequest.Builder.addTestDevice("*******************************") to get test ads on this device.
10-22 22:24:35.724 21342-21747/? W/Ads: Update ad debug logging enablement as false
10-22 22:24:37.484 4130-15950/? W/Ads: App does not have the required permissions to get location
10-22 22:24:37.749 4130-21831/? E/Ads: Error waiting for future.
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:177)
at com.google.android.gms.ads.internal.util.future.f.a(:com.google.android.gms@19528017@19.5.28 (040306-273329419):5)
at com.google.android.gms.ads.cache.k.a(:com.google.android.gms@19528017@19.5.28 (040306-273329419):3)
at com.google.android.gms.ads.nonagon.signals.gmscore.o.call(:com.google.android.gms@19528017@19.5.28 (040306-273329419))
at bqbs.b(:com.google.android.gms@19528017@19.5.28 (040306-273329419))
at bqaq.run(:com.google.android.gms@19528017@19.5.28 (040306-273329419):7)
at bqbt.run(:com.google.android.gms@19528017@19.5.28 (040306-273329419):1)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
10-22 22:24:37.892 4130-21831/? I/Ads: SDK version: afma-sdk-a-v18479999.12451000.1
10-22 22:25:16.841 21342-21342/? I/Ads: Use AdRequest.Builder.addTestDevice("*********************************************") to get test ads on this device.
10-22 22:25:17.011 21342-21342/? W/Ads: #004 The webview is destroyed. Ignoring action.
10-22 22:25:17.011 21342-21342/? W/Ads: #004 The webview is destroyed. Ignoring action.
10-22 22:25:17.016 21342-21342/? W/Ads: #004 The webview is destroyed. Ignoring action.
10-22 22:25:17.016 21342-21342/? W/Ads: #004 The webview is destroyed. Ignoring action.
10-22 22:25:17.019 21342-21342/? W/Ads: #004 The webview is destroyed. Ignoring action.
10-22 22:25:17.019 21342-21342/? W/Ads: #004 The webview is destroyed. Ignoring action.
10-22 22:25:17.042 4130-21833/? W/Ads: App does not have the required permissions to get location
10-22 22:25:17.343 4130-22008/? I/Ads: SDK version: afma-sdk-a-v18479999.12451000.1
Plugins: Gaming 16.0.0 + Admob 16.0.0
Advertising class:
Ad serving:
Likes: theone10, MoKaLux, plicatibu
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I introduced set key wrong (with test ads), the error was because of that.
Ads not showed anymore because I was loading ads anytime i want to show an ad, but ad already loaded, so i just have to put showad.
Thanks again
Likes: oleg, MoKaLux