Reputation: 1464
I'm using AdRotator in my WP8 app, and while AdDuplex ads display just fine, PubCenter ads are not displaying. I saw that it was normal it does not appear in emulator. But I tested "device" mode and it does not appear either. I also tried to publish my app with 50/50 parameter for AdDuplex and PubCenter, and the only advertisements we see are those of AdDuplex.
Note that I use AdDuplex version 2.1.0-Beta1.
Here's my xaml:
<adRotator:AdRotatorControl
x:Name="AdRotatorControl"
Grid.Row="3"
AdHeight="80" AdWidth="480"
Margin="-12,253,0,-243"
LocalSettingsLocation="defaultAdSettings.xml"
AutoStartAds="True" />
And the 'defaultAdSettings.xml' file :
<?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="">
<AdDuplex AppId="950XX" Probability="50"/>
<PubCenter AppId="767b12XX-bcXX-41XX-a5XX-333ba4afb0XX" SecondaryId="107299XX" Probability="50"/>
</CultureDescriptors>
</AdSettings>
Even if I specify the parameters 100 (pubCenter) / 0 (AdDuplex) nothing appears. And i have checked thoses capabilities :
<Capability Name="ID_CAP_IDENTITY_USER"/>
<Capability Name="ID_CAP_MEDIALIB_PHOTO"/>
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_CAP_PHONEDIALER" />
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
Someone would have an idea why my PubCenter ads do not appear?
Upvotes: 1
Views: 689
Reputation: 1464
I found the solution by myself after long searches. To use "pubCenter" with "AdRotator", the following points should be well done:
1) Having checked the Capacities
<Capability Name="ID_CAP_IDENTITY_USER"/>
<Capability Name="ID_CAP_MEDIALIB_PHOTO"/>
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_CAP_PHONEDIALER" />
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
2) Add reference to the Microsoft Advertising SDK
My mistake here was to have forgotten the reference to the SDK. But now everything works fine :)
Upvotes: 1