Share via


AdvertisingManager Class

Definition

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

public ref class AdvertisingManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class AdvertisingManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public static class AdvertisingManager
Public Class AdvertisingManager
Inheritance
Object Platform::Object IInspectable AdvertisingManager
Attributes

Windows requirements

Requirements Description
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

Name Description
AdvertisingId

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

Methods

Name Description
GetForUser(User)

Gets the advertising ID for the specified user.

Applies to

See also