Hi,
Though the monetization platform is about to close in this year, I still want to put on Interstitial ads recently.
However, I always got error saying there's no ad for every ad request.
I've tried the test ads, it went well.Then I apply my applicationId & adUnitID, it just not works.
Here's my code,
public sealed partial class HomePage : Page
{
public HomePage()
{
this.InitializeComponent();
this.Loaded += HomePage_Loaded;
Unloaded += HomePage_Unloaded;
videoInterstitialAd = new InterstitialAd();
videoInterstitialAd.AdReady += VideoInterstitialAd_AdReady;
videoInterstitialAd.ErrorOccurred += VideoInterstitialAd_ErrorOccurred;
}
private void VideoInterstitialAd_ErrorOccurred(object sender, AdErrorEventArgs e)
{
CommonTool.SendToast("No Video", e.ErrorMessage);
}
private void VideoInterstitialAd_AdReady(object sender, object e)
{
videoInterstitialAd.Show();
}
private async void HomePage_Loaded(object sender, RoutedEventArgs e)
{
videoInterstitialAd.RequestAd(AdType.Video, myAppId, videoAdUnitId);
//
}
}
Is it because of the fill rate, or do I have done something wrong?
Any help will be appreciated.
Best regards, Mia