How can I ensure admob will appear in my app(如何确保 admob 出现在我的应用程序中)
问题描述
我们知道,Google 要求我们在开发应用时使用测试设备和测试广告单元 ID.但是,我想知道是否存在我可以看到真实的广告,因为我怕我在发布前更改代码和广告ID后就没有广告了.我成功看到了测试广告,然后我更改了代码和广告id,然后将我的应用程序提交到beta测试,但是测试人员说没有显示任何广告,这是正常的,还是我的代码有错误或广告单元 ID.感谢您的帮助!
As we know, google requires us to use test device and test ad unit id, when we develop the app. However, I want to know that if there exists anyway that I can see the real ad, because I am afraid that no ad will show after I change the code and ad id before release. I have successfully seen test ad, and then I changed the code and ad id, and then submit my app to beta testing, but the tester said that no ad was shown, is it normal, or I have made some mistake in my code or ad unit id. Thank you for your help!
下面是我的广告相关代码,我改了广告id
Below is my ad-related code, and I have changed the ad id
mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
推荐答案
您甚至可以使用实际的广告单元 ID 进行开发,但您的测试设备应在构建广告请求时添加到 TEST DEVICES 列表中.
You can use actual ad unit id even for development, but your test devices should be added to the list of TEST DEVICES when you build your ad request.
p>
如果您使用的是有效的广告单元 ID,则可以确保在您发布应用时展示广告.此外,您可以在 Adsense Dashboard 中检查您的广告单元是否获得了点击.
If it's a valid ad unit id that you are using, you can be sure that ads will appear when you publish your apps. Also, you can check if you are getting hits for your ad unit in Adsense Dashboard.
如果你想完全确定,你可以尝试在另一台设备上安装 apk,测试它,然后在看到广告时发布它.
If you want to be dead sure, you can just try to install the apk on another device, test it, and then publish it when you see the ads.
这篇关于如何确保 admob 出现在我的应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何确保 admob 出现在我的应用程序中
基础教程推荐
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01