Export (0) Print
Expand All

XAML Markup with All Properties - Windows 8.1

Microsoft Advertising Services

Updated: March 31, 2014

Published: April 1, 2014

Example

The following snippet of XAML shows the properties of the AdControl and sample values.

If a property is not set, the AdControl will fill in empty properties to create an ad that is consistent with the user experience of the app.

The values are examples. In your code you will set the values of these functions and properties appropriate for your app.

       Width="250",
       Height="250", 
       AdUnitId="10043107",
       ApplicationId="d25517cb-12d4-4699-8bdc-52040c712cab",
       IsAutoRefreshEnabled="false",
       Latitude=40.47,
       Longitude=73.58,
       AdRefreshed="OnAdRefresh",
       ErrorOcurred="OnAdError",
       IsEngagedChanged="OnAdEngagedChanged"

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:
© 2014 Microsoft