NativeAdV2.RegisterAdContainer 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RegisterAdContainer(FrameworkElement) |
在應用程式中註冊指定的 UI 元素,做為原生廣告元素的容器。 當您使用此方法時,整個容器是廣告的可點選元素。 您必須註冊容器,才能正確追蹤廣告曝光數和點擊次數。 |
RegisterAdContainer(FrameworkElement, IList<FrameworkElement>) |
在應用程式中註冊 UI 元素,做為原生廣告元素的容器,以及使用者可按一下的任何特定 UI 元素。 您必須註冊這些元件,才能正確追蹤廣告曝光數和點擊次數。 |
RegisterAdContainer(FrameworkElement)
在應用程式中註冊指定的 UI 元素,做為原生廣告元素的容器。 當您使用此方法時,整個容器是廣告的可點選元素。 您必須註冊容器,才能正確追蹤廣告曝光數和點擊次數。
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)
參數
- adContainer
- FrameworkElement
應用程式中做為原生廣告容器的 UI 元素。
- 屬性
另請參閱
適用於
RegisterAdContainer(FrameworkElement, IList<FrameworkElement>)
在應用程式中註冊 UI 元素,做為原生廣告元素的容器,以及使用者可按一下的任何特定 UI 元素。 您必須註冊這些元件,才能正確追蹤廣告曝光數和點擊次數。
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))
參數
- adContainer
- FrameworkElement
應用程式中做為原生廣告容器的 UI 元素。
- clickableElements
- System.Collections.Generic.IList<FrameworkElement>
使用者可以按一下原生廣告的 UI 元素。
- 屬性