NativeAdV2.RegisterAdContainer Method

Definition

Overloads

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, IList<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.

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.

public:
 void RegisterAdContainer(FrameworkElement ^ adContainer);
void RegisterAdContainer(FrameworkElement const & adContainer);
[Windows.Foundation.Metadata.Overload("RegisterAdContainer2")]
public void RegisterAdContainer(FrameworkElement adContainer);
function registerAdContainer(adContainer)
Public Sub RegisterAdContainer (adContainer As FrameworkElement)

Parameters

adContainer
FrameworkElement

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

Attributes

See also

Applies to

RegisterAdContainer(FrameworkElement, IList<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.

public:
 void RegisterAdContainer(FrameworkElement ^ adContainer, IVector<FrameworkElement ^> ^ clickableElements);
void RegisterAdContainer(FrameworkElement const & adContainer, IVector<FrameworkElement> const & clickableElements);
[Windows.Foundation.Metadata.Overload("RegisterAdContainer1")]
public void RegisterAdContainer(FrameworkElement adContainer, IList<FrameworkElement> clickableElements);
function registerAdContainer(adContainer, clickableElements)
Public Sub RegisterAdContainer (adContainer As FrameworkElement, clickableElements As IList(Of FrameworkElement))

Parameters

adContainer
FrameworkElement

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

clickableElements
System.Collections.Generic.IList<FrameworkElement>

The UI elements for the native ad that can be clicked by the user.

Attributes

See also

Applies to