#### 1、返回广告列表信息 ##### 接口地址 ##### 返回格式:json ##### 请求方式:get ##### 请求示范 http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"10034","locationid":1001} http://spread.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","area":1} ##### 请求参数说明 | 名称 | 类型 | 必填 | 说明 | | --------- | ---- | ---- | ---------------------------------- | | 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 | 是 | 跳转参数 | | area | string | 是 | 区域(第一元素:1=首页,2=游戏中,3=结算页,4=关闭,第二元素:X轴第三元素:Y轴,其中X,Y取值范围(0,15))如(1,0,0)代表首页左上 | | type | int | 是 | 类型(1=icon,2=banner,3=浮窗) | | mode | int | 是 | 广告单播或轮播模式(1=单播,2=轮播) | | ad_property | string | 是 | 广告属性描述 | ##### 返回示例 { "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://spread.kingsome.cn/webapp/index.php ##### 返回格式:json ##### 请求方式:get ##### 请求示范 上传列表压缩过程 ''' let aidStr = JSON.stringify(aids); let url = `${__getUrl()}?c=Ops&a=upAdRecording&adid=${encodeURIComponent(aidStr)}` ''' https://spread.kingsome.cn/webapp/index.php?c=Ops&a=upAdRecording&adid=%5B%221040%22%2C%221035%22%2C%221039%22%2C%221036%22%2C%221038%22%2C%221037%22%5D ##### 请求参数说明 | 名称 | 类型 | 必填 | 说明 | | --------- | ---- | ---- | ---------------------------------- | | c | string | 是 | OPS通用接口标志 | | a | string | 是 | 方法定义 upAdRecording | | adid | int | 是 | 广告ID | ##### 返回参数说明 | 名称 | 类型 | 必填 | 说明 | | ---- | ---- | ---- | -------- | | errcode | int | 是 | 返回状态 | | errmsg | string | 是 | 错误信息 | | message | string | 是 | 返回信息 | ##### 返回示例 { "errcode": 0, "errmsg": "", "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"}}