ios - AdMob 在已发布的应用程序中显示测试插页式广告

标签 ios objective-c admob

我已将 AdMob 插页式广告添加到我的 iOS 应用程序中,它们在模拟器上运行良好,显示了测试插页式广告。但是,在 App Store 上发布我的应用程序后,我意识到插页式广告仍然显示测试插页式广告,而不是实时/付费插页式广告。我在这里错过了什么吗?

最佳答案

听起来您忘记从您的 AdMob 请求中删除您的测试 ID。您的请求应如下所示:

// AdMob Interstitial Request
interstitial.adUnitID = myPublisherID; // Your publisher ID
GADRequest *request = [GADRequest request]; // Creates the request
request.testDevices = @[ @"myTestID"]; // Your test ID
[interstitial loadRequest:request]; // Loads the request

删除或注释掉 request.testDevices = @[ @"myTestID"] 并为您的应用程序提交更新。

关于ios - AdMob 在已发布的应用程序中显示测试插页式广告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30029287/

相关文章:

ios - 使用 NSAttributedString 为 UITextView 中的文本着色真的很慢

ios - JSOG API 对象的 RestKit 映射

ios - 突出显示时的 Swift UIButton 淡色文本

ios - NSLocalizedString 有时会加载字符串,但并非总是如此

mobile - 我无法让 Admob 内部广告显示在我的移动应用中

ios - 防止顶部 UiTableViewCell 滚动

c++ - OpenGL ES - 纹理球体

objective-c - NSButton如何为文本着色

ios - swift 编译时出现 Admob 错误

javascript - 在 JavaScript 中有多个等待?