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
jixudong
jiaoyou_doc
Commits
72e29323
Commit
72e29323
authored
May 10, 2022
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8cbd2d53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
555 additions
and
3 deletions
+555
-3
ad_api_v2.md
app_doc/ad_api_v2.md
+245
-0
ad_config.md
app_doc/ad_config.md
+12
-3
ad_template.json
app_doc/ad_template.json
+298
-0
No files found.
app_doc/ad_api_v2.md
0 → 100644
View file @
72e29323
BaseUrl: http://api-pre.heyqiwu.cn
##### 获取启动页广告配置
URL: {BaseUrl}:18082/api/ad/v2/interactnovel/config/page/start?uid={用户ID}
Method: GET
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"configs": [
{
"id": "ad11", // String 配置ID
"adAppId": "5287243", // String 广告平台应用ID
"adPlatformId": "csjplatform", // String 广告平台ID
"adId": "887778092", // String 广告ID
"showTime": "6000", // String 单位ms 展示时间
"fullScreen": 1, // Integer 是否全屏, 0:否, 1:是
"open": 1, // Integer 兼容之前的可以忽略
"priority": 29 // Integer 优先级
},
{
"id": "ad12",
"adAppId": "1200336731",
"adPlatformId": "qqadnet",
"adId": "4082969258400605",
"showTime": "6000",
"fullScreen": 1,
"open": 1,
"priority": 30
}
],
"open": 1 // 是否开启启动页广告
}
}
```
Example:
```
curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/ad/v2/interactnovel/config/page/start?uid=112' \
--header 'App-Channel-Id: tongyong-phone-mobileapp-test1'
```
##### 获取标签页广告配置
URL: {BaseUrl}:18082/api/ad/v2/interactnovel/config/page/labelType?uid={用户ID}
Method: GET
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"configs": [
{
"id": "ad21", // String 广告配置ID
"adAppId": "5287243", // String 广告平台应用ID
"adPlatformId": "csjplatform", // String 广告平台ID
"adId": "948592277", // String 广告ID
"labelType": "推荐", // String 标签类型名称
"position": 3, // Integer 广告挂载的位置
"open": 1, // Integer 兼容之前的可以忽略
"priority": 29 // 优先级
},
{
"id": "ad22",
"adAppId": "1200336731",
"adPlatformId": "qqadnet",
"adId": "6013913807505049",
"labelType": "古风",
"position": 6,
"open": 1,
"priority": 30
}
],
"open": 1
}
}
```
Example:
```
curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/ad/v2/interactnovel/config/page/labelType?uid=112' \
--header 'App-Channel-Id: tongyong-phone-mobileapp-test1'
```
##### 获取对话页面广告配置
URL: {BaseUrl}:18082/api/ad/v2/interactnovel/config/page/workDia?workName={作品名称}&uid={用户ID}
Method: GET
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
ResponseBody:
```
{
"code": 1,
"msg": "成功",
"data": {
"infoStream": { // 信息流广告
"configs": [
{
"id": "ad31", // String 广告配置ID
"adId": "948592277", // String 广告ID
"adAppId": "5287243", // String 广告平台应用ID
"adPlatformId": "csjplatform", // String 广告平台ID
"showTimeInterval": "10000", // String 切换时间
"cmdAd": 0, // Integer 是否是指令刷新 1:是, 0: 否
"priority": 29, // Integer 优先级
"open": 1 // Integer 兼容之前的可以忽略
},
{
"id": "ad32",
"adId": "6013913807505049",
"adAppId": "1200336731",
"adPlatformId": "qqadnet",
"showTimeInterval": "8000",
"cmdAd": 0,
"priority": 30,
"open": 1
},
{
"id": "ad41",
"adId": "948592277",
"adAppId": "5287243",
"adPlatformId": "csjplatform",
"showTimeInterval": "10000",
"cmdAd": 1,
"priority": 29,
"open": 1
},
{
"id": "ad42",
"adId": "6013913807505049",
"adAppId": "1200336731",
"adPlatformId": "qqadnet",
"showTimeInterval": "8000",
"cmdAd": 1,
"priority": 30,
"open": 1
}
],
"open": 1
},
"interstitial": { // 插屏广告
"configs": [
{
"id": "ad51", // String 广告配置ID
"adId": "948652411", // String 广告ID
"adAppId": "5287243", // String 广告平台应用ID
"adPlatformId": "csjplatform", // String 广告平台ID
"suitation": "open-work-after", // String 时机; open-work-before: 打开作品前,open-work-after: 打开作品后
"priority": 29, // Integer 优先级
"open": 1 // Integer 兼容之前的参数可以忽略
},
{
"id": "ad52",
"adId": "8053630546445146",
"adAppId": "1200336731",
"adPlatformId": "qqadnet",
"suitation": "open-work-before",
"priority": 30,
"open": 1
}
],
"open": 1
}
}
}
```
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/v2/show/record
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
RequestBody:
```
{
"uid":"0", // String 唯一ID
"adId":"ad1", // String 广告配置ID
"showTimeInterval": 3000, // Long *ms 广告展示了多久
"manualClose": true, // Boolean 是否是手动关闭
}
```
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
FAILTURE
{
"code": 50002,
"msg": "数据有误",
"data": null
}
```
\ No newline at end of file
app_doc/ad_config.md
View file @
72e29323
...
...
@@ -4,12 +4,21 @@
| adAppId | String 广告平台 应用ID |
| adPlatformId | String 第三方广告平台ID |
| adId | String 第三方广告平台广告ID |
| page | String 广告展示所在页面; start:启动页; labelType: 标签列表页; workDia-normal: 作品页正常广告; workDia-cmd: 作品页指令广告 |
| page | String 广告展示所在页面; start:启动页; labelType: 标签列表页; workDia-normal: 作品页正常广告; workDia-cmd: 作品页指令广告
; interstitial: 插屏广告
|
| workName | String 作品名; 指定相应作品名启用;
*
: 表示所有作品 |
| fullScreen | Integer 是否全屏广告; 1:表示全屏;0:表示半屏 |
| position | Integer 所在位置;标签页广告位置 |
| labelType | String 标签页名称; 标签页广告的标签 |
| suitation | String 时机; open-work-before: 打开作品前,open-work-after: 打开作品后 |
| showTime | Integer ms为单位;展示时间; |
| showTimeInterval | Integer ms为单位; 表示间隔时间切换一次广告 |
| priority | Integer 优先级; 背景图优先级为30 |
| open | Integer 是否开启; 1:开启, 0:关闭 |
\ No newline at end of file
| open | Integer 是否开启; 1:开启, 0:关闭 |
#### 广告类型
启动页
标签页
插屏广告
信息流ID
信息流ID(指令广告)
\ No newline at end of file
app_doc/ad_template.json
0 → 100644
View file @
72e29323
{
"payCardTime1"
:
{
"foreverCard"
:
{
"text"
:
"永久有效"
,
"info"
:
"5256000"
},
"yearCard"
:
{
"text"
:
"年卡"
,
"info"
:
"525600"
},
"monthCard"
:
{
"text"
:
"月卡"
,
"info"
:
"44640"
},
"onceCard"
:
{
"text"
:
"单次体验"
,
"info"
:
"0"
}
},
"agreement"
:
{
"privacy"
:
{
"title"
:
"齐悟隐私协议"
,
"url"
:
"http://image.heyqiwu.cn/media/txt/privacy_content.txt"
},
"pay"
:
{
"title"
:
"晓悟故事付费说明"
,
"url"
:
"http://image.heyqiwu.cn/media/txt/pay_content.txt"
},
"user"
:
{
"title"
:
"齐悟服务协议"
,
"url"
:
"http://image.heyqiwu.cn/media/txt/user_content.txt"
}
},
"apiRecommend"
:
{
"textArray"
:
[
{
"label"
:
"儿童"
,
"text"
:
"推荐儿童类作品"
},
{
"label"
:
"推荐作品给我"
,
"text"
:
"推荐热门作品"
},
{
"label"
:
"古风"
,
"text"
:
"推荐古风类作品"
},
{
"label"
:
"新作"
,
"text"
:
"推荐最新作品"
},
{
"label"
:
"打开历史名人"
,
"text"
:
"推荐历史名人系列作品"
}
]
},
"icon"
:
[
{
"name"
:
"免费"
,
"url"
:
"http://hw-gz24.heyqiwu.cn/media/icon/FREE1.png"
},
{
"name"
:
"已付费"
,
"url"
:
"http://hw-gz24.heyqiwu.cn/media/icon/paid.png"
},
{
"name"
:
"VIP"
,
"url"
:
"http://hw-gz24.heyqiwu.cn/media/icon/VIP.png"
},
{
"name"
:
"New"
,
"url"
:
"http://hw-gz24.heyqiwu.cn/media/icon/New1.png"
},
{
"name"
:
"更新"
,
"url"
:
"http://hw-gz24.heyqiwu.cn/media/icon/update.png"
},
{
"name"
:
"新作"
,
"url"
:
"http://hw-gz24.heyqiwu.cn/media/icon/newWork.png"
}
],
"banner"
:
{
"imgs"
:
[
{
"imgUrl"
:
"http://image.heyqiwu.cn/media/mp/img/banner/yaodaoyiwenlu2021091001.jpg"
,
"workName"
:
"妖刀异闻录"
}
]
},
"payPointHint"
:
{
"during7"
:
"VIP月卡"
,
"during8"
:
"VIP年卡"
,
"during5"
:
"单次体验卡"
,
"during6"
:
"购买本系列作品"
,
"during3"
:
"商品价格"
,
"during4"
:
"购买等同于同意互动小说付费说明"
,
"before2"
:
"付费后,即可在本设备畅快体验。"
,
"during1"
:
"请爸爸妈妈扫码支付吧"
,
"before1"
:
"该作品为付费作品"
,
"during2"
:
"立即购买"
},
"turnOffScreen"
:
{
"time"
:
10000
},
"FirstBindPhone"
:
{
"title"
:
"请登录绑定手机号"
,
"tips"
:
"绑定手机号后,您的存档、收藏更换设备后还会为您保留"
},
"flowerHint"
:
{
"during1"
:
"非常感谢您喜欢该作品"
},
"asrConfigs"
:
[
{
"appVersion"
:
"0.0.0"
,
"matchType"
:
">"
,
"asrId"
:
"yunzs"
,
"supplierDetail"
:
{
"model"
:
"susie-asr-8k"
,
"url"
:
"asr.cloudv2.voiceaitech.com:30031"
}
}
],
"interactnovel"
:
{
"adConfigs"
:
[
{
"id"
:
"ad11"
,
"adAppId"
:
"5287243"
,
"adPlatformId"
:
"csjplatform"
,
"adId"
:
"887778092"
,
"page"
:
"start"
,
"fullScreen"
:
1
,
"showTime"
:
"6000"
,
"priority"
:
29
,
"open"
:
1
},
{
"id"
:
"ad12"
,
"adAppId"
:
"1200336731"
,
"adPlatformId"
:
"qqadnet"
,
"adId"
:
"4082969258400605"
,
"page"
:
"start"
,
"fullScreen"
:
1
,
"showTime"
:
"6000"
,
"priority"
:
30
,
"open"
:
1
},
{
"id"
:
"ad21"
,
"adAppId"
:
"5287243"
,
"adPlatformId"
:
"csjplatform"
,
"adId"
:
"948592277"
,
"page"
:
"labelType"
,
"labelType"
:
"推荐"
,
"position"
:
3
,
"priority"
:
29
,
"open"
:
1
},
{
"id"
:
"ad22"
,
"adAppId"
:
"1200336731"
,
"adPlatformId"
:
"qqadnet"
,
"adId"
:
"6013913807505049"
,
"page"
:
"labelType"
,
"labelType"
:
"古风"
,
"position"
:
6
,
"priority"
:
30
,
"open"
:
1
},
{
"id"
:
"ad31"
,
"adAppId"
:
"5287243"
,
"adPlatformId"
:
"csjplatform"
,
"adId"
:
"948592277"
,
"page"
:
"workDia-normal"
,
"workName"
:
"*"
,
"showTimeInterval"
:
"10000"
,
"priority"
:
29
,
"open"
:
1
},
{
"id"
:
"ad32"
,
"adAppId"
:
"1200336731"
,
"adPlatformId"
:
"qqadnet"
,
"adId"
:
"6013913807505049"
,
"page"
:
"workDia-normal"
,
"workName"
:
"*"
,
"showTimeInterval"
:
"8000"
,
"priority"
:
30
,
"open"
:
1
},
{
"id"
:
"ad41"
,
"adAppId"
:
"5287243"
,
"adPlatformId"
:
"csjplatform"
,
"adId"
:
"948592277"
,
"page"
:
"workDia-cmd"
,
"workName"
:
"*"
,
"showTimeInterval"
:
"10000"
,
"priority"
:
29
,
"open"
:
1
},
{
"id"
:
"ad42"
,
"adAppId"
:
"1200336731"
,
"adPlatformId"
:
"qqadnet"
,
"adId"
:
"6013913807505049"
,
"page"
:
"workDia-cmd"
,
"workName"
:
"*"
,
"showTimeInterval"
:
"8000"
,
"priority"
:
30
,
"open"
:
1
},
{
"id"
:
"ad51"
,
"adAppId"
:
"5287243"
,
"adPlatformId"
:
"csjplatform"
,
"adId"
:
"948652411"
,
"workName"
:
"*"
,
"page"
:
"interstitial"
,
"suitation"
:
"open-work-after"
,
"priority"
:
29
,
"open"
:
1
},
{
"id"
:
"ad52"
,
"adAppId"
:
"1200336731"
,
"adPlatformId"
:
"qqadnet"
,
"adId"
:
"8053630546445146"
,
"workName"
:
"*"
,
"page"
:
"interstitial"
,
"suitation"
:
"open-work-before"
,
"priority"
:
30
,
"open"
:
1
}
]
},
"payCardTime"
:
{
"0"
:
"单次体验"
,
"44640"
:
"月卡"
,
"525600"
:
"年卡"
,
"5256000"
:
"永久有效"
},
"otherPhone"
:
{
"title"
:
"该设备已绑定手机号"
,
"tips"
:
"该设备已绑定手机号,为了找回您原来的存档信息,请使用绑定的手机登录"
},
"unauthorized"
:
{
"button"
:
"去授权"
,
"content"
:
"未获取到权限,无法正常使用应用。"
},
"AntiAddiction"
:
{
"useTimeLimit"
:
2400000
,
"stop"
:
{
"button"
:
"继续体验"
,
"title"
:
"休息时间到~"
,
"content"
:
"已经连续使用超过40分钟啦!"
,
"tips"
:
"休息10分钟再继续吧"
},
"break"
:
{
"button"
:
"我知道了"
,
"title"
:
"休息一下吧"
,
"content"
:
"使用很久了哦,注意用眼健康。晓悟建议休息10分钟哦~"
},
"restart"
:
{
"button"
:
"继续体验"
,
"title"
:
"休息结束了~"
,
"content"
:
"休息时间已结束可继续体验!"
},
"restTimeLimit"
:
600000
},
"TrafficReminder"
:
{
"content"
:
"当前为非WI-FI环境,请注意流量消耗"
},
"accountCancel"
:
{
"checkTips"
:
"申请注销即表示您将自愿放弃账号内所有虚拟资产并同意"
,
"statement"
:
[
"注销账号后,将放弃以下权益与资产:"
,
"该账号的全部个人资料和收藏记录、历史信息都将无法找回。"
,
"该账号如果有未使用完毕的权益及资产都将同时作废,付费作品费用将不予退回。"
,
"任何您之前付费购买的剧情费用将不予退回。"
,
"任何您之前累积的积分、金币、权益等都将作废且无法恢复。"
,
"该账号中的邀请好友关系也将被清空。"
,
"您将无法通过该账号再登录和使用晓悟互动小说。"
],
"title"
:
"账号注销"
,
"tips"
:
"永久注销、无法恢复、请谨慎操作。"
,
"notice"
:
{
"title"
:
"《晓悟互动小说账号注销须知》"
,
"url"
:
"http://image.heyqiwu.cn/media/txt/user_content.txt"
}
},
"watchRecommendation"
:
{
"filterLables"
:
"New"
}
}
\ No newline at end of file
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