Share via


NativeAdsManager(String, String) Constructor

Definition

Creates a new instance of the NativeAdsManager 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.

public:
 NativeAdsManager(Platform::String ^ applicationId, Platform::String ^ adUnitId);
/// [Windows.Foundation.Metadata.Overload("CreateInstance1")]
 NativeAdsManager(winrt::hstring const& applicationId, winrt::hstring const& adUnitId);
[Windows.Foundation.Metadata.Overload("CreateInstance1")]
public NativeAdsManager(string applicationId, string adUnitId);
function NativeAdsManager(applicationId, adUnitId)
Public Sub New (applicationId As String, adUnitId As String)

Parameters

applicationId
String

Platform::String

winrt::hstring

The application ID for the Native ad unit that you want to associate with the native ad.

adUnitId
String

Platform::String

winrt::hstring

The ad unit ID for the Native ad unit that you want to associate with the native ad.

Attributes

Remarks

Important

The NativeAdsManager class is deprecated. Use NativeAdsManagerV2 instead.

Applies to

See also