如何确保admob会出现在我的应用中 [英] How can I ensure admob will appear in my app

查看:82
本文介绍了如何确保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,但是在构建广告请求时,您的测试设备应添加到测试设备列表中。

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.

如果您使用的是有效的广告单元ID,则可以确保在您发布应用时展示广告。另外,您可以在Adsense信息中心中检查广告单元是否获得了点击。

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会出现在我的应用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆