Unity 스크립트에서 직접 WinRT API를 사용할 수 있습니다만, 아래의 제약과 요구 사항이 따릅니다.
아래는 WinRT API를 직접 사용하여 광고를 표시하는 예제입니다.
using UnityEngine;
public class WinRTAPI : MonoBehaviour 
{
    void Update() 
    {
        auto adId = GetAdvertisingId();
        // ...
    }
    string GetAdvertisingId() 
    {
        #if ENABLE_WINMD_SUPPORT
            return Windows.System.UserProfile.AdvertisingManager.AdvertisingId;
        #else
            return "";
        #endif
    }
}