diff --git a/app_doc/ad_api_v2.md b/app_doc/ad_api_v2.md index 640bd1c..d89ec4b 100644 --- a/app_doc/ad_api_v2.md +++ b/app_doc/ad_api_v2.md @@ -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":"" +}' +``` +