NativeAdsManagerV2 Class
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.
Provides methods and events you can use to request a native ad (that is, a NativeAdV2 object). For a walkthrough that demonstrates how to use the NativeAdsManagerV2 class in your app, including code examples, see Native ads.
public ref class NativeAdsManagerV2 sealed
/// [Windows.Foundation.Metadata.Activatable(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]
class NativeAdsManagerV2 final
[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
- Inheritance
- Attributes
Additional features and requirements
Software Development Kit | |
Minimum supported OS |
Windows 10 (10.0.10240.0)
|
Constructors
NativeAdsManagerV2(String, String) |
Creates a new instance of the NativeAdsManagerV2 class. For a walkthrough that demonstrates how to use this constructor, including information about how to obtain the application ID and ad unit ID values, see Native ads. |
Properties
AdditionalPublisherContext |
Gets additional context for the ad request from the ad publisher. |
Methods
RequestAd() |
Requests a NativeAdV2 object for your app. |
Events
AdReady |
Raised when a NativeAdV2 is ready for your app. |
ErrorOccurred |
Raised when a NativeAdV2 encounters an operational error. |