File tree 6 files changed +210
-149
lines changed
6 files changed +210
-149
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,6 @@ public static void GetIdfa(Action<string> callback)
573
573
AdjustiOS . GetIdfa ( callback ) ;
574
574
#elif UNITY_ANDROID
575
575
Debug . Log ( "[Adjust]: Error! IDFA is not available on Android platform." ) ;
576
- return ;
577
576
#else
578
577
Debug . Log ( errorMsgPlatform ) ;
579
578
#endif
@@ -590,7 +589,38 @@ public static void GetIdfv(Action<string> callback)
590
589
AdjustiOS . GetIdfv ( callback ) ;
591
590
#elif UNITY_ANDROID
592
591
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 ) ;
594
624
#else
595
625
Debug . Log ( errorMsgPlatform ) ;
596
626
#endif
@@ -622,8 +652,7 @@ public static void GetLastDeeplink(Action<string> callback)
622
652
#if UNITY_IOS
623
653
AdjustiOS . GetLastDeeplink ( callback ) ;
624
654
#elif UNITY_ANDROID
625
- Debug . Log ( "[Adjust]: Error! Last deeplink getter is not available on Android platform." ) ;
626
- return ;
655
+ AdjustAndroid . GetLastDeeplink ( callback ) ;
627
656
#else
628
657
Debug . Log ( errorMsgPlatform ) ;
629
658
#endif
You can’t perform that action at this time.
0 commit comments