Commit 68eff9a6 by 李进峰

update

parent 7768a88b
##### 获取启动页广告配置
URL: BaseUrl:18082/api/ad/interactnovel/config/page/start
Method: GET
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": "ad0", // String 配置ID
"adId": "8062344308088373", // String 广告ID
"showTime": "29000", // String 单位ms, 表示展示6s
"fullScreen": 1, // Number 全屏广告 1:表示全屏,0:表示半屏
"open": 1 // Number 是否开启 1: 开启, 0: 关闭
}
]
}
```
Example:
```
curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/ad/interactnovel/config/page/start' \
--header 'App-Channel-Id: tongyong-phone-mobileapp-test1'
```
##### 获取标签页广告配置
URL: BaseUrl:18082/api/ad/interactnovel/config/page/labelType
Method: GET
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": "ad1", // String 配置ID  
"adId": "8032243403057682", // String 广告ID
"labelType": "推荐", // String 在“推荐”标签导航下面
"position": 5, // Number 第5个作品位置
"open": 1 // Number 是否开启 1: 开启, 0: 关闭
},
{
"id": "ad2", // String 配置ID
"adId": "8032243403057682", // String 广告ID
"labelType": "古风", // String 在“古风”标签导航下面
"position": 5, // Number 第5个作品位置
"open": 1 // Number 是否开启 1: 开启, 0: 关闭
}
]
}
```
Example:
```
curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/ad/interactnovel/config/page/labelType' \
--header 'App-Channel-Id: tongyong-phone-mobileapp-test1'
```
##### 获取对话页面广告配置
URL: BaseUrl:18082/api/ad/interactnovel/config/page/workDia?workName={作品名称}
Method: GET
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": "ad3", // String 配置ID
"adId": "8032243403057682", // String 广告ID
"showTimeInterval": "10000", // String 单位ms, 表示间隔10s切换一次广告,为空时不切换
"cmdAd": 0, // Number 是否是指令广告,1:表示是指令广告,0:表示通用广告
"priority": 29, // Number 优先级,背景图优先级为30,其他在其上下进行数值调动
"open": 1 // Number 是否开启 1: 开启, 0: 关闭
},
{
"id": "ad4", // String 配置ID
"adId": "8032243403057682", // String 广告ID
"showTimeInterval": null, // String 为空时不切换
"cmdAd": 1, // Number 是否是指令广告,1:表示是指令广告,0:表示通用广告
"priority": 28, // Number 优先级,背景图优先级为30,其他在其上下进行数值调动
"open": 1 // Number 是否开启 1: 开启, 0: 关闭 
}
]
}
```
Example:
```
curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/ad/interactnovel/config/page/workDia?workName=%E5%B0%8F%E7%8B%97%E5%B0%8F%E7%99%BD' \
--header 'App-Channel-Id: tongyong-phone-mobileapp-test1'
```
##### 广告反馈记录
URL: BaseUrl:18082/api/ad/show/record
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment