promotion/ad_Readme.md
2019-09-06 14:46:55 +08:00

117 lines
4.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### 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格式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=轮播) |
| 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"}}