We want to integrate Reward video ads in our application ( https://firebase.google.com/docs/admob/android/rewarded-video ). Ads work just fine if we don’t provide a test device. However, if we do this, we get error code 0aka ERROR_CODE_INTERNAL_ERROR, so execution goes through onRewardedVideoAdFailedToLoad.
Is this something else someone has met?
@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")
.build();
mAd.loadAd(AD_UNIT_ID, adRequest);
}
@Override
public void onRewardedVideoAdFailedToLoad(int errorCode) {
Toast.makeText(this, "onRewardedVideoAdFailedToLoad", Toast.LENGTH_SHORT).show();
}
source
share