渠道来源细分
优质
小牛编辑
131浏览
2023-12-01
功能介绍
获取本APP渠道来源细分相关数据
接口
https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey
请求参数
此处仅列本接口特有参数,公共参数请参考报告级API说明
获取表格数据
参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|
method | string | 是 | channelsrc/a;channelsrc/f |
metrics | string | 是 | 指标列表,指标间逗号分隔 |
指标
指标名 | 描述 | 适用接口 |
---|---|---|
click_count | 点击总数 | channelsrc/a,channelsrc/f |
click_count_unique | 去重点击数 | channelsrc/a,channelsrc/f |
click_count_mobile | 移动设备点击数 | channelsrc/a,channelsrc/f |
activate_count | 激活数 | channelsrc/a,channelsrc/f |
transfer_ratio | 转化率 | channelsrc/a |
对于
channelsrc/f
的请求,其channel
参数必填;对于channelsrc/a
的请求,其channel
参数无效
示例
获取渠道来源细分表格数据
请求
https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey?access_token=[ACCESS_TOKEN]&key=[APP_KEY]&method=channelsrc/a&start-date=20170101000000&end-date=20170101232359&metrics=click_count,click_count_unique,click_count_mobile,activate_count,transfer_ratio
响应
{
"status": 0,
"msg": "",
"data": {
"offset": 0,
"timeSpan": [
"2017/11/02 - 2017/11/08"
],
"fields": [
"channel_title",
"click_count",
"click_count_mobile",
"click_count_unique",
"activate_count",
"transfer_ratio"
],
"total": 2,
"sum": [
[
"--",
"--",
"--",
"--",
"--"
],
[]
],
"pageSum": [],
"items": [
[
[
{
"channelId": "37521",
"channelName": "限时免费大全iphone1",
"channelUrl": "http://click.hm.baidu.com/app.gif?ap=20313&ch=37521",
"appUrl": "https://itunes.apple.com/cn/app/bai-du-shi-pin-ying-yin-ban/id588287777?mt=8"
}
],
[
{
"channelId": "21127",
"channelName": "网易杂志iPad",
"channelUrl": "http://click.hm.baidu.com/app.gif?ap=20313&ch=21127",
"appUrl": "http://itunes.apple.com/cn/app/bai-du-shi-pinhd/id573885698?mt=8"
}
],
],
[
[
52,
2,
39,
18,
46.15
],
[
34,
34,
28,
0,
0
],
],
[],
[]
]
}
}