We want to integrate Reward Video Ads in our app (https://firebase.google.com/docs/admob/android/rewarded-video).
The ads work great if we don't provide the test device. However, if we do, we receive error code 0
aka ERROR_CODE_INTERNAL_ERROR
, so the execution goes through onRewardedVideoAdFailedToLoad
.
Is this something somebody else has encountered?
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_video_ad);
MobileAds.initialize(this, APP_ID);
mAd = MobileAds.getRewardedVideoAdInstance(this);
mAd.setRewardedVideoAdListener(this);
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice("C67A1A9F2F19699874B7718074819FF9") // Test devices don't work work with rewarded video ads.
.build();
mAd.loadAd(AD_UNIT_ID, adRequest);
}
@Override
public void onRewardedVideoAdFailedToLoad(int errorCode) {
Toast.makeText(this, "onRewardedVideoAdFailedToLoad", Toast.LENGTH_SHORT).show();
}