feat: add Adsterra link conversion

This commit is contained in:
王源
2026-10-20 18:39:37 +08:00
parent 704df02775
commit f486d3454d
7 changed files with 61 additions and 13 deletions
+41
View File
@@ -263,5 +263,46 @@ window.LINK_TEMPLATES = [
}
}
}
},
{
name: 'Adsterra',
platformCode: 'P_API_Adsterra',
status: 'Click 已确认',
sample: 'https://trident.bigpinggo.com/l/click?advid=30&campid=91513413&platform=P_API_Adsterra&pkg=org.melbet.client&clickid={click_id}&offer_name={offer_name}&creative_id={creative_id}&creative_name={creative_name}&affiliate_id={affiliate_id}&idfa={idfa}&gaid={gaid}&imei={imei}&android_id={android_id}&mac={mac}&oaid={oaid}&uagent={ua}&os_platform={os_platform}&os_version={os_version}&device_model={device_model}&ip={ip}&country_code={country_code}&ext={ext}&rta_token={rta_token}&san_campid=91513413&adset_id=-1&c_cto=0',
macros: [
['##SUB_ID_SHORT(action)##', 'Click ID'],
['##PLACEMENT_ID##', 'Placement / affiliate ID'],
['##BANNER_ID##', 'Creative ID'],
['##USERAGENT##', 'User agent'],
['##USER_OS##', 'Device operating system'],
['##USER_OS_VER##', 'Operating system version'],
['##REMOTE_IP##', 'IP address'],
['##COUNTRY_CODE##', 'Country code']
],
links: {
click: {
removeParams: ['rta_token', 'san_campid', 'adset_id', 'c_cto'],
mappings: {
clickid: '##SUB_ID_SHORT(action)##',
offer_name: '',
creative_id: '',
creative_name: '',
affiliate_id: '##PLACEMENT_ID##',
idfa: '',
gaid: '',
imei: '',
android_id: '',
mac: '',
oaid: '',
uagent: '',
os_platform: '##USER_OS##',
os_version: '##USER_OS_VER##',
device_model: '',
ip: '##REMOTE_IP##',
country_code: 'PH',
ext: ''
}
}
}
}
];