【POST】 /ark/uba/api/operations/utm
// 【非必填】通过urlPath传参, username是创建人的用户名
loginUser=?
// body 中传参
{
// 【必填】目标网址
"pageUrl": "http://www.baidu.com",
// 【必填】广告名称
"utmCampaign": "xx平台广告",
// 【必填】广告媒介
"utmMedium": "品牌搜索",
// 【必填】广告来源
"utmSource": "微博",
// 广告内容
"utmContent": "点击领取优惠券",
// 广告关键字
"utmTerm": "优惠券",
// 备注
"remarks": ""
}
认证参数:接口必传token和appKey两个参数,详情见 项目接口认证。
{
"success":0,
// 广告跟踪唯一标识
"campaignId": 124343232
}
curl -H "Content-Type:application/json" -H "token:4113c9cad1c301113783f433e254888c" -H "appKey:31abd9593e9983ec" -X POST --data '{
"utmType": "H5",
"pageUrl": "http://www.baidu.com",
"utmCampaign": "xx平台广告",
"utmMedium": "品牌搜索",
"utmSource": "微博",
"utmContent": "点击领取优惠券",
"utmTerm": "优惠券",
"remarks": ""
}' http://127.0.0.1:4005/ark/uba/api/operations/utm?username=admin
【GET】 /ark/uba/api/operations/utm/{campaignId}
//【必填】广告跟踪唯一标识 url路径参数
/ark/uba/api/operations/utm/124343232
认证参数:接口必传token和appKey两个参数,详情见 项目接口认证。
{
"id": 4,
"campaignId": "1591933676",
"utmType": "eee",
"callbackUrl": null,
"pageUrl": "www.as.com",
"utmCampaign": "",
"utmMedium": "xcczx",
"utmSource": "ew",
"utmContent": "fdf",
"utmTerm": "fvdfv",
"checkUrl": null,
"checkShort": null,
"checkQrcode": null,
"url": "www.as.com?campaign_id=1591933676&utm_campaign=&utm_medium=xcczx&utm_source=ew&utm_content=fdf&utm_term=fvdfv",
"shortUrl": "utmJNOubA",
"qrcode": null,
"remarks": "s",
"appKey": "apitestauto",
"userId": -99,
"status": 1,
"createTime": 1618458179000,
"updateTime": 1618486625000,
"canOperated": 0,
"createName": null,
"loginName": null,
"email": null,
"phone": null,
"uniqueSign": "1591933676",
"batchNum": null,
"project": null,
"originUrl": null
}
curl -H "Content-Type:application/json" -H "token:4113c9cad1c301113783f433e254888c" -H "appKey:31abd9593e9983ec" -X GET http://127.0.0.1:4005/ark/uba/api/operations/utm/124343232
【POST】 /ark/uba/api/operations/utm/analysys/{campaignId}
{
// 【必填】查询起始日期
"fromDate": "2021-04-03",
// 【必填】查询结束日期
"toDate": "2021-04-12",
"useCache": true,
// 转化目标
"expression":"event.login"
}
认证参数:接口必传token和appKey两个参数,详情见 项目接口认证。
curl -H "Content-Type:application/json" -H "token:4113c9cad1c301113783f433e254888c" -H "appKey:31abd9593e9983ec" -X POST --data '{
"convertMeasures":[
{
"expression":"event.login",
"aggregator":"TRIGGER_USER_COUNT"
}
],
"fromDate": "2021-04-03",
"toDate": "2021-04-12",
"useCache": true
}' http://127.0.0.1:4005/ark/uba/api/operations/utm/analysys/124343232
【DELETE】 /ark/uba/api/operations/utm/drop/{campaignId}
//【必填】广告跟踪唯一标识 url路径参数
/ark/uba/api/operations/utm/drop/124343232
认证参数:接口必传token和appKey两个参数,详情见 项目接口认证。
curl -H "token:4113c9cad1c301113783f433e254888c" -H "appKey:31abd9593e9983ec" -X DELETE http://127.0.0.1:4005/ark/uba/api/operations/utm/drop/124343232