AdControl constructor

AdControl.AdControl constructor

Initializes a new instance of the AdControl class.

Syntax


public:
AdControl()

Parameters

This constructor has no parameters.

Remarks

You typically add an AdControl on an HTML or XAML page. You can also manually create an AdControl in JavaScript code. 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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1

Namespace

Microsoft.Advertising.WinRT.UI
Microsoft::Advertising::WinRT::UI [C++]

Metadata

Microsoft.Advertising.winmd

See also

AdControl

 

 

Show:
© 2017 Microsoft