real madrid13
real madrid13

Reputation: 21

I cant load admob rewaeded videos in my android app

I am using this code but it always write W/Ads: Failed to load ad: 3 in the logcat..

RewardedVideoAd m2Ad = MobileAds.getRewardedVideoAdInstance(this);
    AdRequest adRequest = new AdRequest.Builder().build();
    m2Ad.loadAd("ca-app-pub-#########", adRequest);  
    if (m2Ad.isLoaded()) {
        m2Ad.show();
    }

Upvotes: 0

Views: 316

Answers (1)

Zeeshan Shabbir
Zeeshan Shabbir

Reputation: 7114

If you are running app in debug mode then you should use these Ad Unit ID according to Google Mobile Ads SDK Team

For Reward Videos, the following are our test Ad Unit ID

iOS - ca-app-pub-3940256099942544/1712485313
Android - ca-app-pub-3940256099942544/5224354917

Note that Reward Video Ad Unit IDs are platform specific.

Upvotes: 1

Related Questions