AdControl Constructor

Definition

Initializes a new instance of the AdControl class.

public:
 AdControl();
 AdControl();
[Windows.Foundation.Metadata.Overload("CreateInstance1")]
public AdControl();
function AdControl()
Public Sub New ()
Attributes

Remarks

You typically add an AdControl on an HTML or XAML page. You can also create an AdControl in code at run time. When you add an AdControl, you typically initialize the following properties: AdUnitId, ApplicationId, Height, and Width. For more examples, see the following topics:

Do not place the AdControl in an iFrame. Certain ad types have test mode values that can open in full screen mode. Users would have a negative experience with your app if an ad is shown in an iFrame that does not accommodate the click-to-action.

Applies to