feat: add TaurusX link conversion
This commit is contained in:
@@ -3,6 +3,7 @@ window.LINK_TEMPLATES = [
|
||||
name: 'Mintegral',
|
||||
platformCode: 'M_API_Self_Mintegral',
|
||||
status: 'Click 已确认',
|
||||
sample: 'https://trident.bigpinggo.com/l/click?advid=30&campid=91566789&platform=M_API_Self_Mintegral&pkg=com.salaryse.android&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=91566789&adset_id=-1&c_cto=0',
|
||||
macros: [
|
||||
['{ad_id}', 'Creative ID'],
|
||||
['{ad_name}', 'Creative name'],
|
||||
@@ -81,5 +82,50 @@ window.LINK_TEMPLATES = [
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'TaurusX',
|
||||
platformCode: 'M_API_Self_TaurusxDSP',
|
||||
status: 'Click 已确认',
|
||||
sample: 'https://trident.bigpinggo.com/click?advid=30&campid=13455742&platform=M_API_Self_TaurusxDSP&pkg=com.binance.dev&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=91583061&adset_id=31892&c_cto=0',
|
||||
macros: [
|
||||
['__CLICKID__', 'Click ID'],
|
||||
['__AID_NAME__', 'Offer name'],
|
||||
['__CID__', 'Creative ID'],
|
||||
['__CID_NAME__', 'Creative name'],
|
||||
['__APP_ID__', 'App / affiliate ID'],
|
||||
['__IDFA__', 'iOS advertising ID'],
|
||||
['__GAID__', 'Google advertising ID'],
|
||||
['__UA__', 'User agent'],
|
||||
['__OS__', 'Operating system'],
|
||||
['__DEVICE_MODEL__', 'Device model'],
|
||||
['__IP__', 'IP address'],
|
||||
['__LOCALCOUNTRY__', 'Local country code']
|
||||
],
|
||||
links: {
|
||||
click: {
|
||||
mappings: {
|
||||
clickid: '__CLICKID__',
|
||||
offer_name: '__AID_NAME__',
|
||||
creative_id: '__CID__',
|
||||
creative_name: '__CID_NAME__',
|
||||
affiliate_id: '__APP_ID__',
|
||||
idfa: '__IDFA__',
|
||||
gaid: '__GAID__',
|
||||
imei: '',
|
||||
android_id: '',
|
||||
mac: '',
|
||||
oaid: '',
|
||||
uagent: '__UA__',
|
||||
os_platform: '__OS__',
|
||||
os_version: '',
|
||||
device_model: '__DEVICE_MODEL__',
|
||||
ip: '__IP__',
|
||||
country_code: '__LOCALCOUNTRY__',
|
||||
ext: '',
|
||||
rta_token: '{rta_token}'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
const template = activeTemplate();
|
||||
const review = template.status.includes('待');
|
||||
$('platformStatus').innerHTML = `<span class="template-status ${review ? 'review' : ''}">${escapeHtml(template.status)}</span>`;
|
||||
$('macroReferenceTitle').textContent = `${template.name} 平台宏参考`;
|
||||
renderMacros();
|
||||
if ($('originalLink').value.trim()) convertFromInput(false);
|
||||
}
|
||||
@@ -125,7 +126,7 @@
|
||||
}
|
||||
|
||||
function loadSample() {
|
||||
$('originalLink').value = 'https://trident.bigpinggo.com/l/click?advid=30&campid=91566789&platform=M_API_Self_Mintegral&pkg=com.salaryse.android&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=91566789&adset_id=-1&c_cto=0';
|
||||
$('originalLink').value = activeTemplate().sample || '';
|
||||
convertFromInput(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user