Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Application.advertisingIdentifier

public static string advertisingIdentifier;

Description

Advertising ID.

Windows::System::UserProfile::AdvertisingManager::AdvertisingId. Note: If you get an empty string, check 'PC Settings -> Privacy -> Let apps use my advertising ID for experiences across apps (turning this off will reset your ID)' option.