【问题标题】:Banner Ad only shows the first time the App launches横幅广告仅在应用程序首次启动时显示
【发布时间】:2018-08-06 19:32:16
【问题描述】:

我在我的游戏中实施了 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

我研究了很长时间,但找不到任何解决方案。

【问题讨论】:

    标签: swift xcode sprite-kit admob


    【解决方案1】:

    你做了第 2 步吗?

    要在此设备上获取测试广告,请调用:request.testDevices = @[@"2077ef9a63d2b398840261c8221a0c9b"];

    您需要确保添加您的设备 UUID。

    https://developers.google.com/admob/ios/test-ads

    如果找不到您的 UUID,请参阅:https://bjango.com/help/iphoneudid/

    获取 UUID 的方法有多种,这只是其中一种。

    【讨论】:

    • 由于某种原因它现在可以工作,但我没有改变任何东西
    • 也许你达到了广告限制
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多