public static void getGoogleAdId(Action <string> onDeviceIdsRead) { if (!IsEditor()) { AdjustAndroid.GetGoogleAdId(onDeviceIdsRead); } }
public static void getGoogleAdId(Action <string> onDeviceIdsRead) { if (!Application.isEditor) { #if UNITY_IOS Debug.Log("Adjust: Google Play Advertising ID is not available on iOS platform."); onDeviceIdsRead(string.Empty); #elif UNITY_ANDROID AdjustAndroid.GetGoogleAdId(onDeviceIdsRead); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("Adjust: Google Play Advertising ID is not available on Windows platform."); onDeviceIdsRead(string.Empty); #else Debug.Log(errorMsgPlatform); #endif } }