Admob Reward Video Ads does not work with test devices

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") // 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();
}
+4
source share
1 answer

I repeated this in November 2017, and the flag of the test device now works with award-winning video ads.

, post:

" , , :

iOS - ca-app-pub-3940256099942544/1712485313

Android - ca-app-pub-3940256099942544/5224354917

, Reward "

+7

Source: https://habr.com/ru/post/1672250/


All Articles