Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
68eff9a6
Commit
68eff9a6
authored
Oct 26, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7768a88b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
127 additions
and
0 deletions
+127
-0
ad_api.md
app_doc/ad_api.md
+127
-0
No files found.
app_doc/ad_api.md
View file @
68eff9a6
##### 获取启动页广告配置
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
URL: BaseUrl:18082/api/ad/show/record
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment