Skip to content

Commit

Permalink
Merge pull request #307 from adjust/v502
Browse files Browse the repository at this point in the history
Version 5.0.2
  • Loading branch information
uerceg authored Aug 27, 2024
2 parents a7528f3 + 48b5eea commit 9b5905f
Show file tree
Hide file tree
Showing 6 changed files with 210 additions and 149 deletions.
37 changes: 33 additions & 4 deletions Assets/Adjust/Scripts/Adjust.cs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ public static void GetIdfa(Action<string> callback)
AdjustiOS.GetIdfa(callback);
#elif UNITY_ANDROID
Debug.Log("[Adjust]: Error! IDFA is not available on Android platform.");
return;
#else
Debug.Log(errorMsgPlatform);
#endif
Expand All @@ -590,7 +589,38 @@ public static void GetIdfv(Action<string> callback)
AdjustiOS.GetIdfv(callback);
#elif UNITY_ANDROID
Debug.Log("[Adjust]: Error! IDFV is not available on Android platform.");
return;
#else
Debug.Log(errorMsgPlatform);
#endif
}

public static void GetGoogleAdId(Action<string> callback)
{
if (IsEditor())
{
return;
}

#if UNITY_IOS
Debug.Log("[Adjust]: Error! Google Advertising ID is not available on iOS platform.");
#elif UNITY_ANDROID
AdjustAndroid.GetGoogleAdId(callback);
#else
Debug.Log(errorMsgPlatform);
#endif
}

public static void GetAmazonAdId(Action<string> callback)
{
if (IsEditor())
{
return;
}

#if UNITY_IOS
Debug.Log("[Adjust]: Error! Amazon Fire Advertising ID is not available on iOS platform.");
#elif UNITY_ANDROID
AdjustAndroid.GetAmazonAdId(callback);
#else
Debug.Log(errorMsgPlatform);
#endif
Expand Down Expand Up @@ -622,8 +652,7 @@ public static void GetLastDeeplink(Action<string> callback)
#if UNITY_IOS
AdjustiOS.GetLastDeeplink(callback);
#elif UNITY_ANDROID
Debug.Log("[Adjust]: Error! Last deeplink getter is not available on Android platform.");
return;
AdjustAndroid.GetLastDeeplink(callback);
#else
Debug.Log(errorMsgPlatform);
#endif
Expand Down
Loading

0 comments on commit 9b5905f

Please sign in to comment.