Esempio n. 1
0
        public static bool CheckConfiguration_Android(Yodo1AdSettings settings)
        {
            if (settings == null)
            {
                string message = "MAS Android settings is null, please check the configuration.";
                Debug.LogError("[Yodo1 Mas] " + message);
                Yodo1AdUtils.ShowAlert("Error", message, "Ok");
                return(false);
            }

            if (string.IsNullOrEmpty(settings.androidSettings.AppKey.Trim()))
            {
                string message = "MAS Android AppKey is null, please check the configuration.";
                Debug.LogError("[Yodo1 Mas] " + message);
                Yodo1AdUtils.ShowAlert("Error", message, "Ok");
                return(false);
            }

            if (settings.androidSettings.ChineseAndroidStores && string.IsNullOrEmpty(settings.androidSettings.Channel.Trim()))
            {
                string message = "MAS Android Channel is null, please check the configuration.";
                Debug.LogError("[Yodo1 Mas] " + message);
                Yodo1AdUtils.ShowAlert("Error", message, "Ok");
                return(false);
            }

            if (settings.androidSettings.GooglePlayStore && string.IsNullOrEmpty(settings.androidSettings.AdmobAppID.Trim()))
            {
                string message = "MAS Android AdMob App ID is null, please check the configuration.";
                Debug.LogError("[Yodo1 Mas] " + message);
                Yodo1AdUtils.ShowAlert("Error", message, "Ok");
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        public static bool CheckConfiguration_iOS(Yodo1AdSettings settings)
        {
            if (settings == null)
            {
                string message = "MAS iOS settings is null, please check the configuration.";
                Debug.LogError("[Yodo1 Mas] " + message);
                Yodo1AdUtils.ShowAlert("Error", message, "Ok");
                return(false);
            }

            if (string.IsNullOrEmpty(settings.iOSSettings.AppKey.Trim()))
            {
                string message = "MAS iOS AppKey is null, please check the configuration.";
                Debug.LogError("[Yodo1 Mas] " + message);
                Yodo1AdUtils.ShowAlert("Error", message, "Ok");
                return(false);
            }

            if (settings.iOSSettings.GlobalRegion && string.IsNullOrEmpty(settings.iOSSettings.AdmobAppID.Trim()))
            {
                string message = "MAS iOS AdMob App ID is null, please check the configuration.";
                Debug.LogError("[Yodo1 Mas] " + message);
                Yodo1AdUtils.ShowAlert("Error", message, "Ok");
                return(false);
            }
            return(true);
        }