Reputation: 21
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
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