我在游戏中实现了AdMob框架,并使用横幅广告和插页式广告。插页式广告效果很好,但横幅广告仅在我删除游戏并首次启动时才显示。同样,当我第一次启动该应用程序时,也会在控制台中收到以下消息:
2018-08-06 21:34:53.778721+0200 game_name[12227:3101070] <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.
但是当我重新启动该应用程序时,横幅广告不再显示,并且在控制台中我收到了很多(大约10条)错误消息:
2018-08-06 21:23:40.020162+0200 game_name[12216:3098401] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
以及一些类似这样的错误消息:
2018-08-06 21:23:36.079086+0200 game_name[12216:3098395] ADD: failed to create cache dictionary at path=/private/var/mobile/Containers/Data/Application/2CC7FA65-F793-45FA-BD7D-56F1BF847705/Library/Caches/my_name.game_name. key=0x282602b50
我已经研究了很长时间,但找不到任何解决方案。
答案 0 :(得分:0)
您是否执行了步骤2?
要在此设备上获取测试广告,请致电:request.testDevices = @ [@“ 2077ef9a63d2b398840261c8221a0c9b”];
您需要确保添加设备的UUID。
https://developers.google.com/admob/ios/test-ads
如果找不到您的UUID,请参阅:https://bjango.com/help/iphoneudid/
有多种获取UUID的方法,这只是其中一种。