NativeAdsManagerV2 類別

定義

提供可用來要求原生廣告 (的方法和事件,也就是 NativeAdV2 物件) 。 如需示範如何在應用程式中使用 NativeAdsManagerV2 類別的逐步解說,包括程式碼範例,請參閱 原生廣告

public ref class NativeAdsManagerV2 sealed
class NativeAdsManagerV2 sealed
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Advertising.WinRT.UI.__INativeAdsManagerV2Factory), 1)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class NativeAdsManagerV2
Public NotInheritable Class NativeAdsManagerV2
繼承
System.Object
NativeAdsManagerV2
屬性

其他功能與需求

軟體開發套件
支援 OS 的最低版本
Windows 10 (10.0.10240.0)

建構函式

NativeAdsManagerV2(String, String)

建立 NativeAdsManagerV2 類別的新實例。 如需示範如何使用此建構函式的逐步解說,包括如何取得應用程式識別碼和廣告單元識別碼值的相關資訊,請參閱 原生廣告

屬性

AdditionalPublisherContext

從廣告發行者取得廣告要求的其他內容。

方法

RequestAd()

要求應用程式的 NativeAdV2 物件。

事件

AdReady

當 NativeAdV2可供您的應用程式使用時引發。

ErrorOccurred

當 NativeAdV2發生操作錯誤時引發。

適用於

另請參閱