Explorar o código

查询广告组
连接更新

zhaoxian hai 1 ano
pai
achega
1d2ac82d0b

+ 1 - 1
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/constant/KuaishouConstant.java

@@ -16,7 +16,7 @@ public class KuaishouConstant {
 
 
     //获取广告组信息
-    public static final String AD_UNIT_LIST = "/rest/openapi/v1/ad_unit/list";
+    public static final String AD_UNIT_LIST = "/rest/openapi/gw/dsp/unit/list";
 
     //获取广告计划信息
     public static final String CAMPAIGN_LIST = "/rest/openapi/v1/campaign/list";

+ 1 - 1
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/service/impl/AdUnitReportServiceImpl.java

@@ -75,7 +75,7 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
         headers.put("Access-Token", accessToken);
         headers.put("Content-Type", "application/json");
 
-        String result = HttpUtils.kuaiShouhttpPostRequest("https://ad.e.kuaishou.com/rest/openapi/v1/ad_unit/list", param.toJSONString(), headers);
+        String result = HttpUtils.kuaiShouhttpPostRequest(postUrl + KuaishouConstant.AD_UNIT_LIST, param.toJSONString(), headers);
         JSONObject resultJson = JSONObject.parseObject(result);
 
         if (Check.isNull(resultJson)) {