- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
直到昨天晚上,AdMob 测试广告运行良好,但突然停止运行。我已经尝试了针对类似问题提出的所有解决方案,但我仍然遇到相同的错误:
WF: === Starting WebFilter logging for process
WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
noOverridingAllowed = 1;
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
WF: _WebFilterIsActive returning: NO
<Google> Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.
我认为代码是正确的,并且我使用的是 Google 提供的正确测试 ID。我在装有 iOS12 的测试设备上运行代码,并且我已将 Google 移动广告 SDK 更新到最新版本:7.33.1。
这是我正在使用的代码:
应用委托(delegate):
func application(_ application:UIApplication,didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {GADRequest().testDevices = [ "2077ef9a63d2b398840261c8221a0c9b" ]
GADMobileAds.configure(withApplicationID: "ca-app-pub-3940256099942544~1458002511")
GADRewardBasedVideoAd.sharedInstance().delegate = self
GADRewardBasedVideoAd.sharedInstance().load(GADRequest(), withAdUnitID: "ca-app-pub-3940256099942544/1712485313")
return true
}
func rewardBasedVideoAd(_ rewardBasedVideoAd: GADRewardBasedVideoAd, didRewardUserWith reward: GADAdReward) {
let firstController = window?.rootViewController as! ViewController
firstController.plusOneLife()
}
func rewardBasedVideoAdDidClose(_ rewardBasedVideoAd: GADRewardBasedVideoAd) {
GADRewardBasedVideoAd.sharedInstance().load(GADRequest(), withAdUnitID: "ca-app-pub-3940256099942544/1712485313")
}
func rewardBasedVideoAd(_ rewardBasedVideoAd: GADRewardBasedVideoAd,
didFailToLoadWithError error: Error) {
print("Reward based video ad failed to load.")
}
View Controller :
@IBAction func watchAd(_ sender: Any) {
if GADRewardBasedVideoAd.sharedInstance().isReady == true {
GADRewardBasedVideoAd.sharedInstance().present(fromRootViewController: self)
}
}
有没有人有解决办法?
最佳答案
我相信你和我有同样的问题,这是在谷歌的一端。
我已经联系了他们,您可以在下面的链接中查看进度
https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/ios/f-W_HmEndw4
关于xcode - iOS12 adMob 奖励视频 : test ad not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52444620/
我喜欢我正在设计的网站的徽章和成就的概念。它们已被证明可以提高使用率/利用率,我认为这可能是我想要开发的应用程序的一大动力。 在高层次上,我可以想到 3 种方法来做到这一点。 检查满足作为 cron
我正在用ARKit做一些实验,并试图在iPhone 5S中运行,只是想看看会发生什么: 我在Xcode 9.0 beta 6中收到此错误: “ARDemo”需要iPhone不支持的“ARKit”功能
我们在 OptaPlanner 的 XML 文件中为类(class)问题添加负软约束,例如 0 但是
不知何故,从一个应用程序发布到另一个,org.json 库的内部结构崩溃了。它无法再将键的内容作为字符串读取。下面是一个代码示例,该代码在启用 minify/R8/proguard 时可以正常工作并且
我们有一个场景,我们希望允许用户将图像上传到网站。我们在 ASP.Net 上运行。 快速搜索并没有找到任何好的结果。如果该控件是免费/开源的,那就太好了,但我们不介意支付一点费用。 最佳答案 我强烈推
我正在尝试使用 Electron 框架在 macOS 上创建通知。我已经从 GitHub 克隆了开源快速入门,我的 renderer.js 进程中的唯一代码如下: var myNoti
我想知道 Google Pay 如何在“您的奖励”页面的 GridView 中显示不同类型的卡片。我正在尝试开发像 Google Pay 这样的卡 最佳答案 有许多库可用于开发 Google Pay
我觉得是时候从Webforms升级到MVC了。我已经编写了Webforms和jquery很长时间了。 你们都可以建议您喜欢的资源来学习这项技术吗? 奖励:我对使用ViewModel(不一定是MVVM框
我是一名优秀的程序员,十分优秀!