英文:
fakeForAdDebugLog on ServerSideVerification for AdMob RewardedAd
问题
以下是翻译好的内容:
悬赏广告的SSV URL回调在UserId和CustomData上都被调用了假数据,而且它始终是"fakeForAdDebugLog"。
首先,我使用以下代码加载了悬赏广告:
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
有什么线索吗?
英文:
The SSV URL Callback for my rewarded ads gets called with fake data on both UserId and CustomData, and its always "fakeForAdDebugLog".
First I load the rewardedAd with this code
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);
}
});
Then I show it with this one
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);
}
});
The app side of things works like a charm, onUserEarnedReward gets properly called and everything. However, when the url gets called, this is what the userId field is regardless of the value of user above:
[user_id] => fakeForAdDebugLog
Any clues?
答案1
得分: 1
我们遇到了相同的问题。原来(假设您已经启用了开发者选项),设备已启用了网络跟踪功能,因此用户 ID 和 custom_data 已更改为 fakeForAdDebugLog。这是为了隐私保护而设计的。请禁用网络跟踪,然后您应该可以正常运行。
英文:
We had the same issue. Turns out (assuming you have developer options enabled) the device is enabled with Network Tracing feature , so user id and custom_data changed to fakeForAdDebugLog. It is by design for privacy protection. Please disable the Network Tracing and you should be good to go
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论