Export (0) Print
Expand All

Overview - Microsoft Advertising SDK for Windows 8.0

Microsoft Advertising Services

Updated: August 2, 2013

Published: June 4, 2013

Microsoft Advertising

This topic provides some general information about the SDK that may be of interest to developers.

Windows 8 Apps and the Advertising Control

JavaScript Projects and C# Projects

  • Both JavaScript projects and C# projects use a shared “Microsoft.Advertising SDK” component that you include in your app. This component contains common calls to the WinRT.

  • Both JavaScript projects and C# projects require that the app manifest capabilities be configured to permit “Internet Client”. Without this permission, the ad client cannot fetch ads from a remote server that uses HTTP.

HTML/JavaScript Projects

  • The project requires the JS file because it contains projections from the WinMd Shared component. This permits JavaScript code to run in the web host.

  • Code can be written as HTML5 tags, JavaScript, or a combination of the two.

  • Ads render in a web compartment of the HTML5-based app host.

  • Web and local compartments communicate through postMessage calls.

C# Projects

  • Code can be written as XAML tags, C# code, or a combination of the two.

  • The presentation layer is XAML-based The HTML5 based ads will render with a WebBrowser instance from the .NET Framework.

  • The ad client will communicate with the WebBrowser control by using windows.external.notify and ScriptNotify.

JavaScript, C#, and the AdControl in Windows 8

The following graphic illustrates the interactions between the JavaScript and C# Advertising APIs, and the Windows 8 UI framework.

Windows Runtime Supporting Advertising Control

Support and Feedback

Get product support or report a bug in the advertising SDK by visiting the Windows 8 Dev Center support page (scroll down to the section "Microsoft Advertising support").

Send feedback about this documentation to adsfdbk@microsoft.com. There is no product support through this alias. Documentation feedback only.

Community Additions

© 2015 Microsoft