MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AdControl constructor

Instantiates a new AdControl.

Syntax

public AdControl()
public AdControl(string ApplicationId, string AdUnitId, bool isAutoRefreshEnabled)

Remarks

You typically add an AdControl on XAML page using markup rather than calling this constructor directly in your code. For an example, see AdControl in Windows Phone Silverlight.

You must set the ApplicationId and AdUnitId properties before an ad can be displayed, and you also typically set the Height and Width properties inherited from the FrameworkElement class.

Requirements

Minimum supported phoneWindows Phone 8 Silverlight
Namespace Microsoft.Advertising.Mobile.UI
AssemblyMicrosoft.Advertising.Mobile.UI.dll

 

 

 

Show:
© 2016 Microsoft