0

我正在尝试将 Chartboost 添加到我当前使用 Admob 工作的设置中(奖励视频和插页式广告)。我遵循了 Admob 的文档:https ://developers.google.com/admob/unity/mediation/chartboost

我可以在 Admob 中介报告中看到中介组正在工作,我收到了对 Chartboost 的网络请求。但我没有在 Chartboost 上拿到 SDK 贴纸(表明 SDK 已集成)。如果您将 Chartboost 用作独立服务,则在添加您应该使用的代码行之前,我无法让它工作:

@Override
public void onCreate() {
    super.onCreate();
    Chartboost.startWithAppId(this, appId, appSignature);
    Chartboost.onCreate(this);
    }   
}

现在我拿到了 SDK 贴纸,但我读到你不应该那样做,Admob 应该在后台处理这一切,所以我把它改回来了。

我根本没有收到任何错误消息。这是我在日志中看到的:

12-16 16:49:45.344 21656-21656/? I/Ads: Starting ad request.
12-16 16:49:45.344 21656-21656/? I/Ads: Use AdRequest.Builder.addTestDevice("B5E99B74D22121F11E46D7C4714806A0") to get test ads on this device.
12-16 16:49:45.364 21656-21706/? W/Ads: Invoke Firebase method getInstance error.
12-16 16:49:45.374 21656-21706/? W/Ads: The Google Mobile Ads SDK will not integrate with Firebase. Admob/Firebase integration requires the latest Firebase SDK jar, but Firebase SDK is either missing or out of date
12-16 16:49:45.384 21656-21656/? I/Ads: Starting ad request.
12-16 16:49:45.384 21656-21656/? I/Ads: Use AdRequest.Builder.addTestDevice("B5E99B74D22121F11E46D7C4714806A0") to get test ads on this device.
12-16 16:49:47.404 1548-21811/? W/Ads: App does not have the required permissions to get location
12-16 16:49:47.754 21656-21656/? W/Ads: Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-xxx\/xxx\/cak=no_cache&cadc=lm&caqid=xxx"}
12-16 16:49:47.754 21656-21656/? W/Ads: Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-xxx\/xxx\/cak=no_cache&cadc=lm&caqid=xxx"}
12-16 16:49:47.764 21656-21656/? I/Ads: Starting ad request.
12-16 16:49:47.764 21656-21656/? I/Ads: Use AdRequest.Builder.addTestDevice("B5E99B74D22121F11E46D7C4714806A0") to get test ads on this device.
12-16 16:49:48.174 21656-21921/? I/Ads: Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CUyxVnEA1WpziGY2B6gS04IKwAvnJ2qYF0e-FupIBABAIIILf4CZg8a38haQfqQIAAAAAgIQuQagDAaoEKk_Qz9GbpjZwuQkLYYaQ6CeGyH_RDbbSf2H8VjsxjAPreW2a9o02X10ACJAGAcAGC4AHgfipMJgHAdIIBwiMQxABGAI&num=1&cid=CAASBORo9I4&sig=AOD64_0lsBVscqSZ84s_pWXdpTQQwsp2Gw&adurl=http://example.com
12-16 16:49:48.184 21656-21656/? I/Ads: Instantiating mediation adapter: com.google.ads.mediation.chartboost.ChartboostAdapter
12-16 16:49:48.184 21656-21921/? I/Ads: Trying mediation network: 
12-16 16:49:48.184 21656-21656/? I/Ads: Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
12-16 16:49:48.184 21656-21656/? W/Ads: Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-xxx\/xxx\/cak=no_cache&cadc=lm&caqid=xxx"}
12-16 16:49:48.204 21656-21656/? I/Ads: Starting ad request.
12-16 16:49:48.204 21656-21656/? I/Ads: Use AdRequest.Builder.addTestDevice("B5E99B74D22121F11E46D7C4714806A0") to get test ads on this device.
12-16 16:49:51.744 21656-21656/? I/Ads: Ad finished loading.
12-16 16:49:51.744 21656-21656/? I/Ads: Ad finished loading.
12-16 16:49:51.754 21656-21656/? I/System.out: Ads: Succeeded to load video ad
12-16 16:49:52.474 21656-21656/? I/Ads: Ad finished loading.
12-16 16:49:52.484 21656-21656/? I/Ads: Ad finished loading.

我认为我没有收到错误消息很奇怪,所以我删除了适配器库(我保留了 chartboost.jar,但没有保留 *.aar),以查看我是否会收到任何错误,但日志输出完全相同。我有点困惑,我不知道这是否会在我上线并收到真正的请求后才开始工作?

编辑 我现在已经上线并收到来自真实用户的真实请求,我收到很多“网络请求”但没有“印象”

在此处输入图像描述

4

1 回答 1

0

您可以尝试的一件事是通过手动设置非常高的 eCPM(单击网络实例旁边的铅笔图标),将 Chartboost 优先于 AdMob。这将迫使 Chartboost 到达瀑布的顶部,您将能够确保广告通过。见下图...

您需要做的就是关闭优化并将 eCPM 从 5 美元设置为 99 美元左右。

关闭优化并将有效每千次展示费用从 5 美元设置为 99 美元左右 最好的,
埃德

于 2017-12-19T00:25:24.950 回答