Files

309 lines
13 KiB
JavaScript

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'],
['{ad_type}', 'Ad type'],
['{adv_campaign_id}', 'Campaign unique number ID'],
['{adv_offer_id}', 'Offer unique number ID'],
['{affiliate_id}', 'Sub channel ID on MTG platform'],
['{amazon_id}', 'Amazon device ID'],
['{android_id_md5_low}', 'Android ID MD5 lowercase'],
['{android_id_md5}', 'Android ID MD5 (32-bit lowercase)'],
['{android_id}', 'Android ID for attribution'],
['{billing_type}', 'Billing type'],
['{click_id}', 'Click ID defined by MTG'],
['{cn_event_callback}', 'CN-region event callback URL'],
['{cn_install_callback}', 'CN-region install callback URL'],
['{country_code}', 'ISO 3166-1 alpha-2 country code'],
['{creative_group}', 'Creative group'],
['{creative_id}', 'Creative ID'],
['{creative_name}', 'Creative name'],
['{ctgv_usd}', 'Target goal value USD'],
['{currency}', 'Currency type'],
['{device_brand}', 'Device brand'],
['{device_id}', 'IDFA for iOS or GAID for Android'],
['{device_model}', 'Device model'],
['{device_os}', 'Device OS: iOS or Android'],
['{encode}', 'AppsFlyer encryption parameter'],
['{event_callback}', 'Event callback URL'],
['{event_callback_url}', 'Event callback URL for web'],
['{gaid_md5}', 'GAID MD5 (32-bit lowercase)'],
['{gaid}', 'Google advertising ID'],
['{idfa_md5}', 'IDFA MD5 (32-bit lowercase)'],
['{idfa}', 'iOS identifier for advertising'],
['{idfv}', 'IDFV'],
['{imei_md5}', 'IMEI MD5 (32-bit lowercase)'],
['{imei}', 'IMEI for Android attribution'],
['{impression_id}', 'Impression ID defined by MTG'],
['{install_callback}', 'Install callback URL'],
['{install_callback_url}', 'Install callback URL for web'],
['{ip}', 'IP address for fingerprint attribution'],
['{mac_md5}', 'MAC MD5 (32-bit lowercase)'],
['{mac}', 'Media access control address'],
['{microtime}', 'Microtime'],
['{oaid_md5}', 'OAID MD5'],
['{oaid}', 'OAID'],
['{offer_name}', 'Offer name'],
['{os_platform}', 'OS platform'],
['{os_version}', 'OS version'],
['{package_name}', 'Package name'],
['{price}', 'Price'],
['{timestamp}', 'Timestamp'],
['{ua}', 'User agent'],
['{uuid}', 'Promotion ID defined by MTG']
],
links: {
click: {
mappings: {
clickid: '{click_id}',
offer_name: '{offer_name}',
creative_id: '{ad_id}',
creative_name: '{ad_name}',
affiliate_id: '{affiliate_id}',
idfa: '{idfa}',
gaid: '{gaid}',
imei: '{imei}',
android_id: '{android_id}',
mac: '{mac}',
oaid: '{oaid}',
uagent: '{ua}',
os_platform: '{device_os}',
os_version: '{os_version}',
device_model: '{device_model}',
ip: '{ip}',
country_code: '{country_code}',
ext: '{uuid}',
rta_token: '{rta_token}'
}
}
}
},
{
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}'
}
}
}
},
{
name: 'LoopMe',
platformCode: 'M_API_Self_Loopme',
status: 'Click 已确认',
sample: 'https://trident.bigpinggo.com/click?advid=30&campid=7211083&platform=M_API_Self_Loopme&pkg=com.zhiliaoapp.musically&clickid={ad_delivery_token}&offer_name={camp_name}&creative_id={creative_id}&creative_name={creative_name}&affiliate_id={bundle_domain}&idfa={device_id}&gaid={device_id}&imei=&android_id={udid}&mac=&oaid=&uagent={user_agent}&os_platform={device_os}&os_version={device_os_ver}&device_model={device_make}&ip={ip_address}&country_code={country_code}&ext={publisher_id}&rta_token={rta_token}&san_campid=91363455&adset_id=30116&c_cto=0',
macros: [
['{ad_delivery_token}', 'Ad delivery token'],
['{device_id}', 'GAID for Android or IDFA for iOS'],
['{timestamp}', 'Unix timestamp'],
['{camp_name}', 'Campaign name'],
['{creative_id}', 'Creative ID'],
['{creative_name}', 'Creative name'],
['{bundle_domain}', 'App bundle or site domain'],
['{udid}', 'Device ID'],
['{user_agent}', 'User agent'],
['{device_os}', 'Device operating system'],
['{device_os_ver}', 'Device OS version'],
['{device_make}', 'Device manufacturer'],
['{ip_address}', 'Device IP address'],
['{country_code}', 'Two-letter country code'],
['{publisher_id}', 'Publisher ID']
],
links: {
click: {
mappings: {
clickid: '{ad_delivery_token}_{device_id}_{timestamp}',
offer_name: '{camp_name}',
creative_id: '{creative_id}',
creative_name: '{creative_name}',
affiliate_id: '{bundle_domain}',
idfa: '{device_id}',
gaid: '{device_id}',
imei: '',
android_id: '{udid}',
mac: '',
oaid: '',
uagent: '{user_agent}',
os_platform: '{device_os}',
os_version: '{device_os_ver}',
device_model: '{device_make}',
ip: '{ip_address}',
country_code: '{country_code}',
ext: '{publisher_id}',
rta_token: '{rta_token}'
}
}
}
},
{
name: 'NewsBreak',
platformCode: 'M_API_Newsbreak',
status: 'Click 已确认',
sample: 'https://trident.bigpinggo.com/l/click?advid=30&campid=91565959&platform=M_API_Newsbreak&pkg=selectmypolicy.com&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=91565959&adset_id=-1&c_cto=0',
macros: [
['__CALLBACK_PARAM__', 'Unique callback parameter / Click ID'],
['__CAMPAIGN_ID__', 'Campaign ID'],
['__CAMPAIGN_NAME__', 'Campaign name'],
['__FLIGHT_ID__', 'Ad set / Flight ID'],
['__FLIGHT_NAME__', 'Ad set / Flight name'],
['__CREATIVE_ID__', 'Creative ID'],
['__CREATIVE_NAME__', 'Creative name'],
['__ADID__', 'Google advertising ID'],
['__IDFA__', 'iOS advertising ID'],
['__OS__', 'Operating system']
],
links: {
click: {
mappings: {
clickid: '__CALLBACK_PARAM__',
offer_name: '__CAMPAIGN_NAME__',
creative_id: '__CREATIVE_ID__',
creative_name: '__CREATIVE_NAME__',
affiliate_id: '__FLIGHT_ID_____FLIGHT_NAME__',
idfa: '__IDFA__',
gaid: '__ADID__',
imei: '',
android_id: '',
mac: '',
oaid: '',
uagent: '',
os_platform: '__OS__',
os_version: '',
device_model: '',
ip: '',
country_code: 'US',
ext: '',
rta_token: '{rta_token}'
}
}
}
},
{
name: 'Midas',
platformCode: 'M_API_Midas',
status: 'Click 已确认',
sample: 'https://trident.bigpinggo.com/l/click?advid=30&campid=91575139&platform=M_API_Midas&pkg=com.ss.android.ugc.trill&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=91575139&adset_id=-1&c_cto=0',
macros: [
['{clickid}', 'Midas Click ID'],
['{channel_pkg}', 'Media app ID / package name'],
['{idfa}', 'iOS advertising ID'],
['{gaid}', 'Google advertising ID'],
['{imei}', 'Device IMEI'],
['{android_id}', 'Android device ID'],
['{oaid}', 'Open Anonymous Device Identifier'],
['{uagent}', 'User agent'],
['{os_version}', 'Operating system version'],
['{device_model}', 'Device model'],
['{ip}', 'IP address'],
['{country}', 'Two-letter country code']
],
links: {
click: {
mappings: {
clickid: '{clickid}',
offer_name: '',
creative_id: '',
creative_name: '',
affiliate_id: '{channel_pkg}',
idfa: '{idfa}',
gaid: '{gaid}',
imei: '{imei}',
android_id: '{android_id}',
mac: '',
oaid: '{oaid}',
uagent: '{uagent}',
os_platform: '',
os_version: '{os_version}',
device_model: '{device_model}',
ip: '{ip}',
country_code: '{country}',
ext: '',
rta_token: '{rta_token}'
}
}
}
},
{
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: ''
}
}
}
}
];