There's no any Interstitial Ad in my app.

Mia 96 Reputation points
2020-02-15T03:57:10.03+00:00

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

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Mia 96 Reputation points
    2020-04-07T02:58:24.957+00:00

    Update:

    I found that I changed the package name for test use, and I guess that makes ApplicationId not consist with my package?
    I changed the package name back and the AdType, and it works then.

    However, I have two apps, and they always show same videos, which are different from each other. One shows the XBox, the other shows Oyun.fr.
    Same with Interstitial Banners, one always show the red testing Microsoft banner, while the other shows real-time interstitial banner.

    Anyway, at least it returns ads rather than error now.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,051 Reputation points Microsoft Vendor
    2020-02-17T03:37:47.333+00:00

    Hello,

    Welcome to Microsoft Q&A!

    For questions about AD SDK, they are not fully supported in Microsoft Q&A. Please ask questions about AD SDK in AdSDK Integration & Ad Mediation Forum in MSDN.

    And for your question, could you please check the first parameter of the RequestAd method? It should be AdType.Display instead of AdType.Video for interstitial ad.

    Thank you.

    0 comments No comments