Update Manta report through 2026-10-14
This commit is contained in:
+25
-1
@@ -474,7 +474,7 @@
|
|||||||
"owner": "万科",
|
"owner": "万科",
|
||||||
"geo": "RU",
|
"geo": "RU",
|
||||||
"platform": "MTG",
|
"platform": "MTG",
|
||||||
"status": "Active",
|
"status": "Pause",
|
||||||
"kpi": "-",
|
"kpi": "-",
|
||||||
"remark": "",
|
"remark": "",
|
||||||
"channel": "mintegral"
|
"channel": "mintegral"
|
||||||
@@ -1090,5 +1090,29 @@
|
|||||||
"kpi": "",
|
"kpi": "",
|
||||||
"remark": "",
|
"remark": "",
|
||||||
"channel": "lacuna"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -55,7 +55,10 @@ if events_path:
|
|||||||
event_row.get('event_name','').strip().lower())
|
event_row.get('event_name','').strip().lower())
|
||||||
events[key] = events.get(key, 0) + num(event_row.get('event_num'))
|
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):
|
def active_on(meta, date):
|
||||||
"""Respect the Campaign info remark such as 0912新上 for historical backfills."""
|
"""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()
|
pkg, source = cell(raw_row, 'pkg').strip(), cell(raw_row, 'source').strip().lower()
|
||||||
campaign = cell(raw_row, 'campaign').strip()
|
campaign = cell(raw_row, 'campaign').strip()
|
||||||
if not pkg or not source or not campaign: continue
|
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
|
date = cell(raw_row, 'date').strip() or target
|
||||||
if date != target: continue
|
if date != target: continue
|
||||||
exp = next((meta for adping, meta in experiment.get((pkg, source), [])
|
exp = next((meta for adping, meta in experiment.get((pkg, source), [])
|
||||||
|
|||||||
Reference in New Issue
Block a user