AdvertisingManager AdvertisingManager AdvertisingManager AdvertisingManager AdvertisingManager Class


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

public : static class AdvertisingManager
static struct winrt::Windows::System::UserProfile::AdvertisingManager
public static class AdvertisingManager
Public Shared Class AdvertisingManager
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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


AdvertisingId AdvertisingId AdvertisingId AdvertisingId AdvertisingId

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


GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User)

Gets the advertising ID for the specified user.

See also