Skip to content

Commit 9b5905f

Browse files
authored
Merge pull request #307 from adjust/v502
Version 5.0.2
2 parents a7528f3 + 48b5eea commit 9b5905f

File tree

6 files changed

+210
-149
lines changed

6 files changed

+210
-149
lines changed

Assets/Adjust/Scripts/Adjust.cs

+33-4
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ public static void GetIdfa(Action<string> callback)
573573
AdjustiOS.GetIdfa(callback);
574574
#elif UNITY_ANDROID
575575
Debug.Log("[Adjust]: Error! IDFA is not available on Android platform.");
576-
return;
577576
#else
578577
Debug.Log(errorMsgPlatform);
579578
#endif
@@ -590,7 +589,38 @@ public static void GetIdfv(Action<string> callback)
590589
AdjustiOS.GetIdfv(callback);
591590
#elif UNITY_ANDROID
592591
Debug.Log("[Adjust]: Error! IDFV is not available on Android platform.");
593-
return;
592+
#else
593+
Debug.Log(errorMsgPlatform);
594+
#endif
595+
}
596+
597+
public static void GetGoogleAdId(Action<string> callback)
598+
{
599+
if (IsEditor())
600+
{
601+
return;
602+
}
603+
604+
#if UNITY_IOS
605+
Debug.Log("[Adjust]: Error! Google Advertising ID is not available on iOS platform.");
606+
#elif UNITY_ANDROID
607+
AdjustAndroid.GetGoogleAdId(callback);
608+
#else
609+
Debug.Log(errorMsgPlatform);
610+
#endif
611+
}
612+
613+
public static void GetAmazonAdId(Action<string> callback)
614+
{
615+
if (IsEditor())
616+
{
617+
return;
618+
}
619+
620+
#if UNITY_IOS
621+
Debug.Log("[Adjust]: Error! Amazon Fire Advertising ID is not available on iOS platform.");
622+
#elif UNITY_ANDROID
623+
AdjustAndroid.GetAmazonAdId(callback);
594624
#else
595625
Debug.Log(errorMsgPlatform);
596626
#endif
@@ -622,8 +652,7 @@ public static void GetLastDeeplink(Action<string> callback)
622652
#if UNITY_IOS
623653
AdjustiOS.GetLastDeeplink(callback);
624654
#elif UNITY_ANDROID
625-
Debug.Log("[Adjust]: Error! Last deeplink getter is not available on Android platform.");
626-
return;
655+
AdjustAndroid.GetLastDeeplink(callback);
627656
#else
628657
Debug.Log(errorMsgPlatform);
629658
#endif

0 commit comments

Comments
 (0)