渠道来源细分

优质
小牛编辑
131浏览
2023-12-01

功能介绍

获取本APP渠道来源细分相关数据

接口

https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey

请求参数

此处仅列本接口特有参数,公共参数请参考报告级API说明

获取表格数据

参数名参数类型是否必须描述
methodstringchannelsrc/a;channelsrc/f
metricsstring指标列表,指标间逗号分隔

指标

指标名描述适用接口
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
                ],
            ],
            [],
            []
        ]
    }
}