|
@@ -152,13 +152,13 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
adDplinkInfoService.save(adDplinkInfo);
|
|
|
//3:创建创意
|
|
|
JSONObject creativeParams = getCreativeParams(strategy,adId,video,token);
|
|
|
- log.info("创意创建参数:{}",creativeParams);
|
|
|
+ log.info("账户id:{};创意创建参数:{}",strategy.getAccountId(),creativeParams);
|
|
|
JSONObject creativeObject = marketingService.creativeCreate(token,adId,creativeParams);
|
|
|
if(null!=creativeObject.getInteger("code")&&creativeObject.getInteger("code")!=0){
|
|
|
String message = creativeObject.getString("message");
|
|
|
Integer code = creativeObject.getInteger("code");
|
|
|
//创建创意失败
|
|
|
- log.info("创意创建失败:code==>{};message==>{}",code,message);
|
|
|
+ log.info("账户id:{};创意创建失败:code==>{};message==>{}",strategy.getAccountId(),code,message);
|
|
|
continue;
|
|
|
}
|
|
|
BytedanceAiVideoCreativeLog creativeLog = new BytedanceAiVideoCreativeLog(strategy,adId,campaignId,video);
|
|
@@ -220,6 +220,8 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if(null!=creativeObject.getInteger("code")&&creativeObject.getInteger("code")!=0){
|
|
|
String message = creativeObject.getString("message");
|
|
|
Integer code = creativeObject.getInteger("code");
|
|
|
+ //创建创意失败
|
|
|
+ log.info("账户id:{};创意创建失败:code==>{};message==>{}",strategy.getAccountId(),code,message);
|
|
|
continue;
|
|
|
}
|
|
|
BytedanceAiVideoCreativeLog creativeLog = new BytedanceAiVideoCreativeLog(strategy,adId,campaignId,video);
|
|
@@ -1386,7 +1388,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
@Override
|
|
|
public void customCreativeSupplement(AiBytedanceAdvertiserStrategy strategy, Integer hour,String openUrl) {
|
|
|
Long customUnitCnt = strategy.getCampaignAdCnt()*strategy.getCampaignCnt();
|
|
|
- Long unitNum = customUnitCnt * hour / 15;
|
|
|
+ Long unitNum = customUnitCnt * hour / 19;
|
|
|
log.info("{}当前时间内需要创建计划总数:{}", strategy.getAccountId(), unitNum);
|
|
|
//查询当前账户创建自定义类型计划数量
|
|
|
int unitCreateCnt = planService.queryToDayBuiltCount(strategy.getAccountId());
|