渠道来源细分

功能介绍

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

接口

  1. 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参数无效

示例

获取渠道来源细分表格数据

请求

  1. 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

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "offset": 0,
  6. "timeSpan": [
  7. "2017/11/02 - 2017/11/08"
  8. ],
  9. "fields": [
  10. "channel_title",
  11. "click_count",
  12. "click_count_mobile",
  13. "click_count_unique",
  14. "activate_count",
  15. "transfer_ratio"
  16. ],
  17. "total": 2,
  18. "sum": [
  19. [
  20. "--",
  21. "--",
  22. "--",
  23. "--",
  24. "--"
  25. ],
  26. []
  27. ],
  28. "pageSum": [],
  29. "items": [
  30. [
  31. [
  32. {
  33. "channelId": "37521",
  34. "channelName": "限时免费大全iphone1",
  35. "channelUrl": "http://click.hm.baidu.com/app.gif?ap=20313&ch=37521",
  36. "appUrl": "https://itunes.apple.com/cn/app/bai-du-shi-pin-ying-yin-ban/id588287777?mt=8"
  37. }
  38. ],
  39. [
  40. {
  41. "channelId": "21127",
  42. "channelName": "网易杂志iPad",
  43. "channelUrl": "http://click.hm.baidu.com/app.gif?ap=20313&ch=21127",
  44. "appUrl": "http://itunes.apple.com/cn/app/bai-du-shi-pinhd/id573885698?mt=8"
  45. }
  46. ],
  47. ],
  48. [
  49. [
  50. 52,
  51. 2,
  52. 39,
  53. 18,
  54. 46.15
  55. ],
  56. [
  57. 34,
  58. 34,
  59. 28,
  60. 0,
  61. 0
  62. ],
  63. ],
  64. [],
  65. []
  66. ]
  67. }
  68. }