所以我有一个Windows Phone解决方案,里面有广告。
我的解决方案参考
Microsoft.Advertising.SDK
Advertising.Mobile
Advertising.Mobile.UI
一切正常,我收到广告。不幸的是,它有多个对同一DLL的引用,所以我不能以这种方式将它提交给Microsoft。我不得不删除Microsoft.Advertising.SDK
或两个Advertising.Mobile
引用。
当我改变这一点时,却拒绝投放广告。我现在有点不知所措。
答案 0 :(得分:1)
我只使用 MicrosoftAdvertising.Mobile 和 Microsoft.Advertising.Mobile.UI ,并且我投放了广告。 SDK应该只添加不参考自身的DLL。
注意: 您需要明确设置宽度和高度 确保已启用电话拨号程序和Web浏览器功能
后续说明: 确保在删除SDK DLL后,xmlns引用仍未指向它。这里最好的路线是
这是xmlns参考:
xmlns:AdNamepace="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
然后广告本身:
<AdNamespace:AdControl x:Name="myAd" Height="80" Width="480"
AdUnitId="yourAdUnitIdHere" ApplicationId="yourIdHere"/>