AdvertisingManager Class

Definition

Provides a property that lets the caller retrieve the advertising ID.

public ref class AdvertisingManager abstract sealed
class AdvertisingManager abstract sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.UserProfile.IAdvertisingManagerStatics), 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static class AdvertisingManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.UserProfile.IAdvertisingManagerStatics), 65536, "Windows.Foundation.UniversalApiContract")]
public static class AdvertisingManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.UserProfile.IAdvertisingManagerStatics), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.UserProfile.IAdvertisingManagerStatics2), 196608, "Windows.Foundation.UniversalApiContract")]
public static class AdvertisingManager
Public Class AdvertisingManager
Inheritance
AdvertisingManager
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

AdvertisingManager is a static runtime object and does not need to be retrieved or created.

Version history

Windows version SDK version Value added
1607 14393 GetForUser

Properties

AdvertisingId

Retrieves a unique ID used to provide more relevant advertising. If the advertising ID feature is turned off, no ID is retrieved.

Methods

GetForUser(User)

Gets the advertising ID for the specified user.

Applies to

See also