广告接口文档整理

This commit is contained in:
pengtao 2019-09-23 15:04:55 +08:00
parent da97efa222
commit f1cb2390b0

View File

@ -31,15 +31,20 @@ http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"100
| ad_body | string | 是 | 广告正文 | | ad_body | string | 是 | 广告正文 |
| ad_image | string | 是 | 广告图片 | | ad_image | string | 是 | 广告图片 |
| ad_sort | int | 是 | 播放优先级 | | ad_sort | int | 是 | 播放优先级 |
| adid | int | 是 | 广告标志ID用途数据上传统计 | | id | int | 是 | 广告标志ID用途数据上传统计 |
| name | string | 是 | 广告名称 | | name | string | 是 | 广告名称 |
| jump_status | int | 是 | 跳转状态1=跳转0=不跳 | | jump_status | int | 是 | 跳转状态1=跳转0=不跳 |
| jump_param | string | 是 | 跳转参数 | | jump_param | string | 是 | 跳转参数 |
| area | string | 是 | 区域(第一元素1=首页2=游戏中3=结算页4=关闭第二元素X轴第三元素Y轴其中X,Y取值范围0,15)如1,0,0代表首页左上 | | area | string | 是 | 区域 |
| type | int | 是 | 类型1=icon2=banner3=浮窗) | | type | int | 是 | 类型1=icon2=banner3=浮窗) |
| mode | int | 是 | 广告单播或轮播模式1=单播2=轮播) | | mode | int | 是 | 广告单播或轮播模式1=单播2=轮播) |
| ad_property | string | 是 | 广告属性描述 | | ad_property | string | 是 | 广告属性描述 |
| channelid | int | 是 | 平台ID |
| companyid | int | 是 | 公司ID |
| createtime | string | 是 | 广告创建时间 |
| ld_property | string | 是 | 位置属性 |
| locationid | int | 是 | 位置ID |
| x,y,x_offset,y_offset | int | 是 | 广告坐标系|
##### 返回示例 ##### 返回示例
{ {
@ -49,20 +54,27 @@ http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"100
"totoal": 1, "totoal": 1,
"result": [ "result": [
{ {
"ad_body": "33", "ad_body": "",
"ad_image": "https://resource.kingsome.cn//ad/1d7bb7a2-a865-11e9-8df4-525400ddcafb_banner12(1).png", "ad_image": "https://resource.kingsome.cn/ad/b63dd2ca-dad5-11e9-9ea2-525400ddcafb_png",
"ad_property": "{\"is_shake\":0,\"is_hot\":0,\"is_new\":0,\"is_recommend\":0,\"appid\":\"wxdb103a128e118619\",\"jump_param\":\"yx2nyabgm8\",\"played\":0}",
"ad_sort": "0", "ad_sort": "0",
"ad_title": "333", "ad_title": "",
"area": "1,0,0", "area": "3,8,12,0,32",
"channelid": "6001", "channelid": "6001",
"companyid": "1002", "companyid": "0",
"id": "1014", "createtime": "2019-09-20 10:42:42",
"jump_param": "fdfd", "id": "1258",
"jump_status": "0", "jump_param": "",
"locationid": "1001", "jump_status": "1",
"mode": "0", "ld_property": "{\"title\":\"底部横向滚动\",\"show_name\":\"\",\"bg_img\":\"\",\"has_dot\":false,\"is_shake\":false,\"is_hide\":true,\"is_show_name\":false,\"related\":[],\"scale\":1}",
"name": "33", "locationid": "1073",
"type": "1" "mode": "1",
"name": "首页icon轮播+底部横向滚动6",
"type": "6",
"x": "8",
"x_offset": "0",
"y": "12",
"y_offset": "32"
} }
] ]
} }
@ -113,5 +125,3 @@ https://spread.kingsome.cn/webapp/index.php?c=Ops&a=upAdRecording&adid=%5B%22104
"errmsg": "", "errmsg": "",
"message": "1002 incr success!" "message": "1002 incr success!"
} }
{"#account_id":"6001_2001_oJqfX5R1IDH0aUDTFxNqu5D1PsV8","#distinct_id":"SSg9qS1A2sLRHgvldEm9dkLiCJ6fSaa5","#type":"track","#time":"2019-09-06 14:45:45","#ip":"101.84.36.110","#event_name":"event_11_31","properties":{"nickname":"226","button_name":"jc_promotipn","button_param":"[{\"appid\":\"wxdb103a128e118619\",\"channelid\":\"6001\",\"adid\":\"1118\",\"jump_param\":\"yx2nyabgm8\"}]","account_id":"6001_2001_oJqfX5R1IDH0aUDTFxNqu5D1PsV8","account_register_utctime":1562124532,"account_register_date":"2019-07-03 11:28:52","localuuid":"SSg9qS1A2sLRHgvldEm9dkLiCJ6fSaa5","channel":"6001","from_appid":"","ad_channel":"","gameid":"2001"}}