Search code examples
xamlwindows-store-appsuwpads

AdControl not show ads


in my application I have the following code:

 <UI:AdControl x:Name="ban2" Grid.Row="1" ApplicationId="xx"
                  AdUnitId="xx"
                  HorizontalAlignment="Center"
                  Height="80"
                  VerticalAlignment="Center"
                  Width="480"></UI:AdControl>

When using the test aplicationid and adunitId working properly, but when I go to replace with aplicationid and adunitId of my application created in the dev center no longer displays advertising. thank you


Solution

  • If you don't publish your app in the store, the Application Id and Adunit Id will do not work.

    So I would like to suggest you use test Application Id and AdUnit Id to test when you create your project. if you want to package your project and submit in the store, you just need to replace test value with real value(Apply for in the dashboard).

    Normally, if your app is published and available in the store, it takes 1-2 days after that for ads from real units to start serving and ads will show.