Adding Phone Ads to a Page

On phone-specific pages, you can use the same AdControl used on PC-specific pages, just with appropriate values for ApplicationId and AdUnitId. You must also:

1. Change the namespace from Microsoft.Advertising.WinRT.UI to Microsoft.Advertising.Mobile.UI.

2. Manually add a reference to the “Microsoft Advertising SDK for Windows Phone 8.1 (XAML)” extension to your phone project.

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.