From 68eff9a636a236c41bb1aa82d69a26c8dbeca9af Mon Sep 17 00:00:00 2001 From: jinfengli Date: Tue, 26 Oct 2021 15:41:04 +0800 Subject: [PATCH] update --- app_doc/ad_api.md | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/app_doc/ad_api.md b/app_doc/ad_api.md index 63d6f1f..3b0cc3a 100644 --- a/app_doc/ad_api.md +++ b/app_doc/ad_api.md @@ -1,3 +1,130 @@ +##### 获取启动页广告配置 + +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 -- libgit2 0.27.1