I have a Windows Phone 8.0 app. I've downloaded AdRotator (v. 2.1.1) in NuGet and AdDuplex (it's dependency). I've downloaded AdMob SDK and referenced it in my project. Then I've added control to my MainPage.xaml:
<adRotator:AdRotatorControl
x:Name="AdRotatorControl"
BorderBrush="Aquamarine"
BorderThickness="2"
Height="90"
Grid.Row="2"
LocalSettingsLocation="/Assets/AdSettings/Settings.xaml"
AutoStartAds="True" />
Note: Border and height is there only because I want make sure that control is showing in proper place. It seems it is.
And than I put settings file to /Assets/AdSettings/Settings.xaml:
<?xml version="1.0" encoding="utf-8"?>
<AdSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CultureDescriptors CultureName="">
<AdMob AppId="XXXXXX" Probability="50" AdOrder="1" />
<AdDuplex AppId="XXXXX" Probability="50" AdOrder="2" />
</CultureDescriptors>
</AdSettings>
My AppId's are definitely OK but the control doesn't show any ads. So tried couple of things:
- Changed Settings.xaml build action to Content or Resource. In both cases - no effect.
- Removed AdMob from settings - no effect (allegedly problematic provider).
- Attached to AdRotatorReady events - it fires but doesn't provide any details.
The worst thing that AdRotator doesn't provide any "Error" event so I have no idea where the problem is. Trying to figure out what is happening I've found something suspicious: IsLoaded and IsInitialised properties are both set to false. Also PlatformAdProviderComponents has no items. I'm testing everything on WP8.1 device, not emulator.