简体   繁体   English

AdMob停用测试广告(iOS)

[英]AdMob disabling test ads (iOS)

I just signed up for AdMob and have got it working in my app with test advertisements (using the simulator and my iPhone). 我刚刚注册了AdMob,并通过测试广告(使用模拟器和iPhone)使其在我的应用中正常运行。 I was wondering if you need to disable test ads somehow before publishing to the App Store? 我想知道您是否需要在发布到App Store之前以某种方式禁用测试广告?

Also, should you remove the test devices code? 另外,您应该删除测试设备代码吗? Eg 例如

request.testDevices = @[ @"My_iPhone", kGADSimulatorID ];

You don't need to remove the test devices before you can publish. 在发布之前,您不需要删除测试设备。 Its optional. 它是可选的。

The kGADSimulatorID is for your emulator. kGADSimulatorID适用于您的仿真器。 keeping there there will not make any different. 保持在那里不会有任何不同。 If you added your physical device as another test id, and want to get live ads now on that device, remove that. 如果您将物理设备添加为另一个测试ID,并且现在想在该设备上获取实时广告,请删除该设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM