NativeAd.RegisterAdContainer(FrameworkElement, IVector(FrameworkElement)) method
Registers the UI element in your app that acts as a container for the native ad elements and any specific UI elements that can be clicked by the user. You must register these components to properly track ad impressions and clicks.
Syntax
public: void RegisterAdContainer( FrameworkElement^ adContainer, IVector<FrameworkElement>^ clickableElements )
Parameters
- adContainer
-
Type: FrameworkElement
The UI element in your app that acts as a container for the native ad.
- clickableElements
-
Type: IVector<FrameworkElement> [C++] | System.Collections.Generic.IList<FrameworkElement> [.NET]
The UI elements for the native ad that can be clicked by the user.
Requirements
|
Minimum supported client |
Windows 10 |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
Windows 10 Mobile |
|
Namespace |
|
|
Metadata |
|
See also