RegisterAdContainer(FrameworkElement) method
Collapse the table of content
Expand the table of content

NativeAd.RegisterAdContainer(FrameworkElement) method

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.

Syntax


public:
void RegisterAdContainer(
  FrameworkElement^ adContainer
)

Parameters

adContainer

Type: FrameworkElement

The UI element in your app that acts as a container for the native ad.

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
RegisterAdContainer(FrameworkElement, IVector(FrameworkElement))

 

 

Show:
© 2017 Microsoft