AdMob 奖励广告的 ServerSideVerification 上的 fakeForAdDebugLog

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 时,无论上面的用户值如何,userId 字段都是这样的:

    [user_id] => fakeForAdDebugLog

有什么线索吗?

我们遇到了同样的问题。结果(假设您启用了开发人员选项)设备启用了 Network Tracing feature ,因此用户 ID 和 custom_data 更改为 fakeForAdDebugLog。它是为隐私保护而设计的。请禁用网络跟踪,您应该一切顺利