「Unity/Csharp/広告」の版間の差分
ナビゲーションに移動
検索に移動
ページの作成:「==広告ID== *androidは、Google Advertising ID(AAID) *iosは、Identifier For Advertising (IDFA) <pre> Application.RequestAdvertisingIdentifierAsync( (s...」 |
編集の要約なし |
||
| 1行目: | 1行目: | ||
==広告ID== | ==広告ID== | ||
* | *Androidは、Google Advertising ID(AAID) | ||
* | *iOSは、Identifier For Advertising (IDFA) | ||
<pre> | <pre> | ||
Application.RequestAdvertisingIdentifierAsync( | Application.RequestAdvertisingIdentifierAsync( | ||
| 10行目: | 10行目: | ||
); | ); | ||
</pre> | </pre> | ||
iOS例 | |||
advertisingId=94B629DE-F122-4CB0-B3B5-A8C7DE5D74E0 enabled=False error= | |||
公式:https://docs.unity3d.com/ScriptReference/Application.RequestAdvertisingIdentifierAsync.html | 公式:https://docs.unity3d.com/ScriptReference/Application.RequestAdvertisingIdentifierAsync.html | ||
参考:https://www.siteengine.co.jp/blog/advertising-id/ | 参考:https://www.siteengine.co.jp/blog/advertising-id/ | ||
2023年5月18日 (木) 15:45時点における版
広告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