[关闭]
@zwenqiang 2016-07-28T01:27:15.000000Z 字数 3395 阅读 1466

CPM定投类目文档

蘑菇街


获取定投资源位(使用原来的接口)

/api/commodity/getCpmCodes
返回

增加flag字段标示这个资源位为定投资源位

  1. visible: 1,
  2. link: "http://act.mogujie.com/xiaoyi2",
  3. img: "http://s17.mogucdn.com/p1/160307/17y7a3_ifqtinzxgnqtmobsg4zdambqgyyde_710x245.jpg",
  4. showCount: 0,
  5. type: 1,
  6. id: 9,
  7. categoryName: "",
  8. title: "CPC活动页百灵测试",
  9. height: 245,
  10. norm: "逛逛逛第五屏活动页",
  11. updated: 1465264544,
  12. adId: "2400000000",
  13. created: 1457354617,
  14. ctr: "0.00",
  15. key: "app_index_321activity",
  16. backColor: "#455161",
  17. cnt: 3,
  18. status: 0,
  19. width: 710,
  20. image: "http://s17.mogucdn.com/p1/160307/17y7a3_ifrtgnlggy3dmobsg4zdambqhayde_247x542.png",
  21. code: "app_index_321activity",
  22. size: 500,
  23. lowprice: 10,
  24. hits: 0,
  25. price: 0,
  26. flag: 1, #这个字段表示这个资源位为定投资源位
  27. codeGroup: 0,
  28. lowlimitfee: 200,
  29. doudi: "[{"img":"http:\/\/s17.mogucdn.com\/p1\/160307\/17y7a3_ifqtinzxgnqtmobsg4zdambqgyyde_710x245.jpg","link":"http:\/\/act.mogujie.com\/xiaoyi2","backColor":"#455161","adId":"2400000000"}]"
  30. },

CPM定投对定投类目的修改(使用原来的接口)

/api/commodity/editCommodityPriceByBatch
请求参数

commodityIds[]
businessType # 1 => CPM
tagIds[] # 定投类目id
price # 修改定投价格
flag #修改级别; 计划级别/宝贝级别 1/0

CPM定投对定投时间区间的修改(使用原来的接口)

/api/commodity/editCommodityPriceByBatch
请求参数

commodityIds[]
timeRange # 定投宝贝区间 String类型
price # 修改定投价格
flag # 计划级别/宝贝级别

获取宝贝的投放时间

GET请求 api/commodity/getCommodityTimeRange?commodityId=35869471
请求参数

commodityId

返回结果

  1. {
  2. result: "0;1;2;3;4;5;6;7;8;9;10;11;12;13;14",
  3. status: {
  4. code: 1001,
  5. msg: "正常"
  6. },
  7. success: true
  8. }

获取百灵页面宝贝的定投类目(区分没有定投)

GET请求 /api/commodity/cpmCategories
请求参数

commodityId

其中返回结果中 键(4) =>父类目TagId
每一个父类目下3个子类目,如女装(父类目)下女装高、女装中、女装低
suffix 分别替代高中低
isTargeted 字段true表示这个已经投放

返回结果

  1. {
  2. "result": [
  3. {
  4. "tagName": "女士配饰",
  5. "parentTagId": 16,
  6. "list": [
  7. {
  8. "title": "高",
  9. "tagName": "女士配饰",
  10. "isTargeted": false,
  11. "tagId": 1601
  12. },
  13. {
  14. "title": "中",
  15. "tagName": "女士配饰",
  16. "isTargeted": false,
  17. "tagId": 1602
  18. },
  19. {
  20. "title": "低",
  21. "tagName": "女士配饰",
  22. "isTargeted": false,
  23. "tagId": 1603
  24. }
  25. ]
  26. },
  27. {
  28. "tagName": "女装",
  29. "parentTagId": 4,
  30. "list": [
  31. {
  32. "title": "高",
  33. "tagName": "女装",
  34. "isTargeted": true,
  35. "tagId": 401
  36. },
  37. {
  38. "title": "中",
  39. "tagName": "女装",
  40. "isTargeted": true,
  41. "tagId": 402
  42. },
  43. {
  44. "title": "低",
  45. "tagName": "女装",
  46. "isTargeted": false,
  47. "tagId": 403
  48. }
  49. ]
  50. },
  51. {

提交宝贝的类目列表

POST /api/commodity/cpmCategories
请求参数

  1. commodityId
  2. tagIds[]

百灵页面获取宝贝列表(原来的接口) 添加宝贝是否可以定投以及是否已经定投

/api/plan/commodity
在原来的字段上新加了2个字段isTargetcanTarget。 分别表示是否已经定投和是否可以参加定投。
返回结果

  1. {
  2. "result": {
  3. "list": [
  4. {
  5. "payPrice": 0,
  6. "showCount": 0,
  7. "limitbudget": 200,
  8. "type": 1,
  9. "consume": 0,
  10. "id": 34505813,
  11. "codeName": "CPC活动页百灵测试",
  12. "tradeItemId": 5150469,
  13. "isTarget": false,
  14. "name": "寒霜测试2",
  15. "userId": 62542216,
  16. "parentStatus": 1,
  17. "devtype": 1,
  18. "timeRange": "0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;38;39;40;41;42;43;44;45;46;47;48;49;50;51;52;53;54;55;56;57;58;59;60;61;62;63;64;65;66;67;68;69;70;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88;89;90;91;92;93;94;95;96;97;98;99;100;101;102;103;104;105;106;107;108;109;110;111;112;113;114;115;116;117;118;119;120;121;122;123;124;125;126;127;128;129;130;131;132;133;134;135;136;137;138;139;140;141;142;143;144;145;146;147;148;149;150;151;152;153;154;155;156;157;158;159;160;161;162;163;164;165;166;167",
  19. "timeStr" : "全时段",
  20. "status": 1,
  21. "canTarget": true,
  22. "format": {
  23. "height": 245,
  24. "width": 710,
  25. "size": 37622
  26. },
  27. "code": "app_index_321activity",
  28. "planId": 5109013,
  29. "limitprice": 10,
  30. "hits": 0,
  31. "flag": true,
  32. "codeId": 9,
  33. "price": 10,
  34. "effect": {
  35. "rank": ">10",
  36. "avgPrice": 0,
  37. "maxPrice": 0
  38. },
  39. "limitFee": 200,
  40. "commodityId": 34505813,
  41. "payOrders": 0,
  42. "unitId": 5160232,
  43. "statusDesc": "推广中(无创意可用)"
  44. },

根据选择的类目列表获取覆盖人群

GET /api/commodity/getRateByTagIds
目前数据暂时无法获取,所以接口返回的是0.1

添加宝贝是提交类目

POST /api/commodity/addCommodity
在原来参数的基础上添加了

  1. timeRange String类型
  2. tagIds[]
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注