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

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

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

Metadata

Microsoft.Advertising.winmd

See also

NativeAd
RegisterAdContainer(FrameworkElement)

 

 

Show:
© 2017 Microsoft