有必要使用addTestDevice吗?
Is it necessary to use addTestDevice?
我使用的是来自 admob 的 testAd ID (ca-app-pub-3940256099942544/1033173712) 而不是我的 admob ID,在移动设备上测试时我是否也需要使用 addTestDevice() ?
它甚至显示了测试广告屏幕,而不是实时广告。
因为我这样做了,我整天都在用我的应用程序进行测试,晚上我收到了帐户暂停邮件。
Interstitial mInterstitial= new InterstitialAd(this);
mInterstitial.setAdUnitId("ca-app-pub-3940256099942544/1033173712");
mInterstitial.loadAd(new AdRequest.Builder().build());
在使用测试id时不需要使用addTestDevice()。只有在使用实时广告时才需要它。您的帐户暂停可能还有其他原因。测试广告 ID 没有 link 到您的 admob 帐户。
在此处查看详细信息https://developers.google.com/admob/android/test-ads
正如他们明确提到的
"The quickest way to enable testing is to use Google-provided test ad units. These ad units are not associated with your AdMob account, so there's no risk of your account generating invalid traffic when using these ad units"
我使用的是来自 admob 的 testAd ID (ca-app-pub-3940256099942544/1033173712) 而不是我的 admob ID,在移动设备上测试时我是否也需要使用 addTestDevice() ? 它甚至显示了测试广告屏幕,而不是实时广告。
因为我这样做了,我整天都在用我的应用程序进行测试,晚上我收到了帐户暂停邮件。
Interstitial mInterstitial= new InterstitialAd(this);
mInterstitial.setAdUnitId("ca-app-pub-3940256099942544/1033173712");
mInterstitial.loadAd(new AdRequest.Builder().build());
在使用测试id时不需要使用addTestDevice()。只有在使用实时广告时才需要它。您的帐户暂停可能还有其他原因。测试广告 ID 没有 link 到您的 admob 帐户。
在此处查看详细信息https://developers.google.com/admob/android/test-ads
正如他们明确提到的 "The quickest way to enable testing is to use Google-provided test ad units. These ad units are not associated with your AdMob account, so there's no risk of your account generating invalid traffic when using these ad units"