惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Martin Fowler
Martin Fowler
The Cloudflare Blog
The Register - Security
The Register - Security
WordPress大学
WordPress大学
量子位
Vercel News
Vercel News
C
Check Point Blog
V
Visual Studio Blog
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
PCI Perspectives
PCI Perspectives
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
Schneier on Security
Schneier on Security
O
OpenAI News
M
MIT News - Artificial intelligence
S
Secure Thoughts
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Security Affairs
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
Recorded Future
Recorded Future
S
Security @ Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cyber Attacks, Cyber Crime and Cyber Security
GbyAI
GbyAI
L
LINUX DO - 最新话题
The Last Watchdog
The Last Watchdog
C
CERT Recently Published Vulnerability Notes
aimingoo的专栏
aimingoo的专栏
V
V2EX
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志

博客园 - Kenny田

iOS 下 Podfile 使用方法 使用 NVM 管理不同的 Node.js 版本 将React Native集成至Android原生应用 Gradle在Windows环境与Linux上配置有哪些不同? 学习Android Studio里的Gradle 解决 Android Studio 乱码问题 不知道如何处理的Windows Phone异常 用命令行安装并启动Windows Phone 8 App 在Windows Phone项目中调用C语言DLL PLSQL Developer 初始化错误 [原]初次运用数据缓存机制 [原]执行存储过程后返回影响的行数 [原]可定义的英文小日历 可逆加密解密程序(ASP版) [原]有TreeNode”并不包含“Nodes”的定义困扰的朋友看过来 全文服务(Microsoft 搜索)不可用。系统管理员必须启动此服务 [转]解决sql2000挂起无法安装的问题 [转]安装SQL Server 2000 时出现 command line option syntax error [原]如何将一个表中的某一列的数据全部复制到另一个表中
演示Microsoft Advertising SDK for Windows Phone 8.1
Kenny田 · 2014-03-19 · via 博客园 - Kenny田

演示Microsoft Advertising SDK for Windows Phone 8.1,Only for Windows Phone 8.1

1、在References上点右键,添加引用,找到Microsoft Advertising SDK for Windows Phone 8.1 (XAML)

2、能在References里看到,就是表示添加成功了

3、引用代码(注意:跟Win8一样是using开头的)

xmlns:ui="using:Microsoft.Advertising.Mobile.UI"

4、广告代码

<StackPanel>
    <!--640x100_music_video-->
    <TextBlock Text="640x100_music_video" FontSize="20" />
    <ui:AdControl ApplicationId="132e7a5d-97f7-4d24-a5bf-fb88297e2d80" AdUnitId="161706" Width="610" Height="100" HorizontalAlignment="Left" />

    <!--480x80_tools_productivity-->
    <TextBlock Text="480x80_tools_productivity" FontSize="20" />
    <ui:AdControl ApplicationId="132e7a5d-97f7-4d24-a5bf-fb88297e2d80" AdUnitId="161712" Width="480" Height="80" HorizontalAlignment="Left" />

    <!--300x50_sports-->
    <TextBlock Text="300x50_sports" FontSize="20" />
    <ui:AdControl ApplicationId="8311d455-7e75-43e0-a325-7f2ad9279eac" AdUnitId="166517" Width="300" Height="50" HorizontalAlignment="Left" />

    <!--320x50_social-->
    <TextBlock Text="320x50_social" FontSize="20" />
    <ui:AdControl ApplicationId="8311d455-7e75-43e0-a325-7f2ad9279eac" AdUnitId="166614" Width="320" Height="50" HorizontalAlignment="Left" />
</StackPanel>

5、F5 跑起来,有图有真相(没想到可以同时显示3个广告)

 

源代码下载

离线 Windows Phone 8.1 SDK 文档

http://download.csdn.net/detail/kennytian/6921913

http://download.csdn.net/detail/kennytian/6921883

http://download.csdn.net/detail/kennytian/6921909