如何解决AdMob RewardedAd的ServerSideVerification上的fakeForAdDebugLog
我的奖励广告的SSV URL回调在UserId和CustomData上均带有假数据,并且始终为“ fakeForAdDebugLog”。
首先,我用此代码加载rewardedAd
Log.e("SDL-Ads","SETTING UP REWARDED");
rewardedAd = new RewardedAd(mSpawner,adid);
ServerSideVerificationoptions serverSideVerificationoptions = new ServerSideVerificationoptions.Builder().setUserId(user).build();
rewardedAd.setServerSideVerificationoptions(serverSideVerificationoptions);
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice("F3E00308CE83B95F00BF326CB047EBDD")
.build();
Log.e("SDL-Ads","UserID: "+serverSideVerificationoptions.getUserId());
rewardedAd.loadAd(adRequest,new RewardedAdLoadCallback() {
@Override
public void onRewardedAdLoaded() {
Log.e("SDL-Ads","REWARDED LOADED");
me.Firebase_RewardedLoaded(1);
}
@Override
public void onRewardedAdFailedToLoad(LoadAdError adError) {
Log.e("SDL-Ads","REWARDED Failed");
me.rewardedAd = null;
me.Firebase_RewardedLoaded(0);
}
});
然后我用这个展示它
Log.e("SDL-Ads","WILL SHOW REWARDED");
me.rewardedAd.show(mSpawner,new RewardedAdCallback() {
@Override
public void onUserEarnedReward(RewardItem ri) {
Log.e("SDL-Ads","onUserEarnedReward");
}
@Override
public void onRewardedAdClosed() {
Log.e("SDL-Ads","onRewardedAdClosed() RELOAD");
me.rewardedAd = null;
me.Firebase_RewardedLoaded(-1);
}
});
应用程序方面的工作就像一个超级按钮,onUserEarnedReward会被正确调用,并且一切正常。但是,当调用该url时,无论上面的user值如何,这都是userId字段:
[user_id] => fakeForAdDebugLog
有任何线索吗?
解决方法
我们有同样的问题。原来(假设您已启用开发人员选项)使用Network Tracing feature启用了设备,因此用户ID和custom_data更改为fakeForAdDebugLog。它是为保护隐私而设计的。请禁用网络跟踪,您应该一切顺利
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。