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。它是为保护隐私而设计的。请禁用网络跟踪,您应该一切顺利