简体   繁体   English

如何在WP7应用中嵌入广告?

[英]How to embed ads in WP7 app?

I want to know how to embed ad frame into my WP7/WP7.1 application. 我想知道如何将广告框架嵌入到WP7 / WP7.1应用程序中。

I also want to know places that I can get the ads from to put in the app. 我也想知道我可以从中获取广告并放置到应用程序中的地方。

Everything you need to know is provided right here by Microsoft . Microsoft在这里提供您需要了解的所有信息。 The control is included in the Windows Phone SDK and can be dropped right into your app ( AdControl in the Visual Studio Toolbox). 该控件包含在Windows Phone SDK中,可以直接放到您的应用程序中(Visual Studio工具箱中的AdControl )。

You cannot directly control which ads are shown but you can influence it in some way (cited from FAQ): 您无法直接控制显示哪些广告,但可以以某种方式对其进行影响(引自FAQ):

As noted above, the most relevant ads will also be the most likely ones to get you the most revenue. 如上所述,最相关的广告也将是最有可能为您带来最多收入的广告。 So the same advice holds true: 因此,同样的建议成立:

  1. If your app is location-aware, provide that info to the Ad Control. 如果您的应用支持位置信息,则将该信息提供给广告控件。
  2. Set as many of the demographic targeting properties in the Ad Control as you can for each user. 在广告控件中为每个用户设置尽可能多的受众特征定位属性。
  3. Set the right category for the Ad Unit in pubCenter. 在pubCenter中为广告单元设置正确的类别。
  4. If you have a set of relevant ad keywords, set those in the Ad Control. 如果您有一组相关的广告关键字,请在广告控件中进行设置。

For more tutorials I strongly suggest a Google/Bing search as there are plenty of these. 对于更多教程,我强烈建议您使用Google / Bing搜索,因为其中有很多。

Also, once you get the hang of using this AdControl, take a look at AdRotator (on CodePlex), as well as AdDuplex (AdDuplex.com). 此外,一旦掌握了使用此AdControl的技巧,请看看AdRotator(在CodePlex上)以及AdDuplex(AdDuplex.com)。 With AdRotator, you can rotate MS ads, Google ads, AdDuplex ads (to trade advertising other people's apps for them advertising yours). 借助AdRotator,您可以轮播MS广告,Google广告,AdDuplex广告(以交易广告他人的应用程序来广告他们的广告)。 This can be beneficial to you, depending on what part of the world you are targeting. 这可能对您有利,这取决于您所针对的是世界的哪个部分。 Not every country can see MS ads yet, so if you are targeting outside of MS's supported countries, this can help you. 并非每个国家都可以看到MS广告,因此,如果您将目标定位在MS支持的国家之外,则可以为您提供帮助。 Also, you can configure AdRotator using an XML file on your web server, so you can change your ad mix by changing the XML file, and not have to push a new version of your app just to change ad mix. 另外,您可以使用Web服务器上的XML文件配置AdRotator,因此可以通过更改XML文件来更改广告组合,而不必推送新版本的应用程序来更改广告组合。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM