@zwenqiang
2016-07-28T01:27:15.000000Z
字数 3395
阅读 1855
蘑菇街
/api/commodity/getCpmCodes
返回
visible: 1,link: "http://act.mogujie.com/xiaoyi2",img: "http://s17.mogucdn.com/p1/160307/17y7a3_ifqtinzxgnqtmobsg4zdambqgyyde_710x245.jpg",showCount: 0,type: 1,id: 9,categoryName: "",title: "CPC活动页百灵测试",height: 245,norm: "逛逛逛第五屏活动页",updated: 1465264544,adId: "2400000000",created: 1457354617,ctr: "0.00",key: "app_index_321activity",backColor: "#455161",cnt: 3,status: 0,width: 710,image: "http://s17.mogucdn.com/p1/160307/17y7a3_ifrtgnlggy3dmobsg4zdambqhayde_247x542.png",code: "app_index_321activity",size: 500,lowprice: 10,hits: 0,price: 0,flag: 1, #这个字段表示这个资源位为定投资源位codeGroup: 0,lowlimitfee: 200,doudi: "[{"img":"http:\/\/s17.mogucdn.com\/p1\/160307\/17y7a3_ifqtinzxgnqtmobsg4zdambqgyyde_710x245.jpg","link":"http:\/\/act.mogujie.com\/xiaoyi2","backColor":"#455161","adId":"2400000000"}]"},
/api/commodity/editCommodityPriceByBatch
请求参数
commodityIds[]
businessType # 1 => CPM
tagIds[] # 定投类目id
price # 修改定投价格
flag #修改级别; 计划级别/宝贝级别 1/0
/api/commodity/editCommodityPriceByBatch
请求参数
commodityIds[]
timeRange # 定投宝贝区间 String类型
price # 修改定投价格
flag # 计划级别/宝贝级别
GET请求 api/commodity/getCommodityTimeRange?commodityId=35869471
请求参数
commodityId
返回结果
{result: "0;1;2;3;4;5;6;7;8;9;10;11;12;13;14",status: {code: 1001,msg: "正常"},success: true}
GET请求 /api/commodity/cpmCategories
请求参数
commodityId
其中返回结果中 键(4) =>父类目TagId
每一个父类目下3个子类目,如女装(父类目)下女装高、女装中、女装低
suffix 分别替代高中低
isTargeted 字段true表示这个已经投放
返回结果
{"result": [{"tagName": "女士配饰","parentTagId": 16,"list": [{"title": "高","tagName": "女士配饰","isTargeted": false,"tagId": 1601},{"title": "中","tagName": "女士配饰","isTargeted": false,"tagId": 1602},{"title": "低","tagName": "女士配饰","isTargeted": false,"tagId": 1603}]},{"tagName": "女装","parentTagId": 4,"list": [{"title": "高","tagName": "女装","isTargeted": true,"tagId": 401},{"title": "中","tagName": "女装","isTargeted": true,"tagId": 402},{"title": "低","tagName": "女装","isTargeted": false,"tagId": 403}]},{
POST /api/commodity/cpmCategories
请求参数
commodityIdtagIds[]
/api/plan/commodity
在原来的字段上新加了2个字段isTarget 和canTarget。 分别表示是否已经定投和是否可以参加定投。
返回结果
{"result": {"list": [{"payPrice": 0,"showCount": 0,"limitbudget": 200,"type": 1,"consume": 0,"id": 34505813,"codeName": "CPC活动页百灵测试","tradeItemId": 5150469,"isTarget": false,"name": "寒霜测试2","userId": 62542216,"parentStatus": 1,"devtype": 1,"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","timeStr" : "全时段","status": 1,"canTarget": true,"format": {"height": 245,"width": 710,"size": 37622},"code": "app_index_321activity","planId": 5109013,"limitprice": 10,"hits": 0,"flag": true,"codeId": 9,"price": 10,"effect": {"rank": ">10","avgPrice": 0,"maxPrice": 0},"limitFee": 200,"commodityId": 34505813,"payOrders": 0,"unitId": 5160232,"statusDesc": "推广中(无创意可用)"},
GET /api/commodity/getRateByTagIds
目前数据暂时无法获取,所以接口返回的是0.1
POST /api/commodity/addCommodity
在原来参数的基础上添加了
timeRange String类型tagIds[]