我正在尝试将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)以查看我是否会收到任何错误但是日志输出正好是相同。我有点困惑,我不知道一旦我上线并获得真正的请求,这是否会开始工作?
修改的 我现在已经上线并且正在收到来自真实用户的真实请求,我得到了很多“网络请求”但没有“印象”