Update Manta report through 2026-10-14

This commit is contained in:
Codex
2026-10-15 13:00:15 +08:00
parent d44bd8c8c5
commit 8c80586f32
3 changed files with 34 additions and 3 deletions
+25 -1
View File
@@ -474,7 +474,7 @@
"owner": "万科",
"geo": "RU",
"platform": "MTG",
"status": "Active",
"status": "Pause",
"kpi": "-",
"remark": "",
"channel": "mintegral"
@@ -1090,5 +1090,29 @@
"kpi": "",
"remark": "",
"channel": "lacuna"
},
{
"pkg": "com.kubi.kucoin",
"adping_id": "10815258",
"group": "实验组",
"owner": "万科",
"geo": "RU",
"platform": "MTG",
"status": "Active",
"kpi": "-",
"remark": "1012新上",
"channel": "mintegral"
},
{
"pkg": "com.uma.musicvk",
"adping_id": "13220287",
"group": "实验组",
"owner": "万科",
"geo": "RU",
"platform": "MTG",
"status": "Active",
"kpi": "-",
"remark": "1012新上",
"channel": "mintegral"
}
]
+1 -1
View File
File diff suppressed because one or more lines are too long
+8 -1
View File
@@ -55,7 +55,10 @@ if events_path:
event_row.get('event_name','').strip().lower())
events[key] = events.get(key, 0) + num(event_row.get('event_num'))
config = [r for r in json.load(open('campaign_config.json', encoding='utf-8')) if r['status'].lower() == 'active']
all_config = json.load(open('campaign_config.json', encoding='utf-8'))
inactive_experiments = [r for r in all_config
if r['group'] == '实验组' and r['status'].lower() != 'active']
config = [r for r in all_config if r['status'].lower() == 'active']
def active_on(meta, date):
"""Respect the Campaign info remark such as 0912新上 for historical backfills."""
@@ -90,6 +93,10 @@ for raw_row in matrix[1:] if has_header else matrix:
pkg, source = cell(raw_row, 'pkg').strip(), cell(raw_row, 'source').strip().lower()
campaign = cell(raw_row, 'campaign').strip()
if not pkg or not source or not campaign: continue
# Do not let a known paused experiment fall through to control GEO matching.
if any(re.search(r'(?<!\d)' + re.escape(str(meta['adping_id'])) + r'(?!\d)', campaign)
for meta in inactive_experiments):
continue
date = cell(raw_row, 'date').strip() or target
if date != target: continue
exp = next((meta for adping, meta in experiment.get((pkg, source), [])