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); } );
iOS例
advertisingId=94B629DE-F122-4CB0-B3B5-A8C7DE5D74E0 enabled=False error=
公式:https://docs.unity3d.com/ScriptReference/Application.RequestAdvertisingIdentifierAsync.html