一秒钟后adcontrol消失-WP7 [英] adcontrol dissapears after split second - WP7

查看:118
本文介绍了一秒钟后adcontrol消失-WP7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为此苦苦挣扎了好几个星期,无法弄清为什么它不起作用。
我正在对第一个WP7应用进行Beta测试,并希望由广告横幅为其提供资金。
但是我所看到的只是一个黑色的方块,只有一秒钟的时间,因为它变得不可见。
该应用程序的Beta版可以在此处下载:
http://www.windowsphone.com/de-de/store/app/flyingfatty/196a2541-5989-48cd-8d0f-eacf988b47d7

I've been struggling with this for weeks now, and can't figure out why it doesn't work. I'm beta testing my first app WP7 app and want to fund it by ad-banners. But all I see is a black square for a fractions of a second befor it turns invisible. The beta version of the app can be downloaded here: http://www.windowsphone.com/de-de/store/app/flyingfatty/196a2541-5989-48cd-8d0f-eacf988b47d7

要包含横幅,我采取了以下步骤:

To include the banners I took the following steps:


  1. 下载Windows Phone广告SDK(WPAdSDK-DEU .msi)

  2. 将Microsoft.Advertising.Mobile和Microsoft.Advertising.Mobile.UI引用添加到我的项目。

  3. 添加:xmlns:my = clr-namespace:Microsoft.Advertising.Mobile.UI; assembly = Microsoft.Advertising.Mobile.UI添加到我的xaml

  4. 将80x480 AdControl元素添加到我的xaml

  5. 注册一个发布中心帐户并注册我的应用和adcontrol。
    在我选择运动,旅游和购物的类别中,假设这些类别中的广告最多

  6. 将application-ID和adunit-ID粘贴到我的xaml中,如下所示

  1. download the Windows Phone Ad SDK (WPAdSDK-DEU.msi)
  2. add the Microsoft.Advertising.Mobile and Microsoft.Advertising.Mobile.UI Refernce to my project.
  3. add: xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI" to my xaml
  4. add a 80x480 AdControl Element to my xaml
  5. make a pub center account and register my app and the adcontrol. As categories I chose sports, travelling and shopping assuming, there's most ads in those categories
  6. paste the applications-ID and adunit-ID to my xaml like below

< my:AdControl AdUnitId = 93769

ApplicationId = 32b430d7-aa81-440d-99a1-62c65e75f64a

IsAutoRefreshEnabled = True

高度= 80

Horizo​​ntalAlignment =左

Margin = 0

Name = adControlReal

VerticalAlignment =底部

Width = 480 />

如上所述,在消失之前,我看到了一秒钟的黑色横幅。
我还尝试了AdUnitId = Image480_800和ApplicationId = test_client进行测试,但效果相同。

As mentioned above I see a black banner for a split-second before it dissapears. I also tried AdUnitId="Image480_800" and ApplicationId="test_client" for testing purposes but for the same effect.

我在做什么错了?

推荐答案

尝试订阅错误事件以查看发生这种情况的原因。

Try to subscribe to the error event to see why this is happening.

AdControl.ErroOccurrred事件

这篇关于一秒钟后adcontrol消失-WP7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆