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"); } }
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"); } }
public static extern void AERSERVSDK_IOS_show_banner(String plc, int width, int height, int position, OnAerServEvent onAerServEvent, String configJson);
public static extern void AERSERVSDK_IOS_preload_interstitial(String plc, OnAerServEvent onAerServEvent, String configJson);