|
@@ -359,7 +359,7 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
}
|
|
|
JSONObject unitParams = (JSONObject) result.getResult();
|
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
|
- Thread.sleep(500);
|
|
|
+ Thread.sleep(1000);
|
|
|
unitCode = (Integer) unitCreateResult.get("code");
|
|
|
unitMessage = (String) unitCreateResult.get("message");
|
|
|
/*获取广告组创建记录*/
|
|
@@ -781,7 +781,7 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
JSONObject unitParams = (JSONObject) result.getResult();
|
|
|
// log.info("--------------执行创建程序化广告组,参数:{}", unitParams);
|
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
|
- Thread.sleep(500);
|
|
|
+ Thread.sleep(1000);
|
|
|
// log.info("--------------创建程序化广告组结果,返回数据:{}", unitCreateResult.toString());
|
|
|
unitCode = (Integer) unitCreateResult.get("code");
|
|
|
unitMessage = (String) unitCreateResult.get("message");
|
|
@@ -1056,7 +1056,7 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
}
|
|
|
JSONObject unitParams = (JSONObject) result.getResult();
|
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
|
- Thread.sleep(500);
|
|
|
+ Thread.sleep(1000);
|
|
|
unitCode = (Integer) unitCreateResult.get("code");
|
|
|
unitMessage = (String) unitCreateResult.get("message");
|
|
|
Long channelId = null;
|
|
@@ -1199,7 +1199,7 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
}
|
|
|
JSONObject unitParams = (JSONObject) result.getResult();
|
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
|
- Thread.sleep(500);
|
|
|
+ Thread.sleep(1000);
|
|
|
unitCode = (Integer) unitCreateResult.get("code");
|
|
|
unitMessage = (String) unitCreateResult.get("message");
|
|
|
Long channelId = null;
|
|
@@ -1700,7 +1700,7 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
headers.put("Access-Token", token.getAccessToken());
|
|
|
String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.PROGRAM_CREATE;
|
|
|
String result = HttpUtils.kuaiShouhttpPostRequest(url, creativeParams.toJSONString(), headers);
|
|
|
- Thread.sleep(500);
|
|
|
+ Thread.sleep(1000);
|
|
|
JSONObject resultJson = JSON.parseObject(result);
|
|
|
log.info("创建程序化创意返回结果:{}", resultJson);
|
|
|
if (Check.isNull(resultJson)) {
|
|
@@ -2405,7 +2405,7 @@ public class AiKuaishouAccountAutoDoServiceImpl implements IAiKuaishouAccountAut
|
|
|
private boolean createCreative(CtopOauthToken token, JSONObject creativeParams, AiKuaishouAccountAutoStrategy strategy, Long newCampaignId, Long unitId, String uuid) {
|
|
|
try {
|
|
|
Map<String, Object> creativeCreateResult = kuaishouInterfaceService.batchCreativeCreate(token.getAccessToken(), token.getAccountId(), creativeParams, 1, null);
|
|
|
- Thread.sleep(500);
|
|
|
+ Thread.sleep(1000);
|
|
|
Integer creativeCode = (Integer) creativeCreateResult.get("code");
|
|
|
String creativeMessage = (String) creativeCreateResult.get("message");
|
|
|
|