So you want to use ad's in your windows phone 7 apps as a revenue stream and you followed the directions and it seems like it 'may' work but alas everyone that that has your app never see's an ad and come to think of it you haven't either save the test add...? Hmmm...
You went out to this site:
and created an 'ad unit' and gotten an application id for your app.
you then have downloaded the phone 7 ad SDK from this link
included and referenced the ad DLL and created the xaml that looks to the effect of :
(at the top of your xaml)
(some where on the page)
ApplicationId="[Guid here]" AdUnitId="[ad unit id here]"
RotationEnabled="True" Width="480" Height="80"
Margin="0,-1,0,0" UseLayoutRounding="False" VerticalAlignment="Top" d:LayoutRounding="Auto"
you've compiled and uploaded and even went so far as to test your app using the test values they provide for the application id and ad unit id... your app is approved but your not getting any hits...
hmm... what you have over looked... oops they left out one tiny detail... at least in all the directions I have found... in your constructor or in our override onnavigateto try adding this little bit of C#...
AdControl.TestMode = false;
really? as much as it makes me tired all over... yes this is all the magic I needed todo...
This blog has moved…
6 years ago