读配置文件
This commit is contained in:
parent
475f7ec184
commit
3702baf64b
|
@ -128,6 +128,15 @@ namespace WZ
|
|||
}else if (_configs[i].Key.ToLower() == KEY_Admob_NativeId.ToLower())
|
||||
{
|
||||
StaticValue.AdmobNativeId = valueTemp;
|
||||
}else if (_configs[i].Key.ToLower() == KEY_Admob_SMALL_NativeId.ToLower())
|
||||
{
|
||||
StaticValue.AdmobSmallNativeId = valueTemp;
|
||||
}else if (_configs[i].Key.ToLower() == KEY_Admob_MINDDLE_NativeId.ToLower())
|
||||
{
|
||||
StaticValue.AdmobMinddleNativeId = valueTemp;
|
||||
}else if (_configs[i].Key.ToLower() == KEY_Admob_FULL_NativeId.ToLower())
|
||||
{
|
||||
StaticValue.AdmobFullNativeId = valueTemp;
|
||||
}else if (_configs[i].Key.ToLower() == KEY_Admob_RewardId.ToLower())
|
||||
{
|
||||
StaticValue.AdmobRewardId = valueTemp;
|
||||
|
@ -290,6 +299,9 @@ namespace WZ
|
|||
public const string KEY_Admob_NormalBannerId = "Admob_Banner_ID2";
|
||||
public const string KEY_Admob_SplashId = "Admob_APPOPEN_ID";
|
||||
public const string KEY_Admob_NativeId = "Admob_NATIVE_ID";
|
||||
public const string KEY_Admob_SMALL_NativeId = "ADMOB_SMALL_NATIVE_ID";
|
||||
public const string KEY_Admob_MINDDLE_NativeId = "ADMOB_MIDDLE_NATIVE_ID";
|
||||
public const string KEY_Admob_FULL_NativeId = "Admob_FULL_NATIVE_ID";
|
||||
public const string KEY_Admob_RewardId = "Admob_RV_ID";
|
||||
public const string KEY_Admob_InterId = "Admob_IV_ID";
|
||||
public const string KEY_PRIVACY_URL = "tka_url_privacy";
|
||||
|
|
|
@ -14,6 +14,9 @@ namespace WZ
|
|||
public static string AdmobSplashId = "";
|
||||
|
||||
public static string AdmobNativeId = "";
|
||||
public static string AdmobSmallNativeId = "";
|
||||
public static string AdmobMinddleNativeId = "";
|
||||
public static string AdmobFullNativeId = "";
|
||||
|
||||
public static string AdmobRewardId = "";
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace WZ
|
|||
{
|
||||
AdsType.Banner => new List<string> { StaticValue.AdmobNormalBannerId },
|
||||
AdsType.Rewarded => new List<string> { StaticValue.AdmobRewardId },
|
||||
AdsType.Native => new List<string> { StaticValue.AdmobNativeId },
|
||||
AdsType.Native => new List<string> { StaticValue.AdmobNativeId, StaticValue.AdmobMinddleNativeId, StaticValue.AdmobSmallNativeId, StaticValue.AdmobFullNativeId },
|
||||
AdsType.Splash => new List<string> { StaticValue.AdmobSplashId },
|
||||
AdsType.Interstitial => new List<string> { StaticValue.AdmobInterId },
|
||||
_ => new List<string>()
|
||||
|
|
Loading…
Reference in New Issue