如何关闭Admob测试 [英] How do I turn off admob testing

查看:104
本文介绍了如何关闭Admob测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近几天我一直在使用admob,无法弄清楚如何关闭admob测试模式。我尝试了网站中的设置,但是我仍然收到测试广告,并且这些广告完全无法在我的手机上运行。 Log cat不断告诉我将手机添加为测试设备。好吧,我正在测试中,我只想让一切正常运行。

I have been working with admob for the last few days and can not figure out how to turn off admob testing mode. I tried the settings in the website but i still get test ads and they flat out wont run on my phone. Log cat keeps telling me to add my phone as a testing device. Well I'm through testing, I just want to get things up and running live.

推荐答案

您可以通过以下两种方法可以关闭测试模式。

There are a couple of ways you can turn off the testing mode.


  1. 如果您正在使用XML创建广告,那么您的XML中就会有类似这: ads:testDevices = TEST_EMULATOR,THE_DEVICE_ID

如果您正在使用JAVA创建广告,您可能会有类似这样的内容:

If you are creating Ad's using JAVA, you might have something that looks like this:

AdRequest.setTestDevices(new String [] {

AdRequest.TEST_EMULATOR,
THE_DEVICE_ID ,//我的测试设备ID
});

AdRequest.setTestDevices( new String[] {
AdRequest.TEST_EMULATOR, "THE_DEVICE_ID", // My Test Device ID } );

注意:我不是亲自使用Java创建广告,因此您将不得不对此进行一些探讨

NOTE: I do not personally create my Ads using Java, so you will have to probe that a bit

附带注意事项:我个人总是依靠第三种选择。帮我省去了大约65个奇数XML并删除测试设备ID的工作。

A SIDE NOTE: I personally always rely on the 3rd option. Saves me the effort of going through literally about 65 odd XML's and removing my test device ID's.

这篇关于如何关闭Admob测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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