fix: 更新 pubmatic 配置导入方式

deeplink
胡宇飞 2024-02-01 20:48:09 +08:00
parent 784f9da3a0
commit 017d7177f4
1 changed files with 6 additions and 4 deletions

View File

@ -588,12 +588,16 @@ namespace Guru.Editor
{
p = n.serializedObject.FindProperty("PubmaticSetting.Enable");
p.boolValue = true;
p = n.serializedObject.FindProperty("PubmaticSetting.Android.storeUrl");
if(p != null) p.stringValue = _servicesConfig.app_settings.android_store;
p = n.serializedObject.FindProperty("PubmaticSetting.iOS.storeUrl");
if(p != null) p.stringValue = _servicesConfig.app_settings.ios_store;
arr = _servicesConfig.ad_settings.pubmatic_ids_android;
if (IsArrayHasLength(arr, 3))
{
p = n.serializedObject.FindProperty("PubmaticSetting.Android.storeUrl");
p.stringValue = _servicesConfig.app_settings.android_store;
p = n.serializedObject.FindProperty("PubmaticSetting.Android.bannerUnitID");
p.stringValue = arr[0];
p = n.serializedObject.FindProperty("PubmaticSetting.Android.interUnitID");
@ -605,8 +609,6 @@ namespace Guru.Editor
arr = _servicesConfig.ad_settings.pubmatic_ids_ios;
if (IsArrayHasLength(arr, 3))
{
p = n.serializedObject.FindProperty("PubmaticSetting.iOS.storeUrl");
p.stringValue = _servicesConfig.app_settings.ios_store;
p = n.serializedObject.FindProperty("PubmaticSetting.iOS.bannerUnitID");
p.stringValue = arr[0];
p = n.serializedObject.FindProperty("PubmaticSetting.iOS.interUnitID");