AdControl Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
AdControl();
/// [Windows.Foundation.Metadata.Overload("CreateInstance1")]
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.