■iOSの広告識別子「IDFA=Advertising Identifier」
■Androidの広告ID「ADID=AdvertisingID」
■実機操作による確認方法
 ・Android
  「設定」->「Google」->「広告」で広告IDを確認
 ・iPhone
  わかんない
●Unity公式のサンプルスクリプト
https://docs.unity3d.com/jp/540/ScriptReference/Application.RequestAdvertisingIdentifierAsync.html
advertisingId には広告ID
enabledにはユーザーが広告IDを使用させるか?の有無が返ってくる
■自分用にソース
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GetIdfaAndAdid : MonoBehaviour {
    [SerializeField]
    public Text DisplayID;
    // ボタンが押されると呼ばれる
    public void GetID()
    {
        Debug.Log("■■■■■GetID()■■■■■");
        // IDFA
        Application.RequestAdvertisingIdentifierAsync(
                (string advertisingId, bool trackingEnabled, string error) =>
                {
                    Debug.Log("advertisingId=" + advertisingId + " enabled=" + trackingEnabled + " error=" + error);
                    DisplayID.text = "advertisingId=" + advertisingId + " enabled=" + trackingEnabled + " error=" + error;
                }
        );
    }
}
■参考URL
https://reviewlog.info/adid-android/
https://reviewlog.info/ios-idfa-reset/
https://stackoverflow.com/questions/34193282/apple-idfa-in-unity-via-plugin