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
2c460546
Commit
2c460546
authored
Mar 01, 2023
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6e5d211d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
2 deletions
+66
-2
ad_api_v2.md
app_doc/ad_api_v2.md
+66
-2
No files found.
app_doc/ad_api_v2.md
View file @
2c460546
...
...
@@ -429,4 +429,69 @@ curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/ad/v2/callba
"workName":"长尾巴兔子",
"channelId":"xtcv1-watch-sdk-test"
}'
```
\ No newline at end of file
```
##### 获取对话页面广告配置
URL: {BaseUrl}:18082/api/ad/v2/interactnovel/config/encourage?uid={用户ID}
Method: GET
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
| App-Version | 必填 |
ResponseBody:
```
{
"code": 1,
"msg": "成功",
"data": {
"encourageAd": { // 激励广告
"configs": [ // 配置列表
{
"id": null, // String 广告配置ID
"adId": "test1243", // String 广告ID
"adAppId": "s2342", // String 广告平台应用ID
"adPlatformId": "werwer", // String 广告平台ID
"priority": 23, // Integer 优先级
"selectProbability": 23, // Number 选择的机率
"maxShowTimes": 1, // 最大展示次数, -1表示不限制
"ecpm": 0 // 确认广告的单价, 默认0, 整数
}
],
"screenLimits": 60, // 未知参数,之前接口有
"showTimeInterval": "10", // String 切换时间 单位 ms
"open": 1 // 是否开启 1: 开启, 0: 关闭
}
}
}
```
Example:
```
curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/ad/v2/interactnovel/config/encourage?uid=123' \
--header 'App-Channel-Id: tongyong-phone-mobileapp-test' \
--header 'App-Version: 2.2.2'
```
Dispatch-Example
```
curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/dispatch' \
--header 'App-Channel-Id: tongyong-phone-mobileapp-test' \
--header 'App-Version: 2.2.2' \
--header 'Content-Type: application/json' \
--data-raw '{
"path":"/api/ad/v2/interactnovel/config/encourage",
"method":"GET",
"params":"{\"uid\":\"123\"}",
"body":""
}'
```
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