NativeAdV2.RegisterAdContainer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, 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. |
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);
/// [Windows.Foundation.Metadata.Overload("RegisterAdContainer2")]
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, 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.
public:
void RegisterAdContainer(FrameworkElement ^ adContainer, IVector<FrameworkElement ^> ^ clickableElements);
/// [Windows.Foundation.Metadata.Overload("RegisterAdContainer1")]
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
The UI elements for the native ad that can be clicked by the user.
- Attributes