Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Additional Code Samples - Windows 8.1

Microsoft Advertising Services

Published: April 30, 2014

The topics in this section provide additional information about how to use the AdControl in different programming languages.

The Developer Walkthroughs showed how to integrate ads in apps using default behavior. For those interested in having more control over the ad experience, however, the following examples show how to use the AdControl's properties, methods, and events to target users, manually refresh ads, and handle events.

Descriptions of events, methods, and properties are in the API Reference topics.

In This Section

Example

Description

HTML 5 Markup with All Properties - Windows 8.1

Shows a fully attributed AdControl in HTML 5.

XAML Markup with All Properties - Windows 8.1

Shows a fully attributed AdControl in XAML.

Creating the AdControl in JavaScript - Windows 8.1

Shows how to create the AdControl using JavaScript.

JavaScript Callback Events - Windows 8.1

Shows how to handle AdControl events in JavaScript.

C# Callback Events - Windows 8.1

Shows how to handle AdControl events in C#.

Visual Basic Event Handlers - Windows 8.1

Shows hows to handle AdControl events in Visual Basic.

Error Handling for the AdControl - Windows 8.1

Provides examples of error handling code for the AdControl in different programming languages.

Support and Feedback

Get product support or report a bug in the advertising SDK by visiting the Windows Store Apps developer support page support page. For product support, under "App development" click the "Advertising SDK" link. To post a question in the support forum, scroll down to "Find answers online" and click "Ads-in-Apps for Windows 8 forum".

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

Community Additions

ADD
Show:
© 2015 Microsoft