巨量星图-点击监测和数据回传
巨量星图后台:https://www.xingtu.cn/ad/creator/index
星图监测联调工具使用说明:https://www.xingtu.cn/help-center/demander/121314
点击监测
指派类、投稿和招募非转化/付费分佣类任务 点击监测链接举例
1
https://域名/路径?os=__OS__&TIMESTAMP=__TS__&model=__MODEL__&ua=__UA__&ip=__IP__&callback=__CALLBACK_PARAM__&callbackUrl=__CALLBACK_URL__&itemId=__ITEM_ID__&demandId=__DEMAND_ID__&awemeAuthorId=__AWEME_AUTHOR_ID__
投稿和招募按转化、付费分佣结算任务 点击监测链接举例
1
https://域名/路径?os=__OS__&TIMESTAMP=__TS__&model=__MODEL__&ua=__UA__&ip=__IP__&callback=__CALLBACK_PARAM__&callbackUrl=__CALLBACK_URL__&itemId=__ITEM_ID__&demandId=__DEMAND_ID__
数据回传
手机号码加密代码
加密算法文档地址:https://bytedance.larkoffice.com/docx/YNEGdIF6IoKupfxP9CBcYOSInse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24private static String encrypt(String str) throws Exception {
String publicKeyAsString =
"-----BEGIN PUBLIC KEY-----\n" +
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCmnVrcCkHV8b+2BaMSC95DY0z9\n" +
"9B7MgFoHMxXaZn0k6fvUXJTgxXtYleGFdoifHSVsrJIB0P1V4hazTIyDLnHGFOCp\n" +
"UnYkLE2L8M/l0msAiKmShlxQAPB9IBNLOLFcp3qubLjfGGB1xfsDXHY9dAxYY8XC\n" +
"edrYgXwkA0i3/dL+UQIDAQAB\n" +
"-----END PUBLIC KEY-----";
String publicKeyPem = publicKeyAsString
.replace("-----BEGIN PUBLIC KEY-----", "")
.replaceAll("\\n", "")
.replace("-----END PUBLIC KEY-----", "");
byte[] keyContentAsBytes = Base64.getDecoder().decode(publicKeyPem);
KeyFactory fact = KeyFactory.getInstance("RSA");
X509EncodedKeySpec pubKeySpec = new X509EncodedKeySpec(keyContentAsBytes);
String publicKey = Base64.getEncoder().encodeToString(fact.generatePublic(pubKeySpec).getEncoded());
byte[] decoded = Base64.getDecoder().decode(publicKey);
RSAPublicKey pubKey = (RSAPublicKey) KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(decoded));
Cipher cipher = Cipher.getInstance("RSA");
cipher.init(Cipher.ENCRYPT_MODE, pubKey);
return Base64.getEncoder().encodeToString(cipher.doFinal(str.getBytes(StandardCharsets.UTF_8)));
}表单提交回调
1
https://ad.oceanengine.com/track/activate/?callback=<clickId>&event_type=3&phone_num=<加密后的手机号码>
付费回调
1
https://ad.oceanengine.com/track/activate/?callback=<clickid>&event_type=2&props={"pay_amount":"1000"}
效果展示
点击监测和数据回传配置
巨量星图-点击监测和数据回传
https://cason.work/2025/02/07/巨量星图-点击监测和数据回传/