|
@@ -0,0 +1,341 @@
|
|
|
|
|
+package cn.com.ctop.job.bytedance.data.service.impl;
|
|
|
|
|
+
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.entity.BytedanceAdvertiserReportDaily;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.entity.BytedanceAdvertiserReportHour;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.entity.BytedanceErrorLog;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.mapper.BytedanceAccountReportMapper;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.service.IBytedanceAccountReportService;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.utils.AlertUtils;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.utils.Check;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.utils.FieldsConfig;
|
|
|
|
|
+import cn.com.ctop.job.bytedance.data.utils.HttpUtils;
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
|
|
+
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.HashMap;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
+
|
|
|
|
|
+@Service
|
|
|
|
|
+@Slf4j
|
|
|
|
|
+public class BytedanceAccountReportServiceImpl implements IBytedanceAccountReportService {
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private BytedanceAccountReportMapper accountReportMapper;
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void getBytedanceRetryAccountHourReport(Long errorId, Long advertiserId, String accessToken, String startDate, String endDate, Integer page, Integer isSend) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String url = "https://api.oceanengine.com/open_api/v3.0/report/custom/get/";
|
|
|
|
|
+ Map<String, Object> paramsMap = new HashMap<>();
|
|
|
|
|
+ paramsMap.put("advertiser_id", advertiserId);
|
|
|
|
|
+ paramsMap.put("start_time", startDate);
|
|
|
|
|
+ paramsMap.put("end_time", endDate);
|
|
|
|
|
+ paramsMap.put("data_topic", "BASIC_DATA");
|
|
|
|
|
+ paramsMap.put("metrics", FieldsConfig.getMetrics());
|
|
|
|
|
+ paramsMap.put("dimensions", FieldsConfig.getAccountHourDimensions());
|
|
|
|
|
+ paramsMap.put("order_by", new JSONArray());
|
|
|
|
|
+ paramsMap.put("filters", new JSONArray());
|
|
|
|
|
+ paramsMap.put("page", page);
|
|
|
|
|
+ paramsMap.put("page_size", 100);
|
|
|
|
|
+ Map<String, String> headers = new HashMap<>();
|
|
|
|
|
+ headers.put("Access-Token", accessToken);
|
|
|
|
|
+ headers.put("Content-Type", "application/json;charset=UTF-8");
|
|
|
|
|
+ String s = HttpUtils.httpGet(url, paramsMap, headers);
|
|
|
|
|
+ JSONObject result = JSONObject.parseObject(s);
|
|
|
|
|
+ if (Check.isNull(result)) {
|
|
|
|
|
+ log.info("账户id:{},日期:{},广告时报(账户粒度)请求结果返回为空", advertiserId, startDate);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ List<BytedanceAdvertiserReportHour> hours = new ArrayList<>();
|
|
|
|
|
+ Integer code = result.getInteger("code");
|
|
|
|
|
+ if (code == 0) {
|
|
|
|
|
+ JSONObject data = result.getJSONObject("data");
|
|
|
|
|
+ if (!Check.isNull(data)) {
|
|
|
|
|
+ JSONArray rows = data.getJSONArray("rows");
|
|
|
|
|
+ if (!Check.isNull(rows)) {
|
|
|
|
|
+ for (int i = 0; i < rows.size(); i++) {
|
|
|
|
|
+ JSONObject rowJson = rows.getJSONObject(i);
|
|
|
|
|
+ JSONObject metricsJson = rowJson.getJSONObject("metrics");
|
|
|
|
|
+ JSONObject dimensionsJson = rowJson.getJSONObject("dimensions");
|
|
|
|
|
+ Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
|
|
|
|
|
+ Integer hour = Integer.valueOf(dimensionsJson.getString("stat_time_hour").substring(11, 13));
|
|
|
|
|
+ BytedanceAdvertiserReportHour advertiserReportHour = JSONObject.parseObject(metricsJson.toJSONString(), BytedanceAdvertiserReportHour.class);
|
|
|
|
|
+ advertiserReportHour.setAdvertiserId(advertiserId);
|
|
|
|
|
+ advertiserReportHour.setStatTimeDay(statTimeDay);
|
|
|
|
|
+ advertiserReportHour.setHour(hour);
|
|
|
|
|
+ hours.add(advertiserReportHour);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户id:{},日期:{}广告时报(账户粒度)请求结果为空", advertiserId, startDate);
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!Check.isNull(hours)) {
|
|
|
|
|
+ accountReportMapper.replaceAccountReportHour(hours);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (hours.size() >= 100) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ Thread.sleep(200L);
|
|
|
|
|
+ } catch (InterruptedException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ getBytedanceRetryAccountHourReport(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户ID:{},日期:{},广告时报(账户粒度)数据请求成功", advertiserId, startDate);
|
|
|
|
|
+ accountReportMapper.deleteInfoByErrorId(errorId);
|
|
|
|
|
+ if (isSend == 1) {
|
|
|
|
|
+ AlertUtils.sendMessage(advertiserId, startDate, endDate, 1, "hour", 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void getBytedanceRetryAccountDailyReport(Long errorId, Long advertiserId, String accessToken, String startDate, String endDate, Integer page, Integer isSend) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String url = "https://api.oceanengine.com/open_api/v3.0/report/custom/get/";
|
|
|
|
|
+ Map<String, Object> paramsMap = new HashMap<>();
|
|
|
|
|
+ paramsMap.put("advertiser_id", advertiserId);
|
|
|
|
|
+ paramsMap.put("start_time", startDate);
|
|
|
|
|
+ paramsMap.put("end_time", endDate);
|
|
|
|
|
+ paramsMap.put("data_topic", "BASIC_DATA");
|
|
|
|
|
+ paramsMap.put("metrics", FieldsConfig.getMetrics());
|
|
|
|
|
+ paramsMap.put("dimensions", FieldsConfig.getAccountDailyDimensions());
|
|
|
|
|
+ paramsMap.put("order_by", new JSONArray());
|
|
|
|
|
+ paramsMap.put("filters", new JSONArray());
|
|
|
|
|
+ paramsMap.put("page", page);
|
|
|
|
|
+ paramsMap.put("page_size", 100);
|
|
|
|
|
+ Map<String, String> headers = new HashMap<>();
|
|
|
|
|
+ headers.put("Access-Token", accessToken);
|
|
|
|
|
+ headers.put("Content-Type", "application/json;charset=UTF-8");
|
|
|
|
|
+ String s = HttpUtils.httpGet(url, paramsMap, headers);
|
|
|
|
|
+ JSONObject result = JSONObject.parseObject(s);
|
|
|
|
|
+ if (Check.isNull(result)) {
|
|
|
|
|
+ log.info("账户id:{},日期:{},广告时报(账户粒度)请求结果返回为空", advertiserId, startDate);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ List<BytedanceAdvertiserReportDaily> dailyList = new ArrayList<>();
|
|
|
|
|
+ Integer code = result.getInteger("code");
|
|
|
|
|
+ if (code == 0) {
|
|
|
|
|
+ JSONObject data = result.getJSONObject("data");
|
|
|
|
|
+ if (!Check.isNull(data)) {
|
|
|
|
|
+ JSONArray rows = data.getJSONArray("rows");
|
|
|
|
|
+ if (!Check.isNull(rows)) {
|
|
|
|
|
+ for (int i = 0; i < rows.size(); i++) {
|
|
|
|
|
+ JSONObject rowJson = rows.getJSONObject(i);
|
|
|
|
|
+ JSONObject metricsJson = rowJson.getJSONObject("metrics");
|
|
|
|
|
+ JSONObject dimensionsJson = rowJson.getJSONObject("dimensions");
|
|
|
|
|
+ Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
|
|
|
|
|
+ BytedanceAdvertiserReportDaily advertiserReportDaily = JSONObject.parseObject(metricsJson.toJSONString(), BytedanceAdvertiserReportDaily.class);
|
|
|
|
|
+ advertiserReportDaily.setAdvertiserId(advertiserId);
|
|
|
|
|
+ advertiserReportDaily.setStatTimeDay(statTimeDay);
|
|
|
|
|
+ dailyList.add(advertiserReportDaily);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户id:{},日期:{}广告时报(账户粒度)请求结果为空", advertiserId, startDate);
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!Check.isNull(dailyList)) {
|
|
|
|
|
+ accountReportMapper.replaceAccountReportDaily(dailyList);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (dailyList.size() >= 100) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ Thread.sleep(200L);
|
|
|
|
|
+ } catch (InterruptedException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ getBytedanceRetryAccountDailyReport(errorId, advertiserId, accessToken, startDate, endDate, page + 1, isSend);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户ID:{},日期:{},广告时报(账户粒度)数据请求成功", advertiserId, startDate);
|
|
|
|
|
+ accountReportMapper.deleteInfoByErrorId(errorId);
|
|
|
|
|
+ if (isSend == 1) {
|
|
|
|
|
+ AlertUtils.sendMessage(advertiserId, startDate, endDate, 1, "hour", 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void getBytedanceAccountHour(Long advertiserId, String accessToken, String startDate, String endDate, Integer page, Integer isLog) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String url = "https://api.oceanengine.com/open_api/v3.0/report/custom/get/";
|
|
|
|
|
+ Map<String, Object> paramsMap = new HashMap<>();
|
|
|
|
|
+ paramsMap.put("advertiser_id", advertiserId);
|
|
|
|
|
+ paramsMap.put("start_time", startDate);
|
|
|
|
|
+ paramsMap.put("end_time", endDate);
|
|
|
|
|
+ paramsMap.put("data_topic", "BASIC_DATA");
|
|
|
|
|
+ paramsMap.put("metrics", FieldsConfig.getMetrics());
|
|
|
|
|
+ paramsMap.put("dimensions", FieldsConfig.getAccountHourDimensions());
|
|
|
|
|
+ paramsMap.put("order_by", new JSONArray());
|
|
|
|
|
+ paramsMap.put("filters", new JSONArray());
|
|
|
|
|
+ paramsMap.put("page", page);
|
|
|
|
|
+ paramsMap.put("page_size", 100);
|
|
|
|
|
+ Map<String, String> headers = new HashMap<>();
|
|
|
|
|
+ headers.put("Access-Token", accessToken);
|
|
|
|
|
+ String s = HttpUtils.httpGet(url, paramsMap, headers);
|
|
|
|
|
+ JSONObject result = JSONObject.parseObject(s);
|
|
|
|
|
+ if (Check.isNull(result)) {
|
|
|
|
|
+ log.info("账户id:{},日期:{},广告时报(账户粒度)请求结果返回为空", advertiserId, startDate);
|
|
|
|
|
+ if (isLog == 1) {
|
|
|
|
|
+ BytedanceErrorLog errorInfo = new BytedanceErrorLog();
|
|
|
|
|
+ errorInfo.setAdvertiserId(advertiserId);
|
|
|
|
|
+ errorInfo.setStartDate(startDate);
|
|
|
|
|
+ errorInfo.setEndDate(endDate);
|
|
|
|
|
+ errorInfo.setDataDimension("account");
|
|
|
|
|
+ errorInfo.setDataType("hour");
|
|
|
|
|
+ accountReportMapper.replaceErrorInfo(errorInfo);
|
|
|
|
|
+ }
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ List<BytedanceAdvertiserReportHour> hours = new ArrayList<>();
|
|
|
|
|
+ Integer code = result.getInteger("code");
|
|
|
|
|
+ if (code == 0) {
|
|
|
|
|
+ JSONObject data = result.getJSONObject("data");
|
|
|
|
|
+ if (!Check.isNull(data)) {
|
|
|
|
|
+ JSONArray rows = data.getJSONArray("rows");
|
|
|
|
|
+ if (!Check.isNull(rows)) {
|
|
|
|
|
+ for (int i = 0; i < rows.size(); i++) {
|
|
|
|
|
+ JSONObject rowJson = rows.getJSONObject(i);
|
|
|
|
|
+ JSONObject metricsJson = rowJson.getJSONObject("metrics");
|
|
|
|
|
+ JSONObject dimensionsJson = rowJson.getJSONObject("dimensions");
|
|
|
|
|
+ Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
|
|
|
|
|
+ Integer hour = Integer.valueOf(dimensionsJson.getString("stat_time_hour").substring(11, 13));
|
|
|
|
|
+ BytedanceAdvertiserReportHour advertiserReportHour = JSONObject.parseObject(metricsJson.toJSONString(), BytedanceAdvertiserReportHour.class);
|
|
|
|
|
+ advertiserReportHour.setAdvertiserId(advertiserId);
|
|
|
|
|
+ advertiserReportHour.setStatTimeDay(statTimeDay);
|
|
|
|
|
+ advertiserReportHour.setHour(hour);
|
|
|
|
|
+ hours.add(advertiserReportHour);
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户id:{},日期:{}广告时报(账户粒度)请求结果为空", advertiserId, startDate);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户id:{},日期:{}广告时报(账户粒度)请求结果失败,返回数据:{}", advertiserId, startDate, result);
|
|
|
|
|
+ if (isLog == 1) {
|
|
|
|
|
+ BytedanceErrorLog errorInfo = new BytedanceErrorLog();
|
|
|
|
|
+ errorInfo.setAdvertiserId(advertiserId);
|
|
|
|
|
+ errorInfo.setStartDate(startDate);
|
|
|
|
|
+ errorInfo.setEndDate(endDate);
|
|
|
|
|
+ errorInfo.setDataDimension("account");
|
|
|
|
|
+ errorInfo.setDataType("hour");
|
|
|
|
|
+ accountReportMapper.replaceErrorInfo(errorInfo);
|
|
|
|
|
+ }
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!Check.isNull(hours)) {
|
|
|
|
|
+ accountReportMapper.replaceAccountReportHour(hours);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (hours.size() >= 100) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ Thread.sleep(200L);
|
|
|
|
|
+ } catch (InterruptedException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ getBytedanceAccountHour(advertiserId, accessToken, startDate, endDate, page + 1, isLog);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户ID:{},日期:{},广告时报(账户粒度)数据请求成功", advertiserId, startDate);
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void getBytedanceAccountDaily(Long advertiserId, String accessToken, String startDate, String endDate, Integer page, Integer isLog) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String url = "https://api.oceanengine.com/open_api/v3.0/report/custom/get/";
|
|
|
|
|
+ Map<String, Object> paramsMap = new HashMap<>();
|
|
|
|
|
+ paramsMap.put("advertiser_id", advertiserId);
|
|
|
|
|
+ paramsMap.put("start_time", startDate);
|
|
|
|
|
+ paramsMap.put("end_time", endDate);
|
|
|
|
|
+ paramsMap.put("data_topic", "BASIC_DATA");
|
|
|
|
|
+ paramsMap.put("metrics", FieldsConfig.getMetrics());
|
|
|
|
|
+ paramsMap.put("dimensions", FieldsConfig.getAccountDailyDimensions());
|
|
|
|
|
+ paramsMap.put("order_by", new JSONArray());
|
|
|
|
|
+ paramsMap.put("filters", new JSONArray());
|
|
|
|
|
+ paramsMap.put("page", page);
|
|
|
|
|
+ paramsMap.put("page_size", 100);
|
|
|
|
|
+ Map<String, String> headers = new HashMap<>();
|
|
|
|
|
+ headers.put("Access-Token", accessToken);
|
|
|
|
|
+ String s = HttpUtils.httpGet(url, paramsMap, headers);
|
|
|
|
|
+ JSONObject result = JSONObject.parseObject(s);
|
|
|
|
|
+ if (Check.isNull(result)) {
|
|
|
|
|
+ log.info("账户id:{},日期:{},广告时报(账户粒度)请求结果返回为空", advertiserId, startDate);
|
|
|
|
|
+ if (isLog == 1) {
|
|
|
|
|
+ BytedanceErrorLog errorInfo = new BytedanceErrorLog();
|
|
|
|
|
+ errorInfo.setAdvertiserId(advertiserId);
|
|
|
|
|
+ errorInfo.setStartDate(startDate);
|
|
|
|
|
+ errorInfo.setEndDate(endDate);
|
|
|
|
|
+ errorInfo.setDataDimension("account");
|
|
|
|
|
+ errorInfo.setDataType("daily");
|
|
|
|
|
+ accountReportMapper.replaceErrorInfo(errorInfo);
|
|
|
|
|
+ }
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ List<BytedanceAdvertiserReportDaily> dailyList = new ArrayList<>();
|
|
|
|
|
+ Integer code = result.getInteger("code");
|
|
|
|
|
+ if (code == 0) {
|
|
|
|
|
+ JSONObject data = result.getJSONObject("data");
|
|
|
|
|
+ if (!Check.isNull(data)) {
|
|
|
|
|
+ JSONArray rows = data.getJSONArray("rows");
|
|
|
|
|
+ if (!Check.isNull(rows)) {
|
|
|
|
|
+ for (int i = 0; i < rows.size(); i++) {
|
|
|
|
|
+ JSONObject rowJson = rows.getJSONObject(i);
|
|
|
|
|
+ JSONObject metricsJson = rowJson.getJSONObject("metrics");
|
|
|
|
|
+ JSONObject dimensionsJson = rowJson.getJSONObject("dimensions");
|
|
|
|
|
+ Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
|
|
|
|
|
+ BytedanceAdvertiserReportDaily advertiserReportDaily = JSONObject.parseObject(metricsJson.toJSONString(), BytedanceAdvertiserReportDaily.class);
|
|
|
|
|
+ advertiserReportDaily.setAdvertiserId(advertiserId);
|
|
|
|
|
+ advertiserReportDaily.setStatTimeDay(statTimeDay);
|
|
|
|
|
+ dailyList.add(advertiserReportDaily);
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户id:{},日期:{},广告日报(账户粒度)请求结果为空", advertiserId, startDate);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户id:{},日期:{},广告日报(账户粒度)请求结果失败,返回数据:{}", advertiserId, startDate, result);
|
|
|
|
|
+ if (isLog == 1) {
|
|
|
|
|
+ BytedanceErrorLog errorInfo = new BytedanceErrorLog();
|
|
|
|
|
+ errorInfo.setAdvertiserId(advertiserId);
|
|
|
|
|
+ errorInfo.setStartDate(startDate);
|
|
|
|
|
+ errorInfo.setEndDate(endDate);
|
|
|
|
|
+ errorInfo.setDataDimension("account");
|
|
|
|
|
+ errorInfo.setDataType("daily");
|
|
|
|
|
+ accountReportMapper.replaceErrorInfo(errorInfo);
|
|
|
|
|
+ }
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!Check.isNull(dailyList)) {
|
|
|
|
|
+ accountReportMapper.replaceAccountReportDaily(dailyList);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (dailyList.size() >= 100) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ Thread.sleep(200L);
|
|
|
|
|
+ } catch (InterruptedException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
|
|
+ getBytedanceAccountHour(advertiserId, accessToken, startDate, endDate, page + 1, isLog);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ log.info("账户ID:{},日期:{},广告日报(账户粒度)数据请求成功", advertiserId, startDate);
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|