Reputation: 1299
My Rewarded and Banner ads from AdMob used to work perfectly. I haven't changed any code. I feel like they stopped working since I pushed my app into Closed Testing. Now no ads ever show anymore, even the Test Ads. I also tried adding my devices as test devices in AdMob, but no luck.
Here's how I create the Banner Ads:
var adView = new AdView(ContextHelper.Current)
{
AdSize = AdSize.SmartBanner,
AdUnitId = Constants.Ads.AdMobBannerUnitId,
LayoutParameters = new LinearLayout.LayoutParams(LayoutParams.WrapContent, LayoutParams.WrapContent)
};
adView.LoadAd(new AdRequest.Builder().Build());
Here's how I create the Rewarded Ads:
private static void CreateRewardedAd()
{
RewardedVideoAd?.Dispose();
RewardedVideoAd = new RewardedAd(ContextHelper.Current, Constants.Ads.AdMobRewardedUnitId);
RewardedVideoAd.LoadAd(new AdRequest.Builder().Build(), new InternalRewardedAdLoadCallback());
}
private class InternalRewardedAdLoadCallback : RewardedAdLoadCallback
{
public override void OnRewardedAdLoaded()
=> base.OnRewardedAdLoaded();
public override void OnRewardedAdFailedToLoad(int p0)
=> base.OnRewardedAdFailedToLoad(p0);
}
And I use Google's Test ID's:
internal const string AdMobBannerUnitId = "ca-app-pub-3940256099942544/6300978111"; // Test Ad Id
internal const string AdMobRewardedUnitId = "ca-app-pub-3940256099942544/5224354917"; // Test Ad Id
Anyone have ANY clue as to what is going on? I have no errors in the AdMob account.
Upvotes: 1
Views: 210
Reputation: 2535
Looks like a google bug. Other developers are having the same problem. I also tried the crazygames ads SDK and the test ads are now failing when they didn't fail a week ago. https://support.google.com/admob/thread/69754742/test-ads-not-showing-with-error-ad-failed-to-load-3?hl=en
Upvotes: 1