So I have a Windows Phone solution that has an ad in it.
When my Solution References
Microsoft.Advertising.SDK Advertising.Mobile Advertising.Mobile.UI
Everything works fine and I get ads. Unfortunately this has multiple references to the same DLL so I can't submit it to Microsoft this way. I am forced to either remove Microsoft.Advertising.SDK
or the two Advertising.Mobile
references.
When I change this at all however it refuses to serve ads. I am kind of at a loss now.
This question is related to
c#
windows-phone-8
visual-studio-2013
I only use MicrosoftAdvertising.Mobile and Microsoft.Advertising.Mobile.UI and I am served ads. The SDK should only add the DLLs not reference itself.
Note: You need to explicitly set width and height Make sure the phone dialer, and web browser capabilities are enabled
Followup note: Make sure that after you've removed the SDK DLL, that the xmlns references are not still pointing to it. The best route to take here is
Here is the xmlns reference:
xmlns:AdNamepace="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
Then the ad itself:
<AdNamespace:AdControl x:Name="myAd" Height="80" Width="480" AdUnitId="yourAdUnitIdHere" ApplicationId="yourIdHere"/>
Source: Stackoverflow.com