AdMob test ads shows only on English devices(AdMob 测试广告仅在英文设备上展示)
问题描述
After I installed Google Play Services APIs 6.4.1 to insert banners in my app, i had hard times to make it work.
On my test device (nexus-S mounting JB 4.1.2, language set to Italian) i don't see any ads, with this logcat:
01-27 13:22:55.518: I/Ads(3463): Use AdRequest.Builder.addTestDevice("2CF3523D47F0CFC8A7523B041D9BB325") to get test ads on this device.
01-27 13:22:55.522: I/Ads(3463): Starting ad request.
01-27 13:23:43.998: I/Ads(3463): No fill from ad server.
01-27 13:23:44.409: W/Ads(3463): Failed to load ad: 3
When i run it on a JB 4.2.1 Nexus 7 with language set to English(us) it works until i change language (Settings->Language&input->Language) to Italian, then i cannot see ads anymore.
It looks like there are no ads for non-english languages, but this happens for both test and real ads.
Tried also with emulators, running GB 2.3.3 and JB 4.3, both display ads if language is set to English, both stop displaying ads if i change language.
Here's the code i use inside onCreate()
adView = (AdView)(view.findViewById(R.id.adView));
adRequest = new AdRequest.Builder()
.addTestDevice("TEST_DEVICE_ID")
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("2CF3523D47F0CFC8A7523B041D9BB325") // nexus S
.addTestDevice("9C75E9349CF38EF5EB2C6C6100E96A7E") // nexus 7
.build();
adView.loadAd(adRequest);
How can i make admob work also on non-english devices?
I'm gonna answering myself, because it started working without any modification.
Ads have been displayed almost instantly for english devices, while, for some AdMob related reasons, to see ads in italian devices i had to wait for 4 (FOUR!!) days!
So, the answer is: just wait.
Hope this helps.
这篇关于AdMob 测试广告仅在英文设备上展示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:AdMob 测试广告仅在英文设备上展示


基础教程推荐
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01