This commit is contained in:
pengtao 2019-08-09 10:49:00 +08:00
commit a983d27a00

View File

@ -2,7 +2,11 @@
##### 接口地址
<<<<<<< HEAD
http://spread.kingsome.cn/webapp/index.php
=======
http://promotion.kingsome.cn/webapp/index.php
>>>>>>> 6e5b56e1f53a0da5d470390653689d7507b00dea
##### 返回格式json
@ -10,7 +14,12 @@ http://spread.kingsome.cn/webapp/index.php
##### 请求示范
<<<<<<< HEAD
http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"10034","locationid":1001}
=======
http://promotion.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","channelid":6001,"locationid":1001}
http://promotion.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1004","channelid":6001,"area":1}
>>>>>>> 6e5b56e1f53a0da5d470390653689d7507b00dea
##### 请求参数说明
@ -18,7 +27,7 @@ http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"100
| --------- | ---- | ---- | ---------------------------------- |
| c | string | 是 | OPS通用接口标志 |
| a | string | 是 | 方法定义 当前为getAdList |
| body | string | 是 | 参数体JSON格式gameidlocationid作为key |
| body | string | 是 | 参数体JSON格式gameidchannelid,locationid作为key |
##### 返回参数说明
@ -34,6 +43,10 @@ http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"100
| name | string | 是 | 广告名称 |
| jump_status | int | 是 | 跳转状态1=跳转0=不跳 |
| jump_param | string | 是 | 跳转参数 |
| area | string | 是 | 区域(第一元素1=首页2=游戏中3=结算页4=关闭第二元素X轴第三元素Y轴其中X,Y取值范围0,15)如1,0,0代表首页左上 |
| type | int | 是 | 类型1=icon2=banner3=浮窗) |
| mode | int | 是 | 广告单播或轮播模式1=单播2=轮播) |
| ad_property | string | 是 | 广告属性描述 |
##### 返回示例
@ -41,25 +54,37 @@ http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"100
"errcode": 0,
"errmsg": "",
"message": {
"totoal": 3,
"totoal": 1,
"result": [
{
"ad_body": "11",
"ad_image": "https://resource.kingsome.cn//ad/f7daf1a2-a864-11e9-bf18-525400ddcafb_500甜心icon(1)(1).png",
"ad_body": "33",
"ad_image": "https://resource.kingsome.cn//ad/1d7bb7a2-a865-11e9-8df4-525400ddcafb_banner12(1).png",
"ad_sort": "0",
"ad_title": "aa",
"id": "1009",
"jump_param": "aas1",
"ad_title": "333",
"area": "1,0,0",
"channelid": "6001",
"companyid": "1002",
"id": "1014",
"jump_param": "fdfd",
"jump_status": "0",
"name": "1122"
},
"locationid": "1001",
"mode": "0",
"name": "33",
"type": "1"
}
]
}
}
#### 2、广告播放上报
##### 接口地址
<<<<<<< HEAD
http://spread.kingsome.cn/webapp/index.php
=======
http://promotion.kingsome.cn/webapp/index.php
>>>>>>> 6e5b56e1f53a0da5d470390653689d7507b00dea
##### 返回格式json
@ -67,7 +92,11 @@ http://spread.kingsome.cn/webapp/index.php
##### 请求示范
<<<<<<< HEAD
http://spread.kingsome.cn/webapp/index.php?c=Ops&a=upAdRecording&adid=1009
=======
http://promotion.kingsome.cn/webapp/index.php?c=Ops&a=upAdRecording&adid=1009
>>>>>>> 6e5b56e1f53a0da5d470390653689d7507b00dea
##### 请求参数说明