Beispiel #1
0
 public static void InitSdk(String siteId)
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         AerServNativeAdapter.AERSERVSDK_ANDROID_init(siteId);
     }
     else if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         AerServNativeAdapter.AERSERVSDK_IOS_init(siteId);
     }
     else
     {
         Debug.Log("no platform found to init on");
     }
 }
Beispiel #2
0
 public static void KillBanner()
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         AerServNativeAdapter.AERSERVSDK_ANDROID_kill_banner();
     }
     else if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         AerServNativeAdapter.AERSERVSDK_IOS_kill_banner();
     }
     else
     {
         Debug.Log("no platform found to kill banner on");
     }
 }
Beispiel #3
0
 public static void ShowInterstitialForPlc(String plc)
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         AerServNativeAdapter.AERSERVSDK_ANDROID_show_interstitial_for_plc(plc);
     }
     else if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         AerServNativeAdapter.AERSERVSDK_IOS_show_interstitial_for_plc(plc);
     }
     else
     {
         Debug.Log("no platform found to show interstitial on");
     }
 }
Beispiel #4
0
        public static void PreloadInterstitial(String plc, OnAerServEvent onAerServEvent,
                                               Dictionary <string, object> config = null)
        {
            String configJson = convertDictionaryToJsonString(config);

            if (Application.platform == RuntimePlatform.Android)
            {
                AerServNativeAdapter.AERSERVSDK_ANDROID_preload_interstitial(plc, onAerServEvent, configJson);
            }
            else if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                AerServNativeAdapter.AERSERVSDK_IOS_preload_interstitial(plc, onAerServEvent, configJson);
            }
            else
            {
                Debug.Log("no platform found to show interstitial on");
            }
        }
Beispiel #5
0
        public static void ShowBanner(String plc, int width, int height, int position,
                                      OnAerServEvent onAerServEvent, Dictionary <string, object> config = null)
        {
            String configJson = convertDictionaryToJsonString(config);

            if (Application.platform == RuntimePlatform.Android)
            {
                AerServNativeAdapter.AERSERVSDK_ANDROID_show_banner(plc, width, height, position,
                                                                    onAerServEvent, configJson);
            }
            else if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                AerServNativeAdapter.AERSERVSDK_IOS_show_banner(plc, width, height, position,
                                                                onAerServEvent, configJson);
            }
            else
            {
                Debug.Log("no platform found to show banner on");
            }
        }