Unity/Csharp/広告
広告ID
- androidは、Google Advertising ID(AAID)
- iosは、Identifier For Advertising (IDFA)
Application.RequestAdvertisingIdentifierAsync(
(string advertisingId, bool trackingEnabled, string error) =>
{
Debug.Log("advertisingId=" + advertisingId + " enabled=" + trackingEnabled + " error=" + error);
}
);
公式:https://docs.unity3d.com/ScriptReference/Application.RequestAdvertisingIdentifierAsync.html