RegisterAdContainer | registerAdContainer methods

NativeAd.RegisterAdContainer methods

Registers the specified UI element in your app that acts as a container for the native ad. You must register the container to properly track ad impressions and clicks.

Overload list

MethodDescription
RegisterAdContainer(FrameworkElement) Registers the specified UI element in your app that acts as a container for the native ad elements. When you use this method, the entire container is a clickable element for the ad. You must register the container to properly track ad impressions and clicks.
RegisterAdContainer(FrameworkElement, IVector(FrameworkElement)) 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.

Requirements

Minimum supported client

Windows 10

Minimum supported server

None supported

Minimum supported phone

Windows 10 Mobile

Namespace

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

Metadata

Microsoft.Advertising.winmd

See also

NativeAd

 

 

Show:
© 2017 Microsoft