promotion/ad_Readme.md
2019-08-05 11:15:09 +08:00

3.4 KiB
Raw Blame History

1、返回广告列表信息

接口地址

http://promotion.kingsome.cn/webapp/index.php

返回格式json
请求方式get
请求示范

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}

请求参数说明
名称 类型 必填 说明
c string OPS通用接口标志
a string 方法定义 当前为getAdList
body string 参数体JSON格式gameidchannelid,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 跳转参数
area string 区域(第一元素1=首页2=游戏中3=结算页4=关闭第二元素X轴第三元素Y轴其中X,Y取值范围0,15)如1,0,0代表首页左上
type int 类型1=icon2=banner3=浮窗)
mode int 广告单播或轮播模式1=单播2=轮播)
返回示例

{ "errcode": 0, "errmsg": "", "message": { "totoal": 1, "result": [ { "ad_body": "33", "ad_image": "https://resource.kingsome.cn//ad/1d7bb7a2-a865-11e9-8df4-525400ddcafb_banner12(1).png", "ad_sort": "0", "ad_title": "333", "area": "1,0,0", "channelid": "6001", "companyid": "1002", "id": "1014", "jump_param": "fdfd", "jump_status": "0", "locationid": "1001", "mode": "0", "name": "33", "type": "1" } ] } }

2、广告播放上报

接口地址

http://promotion.kingsome.cn/webapp/index.php

返回格式json
请求方式get
请求示范

http://promotion.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!" }