|
@@ -64,7 +64,7 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
|
|
|
@Override
|
|
|
public void getAdUnitReport(Long advertiserId, String accessToken, String startDate, String endDate, int page) {
|
|
|
log.info("accountId:=={}=====获取广告组数据信息====page--{}===》》》》", advertiserId, page);
|
|
|
- Integer page_size = 500;
|
|
|
+ Integer page_size = 200;
|
|
|
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
|
headers.put("Access-Token", accessToken);
|
|
@@ -79,10 +79,10 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
|
|
|
}
|
|
|
param.put("page_size", page_size);
|
|
|
param.put("page", page);
|
|
|
-
|
|
|
+ log.info("入参:", param);
|
|
|
|
|
|
String result = HttpUtils.httpPostRequest(postUrl + KuaishouConstant.AD_UNIT_LIST, param, headers);
|
|
|
- // System.err.println(result);
|
|
|
+ // System.err.println(result);
|
|
|
|
|
|
JSONObject resultJson = JSONObject.parseObject(result);
|
|
|
if (Check.isNull(resultJson)) {
|
|
@@ -112,7 +112,7 @@ public class AdUnitReportServiceImpl implements IAdUnitReportService {
|
|
|
|
|
|
if (!Check.isNull(ksAdUnitList)) {
|
|
|
adUnitReportMapper.replaceBatchKsAdUnit(ksAdUnitList);
|
|
|
- log.info("组数据添加成功,accountId:{},条数:{}",advertiserId,ksAdUnitList.size());
|
|
|
+ log.info("组数据添加成功,accountId:{},条数:{}", advertiserId, ksAdUnitList.size());
|
|
|
}
|
|
|
|
|
|
//是否有下一页
|