95 lines
2.6 KiB
Markdown
95 lines
2.6 KiB
Markdown
#### 1、返回广告列表信息
|
||
|
||
##### 接口地址
|
||
|
||
http://ad.kingsome.cn/webapp/index.php
|
||
|
||
##### 返回格式:json
|
||
|
||
##### 请求方式:get
|
||
|
||
##### 请求示范
|
||
|
||
http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","channelid":6001,"locationid":1001}
|
||
|
||
##### 请求参数说明
|
||
|
||
| 名称 | 类型 | 必填 | 说明 |
|
||
| --------- | ---- | ---- | ---------------------------------- |
|
||
| c | string | 是 | OPS通用接口标志 |
|
||
| a | string | 是 | 方法定义 当前为getAdList |
|
||
| body | string | 是 | 参数体,JSON格式,gameid,channelid,locationid作为key |
|
||
|
||
##### 返回参数说明
|
||
|
||
| 名称 | 类型 | 必填 | 说明 |
|
||
| ---- | ---- | ---- | -------- |
|
||
| errcode | int | 是 | 返回状态 |
|
||
| errmsg | string | 是 | 错误信息 |
|
||
| ad_title | string | 是 | 广告标题 |
|
||
| ad_body | string | 是 | 广告正文 |
|
||
| ad_image | string | 是 | 广告图片 |
|
||
| ad_sort | int | 是 | 播放优先级 |
|
||
| adid | int | 是 | 广告标志ID,用途数据上传统计 |
|
||
| name | string | 是 | 广告名称 |
|
||
| jump_status | int | 是 | 跳转状态,1=跳转,0=不跳 |
|
||
| jump_param | string | 是 | 跳转参数 |
|
||
|
||
|
||
##### 返回示例
|
||
{
|
||
"errcode": 0,
|
||
"errmsg": "",
|
||
"message": {
|
||
"totoal": 3,
|
||
"result": [
|
||
{
|
||
"ad_body": "11",
|
||
"ad_image": "https://resource.kingsome.cn//ad/f7daf1a2-a864-11e9-bf18-525400ddcafb_500甜心icon(1)(1).png",
|
||
"ad_sort": "0",
|
||
"ad_title": "aa",
|
||
"id": "1009",
|
||
"jump_param": "aas1",
|
||
"jump_status": "0",
|
||
"name": "1122"
|
||
},
|
||
}
|
||
|
||
#### 2、广告播放上报
|
||
|
||
##### 接口地址
|
||
|
||
http://ad.kingsome.cn/webapp/index.php
|
||
|
||
##### 返回格式:json
|
||
|
||
##### 请求方式:get
|
||
|
||
##### 请求示范
|
||
|
||
http://ad.kingsome.cn/webapp/index.php?c=Ops&a=upAdRecording&adid=1009
|
||
|
||
##### 请求参数说明
|
||
|
||
| 名称 | 类型 | 必填 | 说明 |
|
||
| --------- | ---- | ---- | ---------------------------------- |
|
||
| c | string | 是 | OPS通用接口标志 |
|
||
| a | string | 是 | 方法定义 upAdRecording |
|
||
| adid | int | 是 | 广告ID |
|
||
|
||
##### 返回参数说明
|
||
|
||
| 名称 | 类型 | 必填 | 说明 |
|
||
| ---- | ---- | ---- | -------- |
|
||
| errcode | int | 是 | 返回状态 |
|
||
| errmsg | string | 是 | 错误信息 |
|
||
| message | string | 是 | 返回信息 |
|
||
|
||
|
||
|
||
##### 返回示例
|
||
{
|
||
"errcode": 0,
|
||
"errmsg": "",
|
||
"message": "1002 incr success!"
|
||
} |