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 "priority": 29 // Integer 优先级 }, { "id": "ad32", "adId": "6013913807505049", "adAppId": "1200336731", "adPlatformId": "qqadnet", "priority": 30 }, { "id": "ad41", "adId": "948592277", "adAppId": "5287243", "adPlatformId": "csjplatform", "priority": 29 }, { "id": "ad42", "adId": "6013913807505049", "adAppId": "1200336731", "adPlatformId": "qqadnet", "priority": 30 } ], "showTimeInterval": "10000", // String 切换时间 "cmdAd": 0, // Integer 是否是指令刷新 1:是, 0: 否 "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 优先级 "probability": 20, // Integer 概率,范围 0~100 "open": 1 // Integer 兼容之前的参数可以忽略 }, { "id": "ad52", "adId": "8053630546445146", "adAppId": "1200336731", "adPlatformId": "qqadnet", "suitation": "open-work-before", "probability": 20, "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 } ```