Search code examples
c#windows-phone-8adduplex

Adduplex showing error "ad unit configuration error"


I have a Windows Phone App in which I want to integrate Adduplex. I followed the step in their page. But when I run the App it is showing "ad unit configuration error".

I have entered these in MainPage.xaml

xmlns:ad="using:AdDuplex.Universal.Controls.WinPhone.XAML"

and

<ad:AdControl x:Name="adDuplexAd" 
                AppId="72cf2095-a3a4-44b5-94b0-54f7d40d7d25" Margin="0,3,0,0" Canvas.ZIndex="1" VerticalContentAlignment="Top" VerticalAlignment="Top" />

Here is the screenshot of the displayed error:

enter image description here


Solution

  • Fixed the issue. Problem was in the App ID. I had provided Windows Phone store ID instead of App ID provided by ad duplex.

    <ad:AdControl x:Name="adDuplexAd" 
                    AppId="123151" Margin="0,3,0,0" Canvas.ZIndex="1" VerticalContentAlignment="Top" VerticalAlignment="Top" />
    

    enter image description here