This project is read-only.

Pubcenter Ads in AdRotator V2

Jan 16, 2014 at 12:23 AM

Am I missing anything? I am able to see test ads for pubcenter in AdRotator v2, but not real ads. Micorsoft adcontrol does serve ads in both test mode and non test mode.

Here my code:
<UI:AdControl  x:Name="pubadUnit" ApplicationId="ed82a56e-05a3-4122-8827-fbb3d71b7894" AdUnitId="158921" IsAutoRefreshEnabled="True"
                               HorizontalAlignment="Left" Height="80" VerticalAlignment="Bottom" Width="480" 
                           Keywords="News, Weather, Newspaper, ad" 
                           Canvas.Top="23" Canvas.Left="-4"/>
                AdHeight="80" HorizontalAlignment="Center"
                SlidingAdHiddenSeconds="2" AutoStartAds="True" Canvas.Top="615">
Here is the config:
<?xml version="1.0" encoding="utf-8"?>
<AdSettings xmlns:xsi="" xmlns:xsd="">
  <CultureDescriptors CultureName="en-US">
    <AdDuplex AppId="75771" Probability="0"/>
    <PubCenter AppId="ed82a56e-05a3-4122-8827-fbb3d71b7894" SecondaryId="158921" Probability="100"/>
    <MobFox AppId="1aaa8b268300463aa227853cd6e99cb7" IsTest="false" Probability="0"/>
    <AdMob AppId="ca-app-pub-5143926332673743/4108918912" Probability="0"/>
    <InnerActive AppId="TouchingTechnologies_EenaduNewspaper_WP"  Probability="0"/>
    <Inmobi AppId="a2c8585f66d34b8f9d5c2805ea653df0"  Probability="0"/>
  <CultureDescriptors CultureName="en-IN">
    <AdDuplex AppId="75771" Probability="20"/>
    <PubCenter AppId="ed82a56e-05a3-4122-8827-fbb3d71b7894" SecondaryId="158921" Probability="5"/>
    <MobFox AppId="1aaa8b268300463aa227853cd6e99cb7" IsTest="false" Probability="25"/>
    <AdMob AppId="ca-app-pub-5143926332673743/4108918912" Probability="0"/>
    <InnerActive AppId="TouchingTechnologies_EenaduNewspaper_WP"  Probability="25"/>
    <Inmobi AppId="a2c8585f66d34b8f9d5c2805ea653df0"  Probability="25"/>
  <CultureDescriptors CultureName="">
    <AdDuplex AppId="75771" Probability="5"/>
    <PubCenter AppId="ed82a56e-05a3-4122-8827-fbb3d71b7894" SecondaryId="158921" Probability="10"/>
    <MobFox AppId="1aaa8b268300463aa227853cd6e99cb7" IsTest="false" Probability="10"/>
    <AdMob AppId="ca-app-pub-5143926332673743/4108918912" Probability="0"/>
    <InnerActive AppId="TouchingTechnologies_EenaduNewspaper_WP"  Probability="50"/>
    <Inmobi AppId="a2c8585f66d34b8f9d5c2805ea653df0"  Probability="15"/>
Jan 16, 2014 at 4:19 PM
I am now able to see. It just took a while to appear. Please disregard!!.

Feb 14, 2014 at 3:26 AM
I'm glad your problem is solved but I'm struggling with the same thing.
I've checked my code against yours and everything looks fine, but in side-by-side tests and otherwise, I've still not gotten a single Pubcenter ad.

Any suggestions?
Feb 16, 2014 at 2:26 PM
Be aware that pubcenter will most likely not serve ads outside the US and unless you are using the test settings they never will in the emulator.

With V2, you do have to pass the PubCenter WinRT component to AdRotator to use it, WinRT components are not discoverable so we had to come up with a workaround.
So you need to do this in the constructor of the page you are using the control
        AdRotatorControl.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.PubCenter, typeof(Microsoft.Advertising.WinRT.UI.AdControl));
Hopefully we can find a better way in the future (only if they change the PubCenter implementation most likely)
Feb 16, 2014 at 6:22 PM
Ok, I think I'm doing everything you said to do. I've been getting this error in my output "Ads failed request for: PubCenter".
Does this mean that I haven't configured something correctly or that there's a problem on PubCenter's side?
Feb 16, 2014 at 7:02 PM
Yes, if you are getting that, then pub enter isn't sending you ads, either because of your id's or there are no ads to deliver for your region.

try it natively to confirm and/or use the test settings if you can find them (they keep moving)
Feb 16, 2014 at 8:43 PM
Edited Feb 17, 2014 at 4:35 AM
Thanks for your continued help.
Unfortunately, I'm still getting nothing.
(Test ad codes found here for Windows 8.0-----

Here's my xaml for a native PubCenter ad and an AdRotator ad.
<UI:AdControl Name="PicturePageAd" ApplicationId="d25517cb-12d4-4699-8bdc-52040c712cab" AdUnitId="10042998" HorizontalAlignment="Center" VerticalAlignment="Bottom" Grid.RowSpan="4" Grid.ColumnSpan="5" Width="728" Height="90" Margin="0,0,0,20"/>

<AdRotator:AdRotatorControl x:Name="PictureRenderPageAd" AdHeight="90" AdWidth="728" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,20" Grid.RowSpan="5" Grid.ColumnSpan="5" RemoteSettingsLocation="" AutoStartAds="True" />
Here's my settings xml (note the Pubcenter is the test ad for 728x90--same as native ad):
<?xml version="1.0" encoding="UTF-8"?>
<AdSettings xmlns:xsd="" xmlns:xsi="">
<CultureDescriptors CultureName="en-US">
<PubCenter Probability="99" SecondaryID="10042998" AppID="d25517cb-12d4-4699-8bdc-52040c712cab"/>
<AdDuplex Probability="1" AppId="#####"/>
And here's the code I use to register the PubCenter ad with AdRotator (VB.NET):
   Private Sub Page_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
        PageAd.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.PubCenter, GetType(Microsoft.Advertising.WinRT.UI.AdControl))
        AddHandler PageAd.Log, Sub(s)
                                End Sub
    End Sub
It seems foolproof but I'm getting a PubCenter test ad in the native one and only AdDuplex in the other :(
Feb 17, 2014 at 12:54 PM
Edited Feb 17, 2014 at 12:55 PM
Another thing to check is this port on Pubcentre errors -

Just be sure you are actually getting ads using the control natively when raising notes about AdRotator.