|
@@ -83,13 +83,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
UserAllocation userAllocation = userAllocationService.getByAccountId(strategy.getAccountId());
|
|
UserAllocation userAllocation = userAllocationService.getByAccountId(strategy.getAccountId());
|
|
if(null == userAllocation||userAllocation.getAccountStatus()!=0){
|
|
if(null == userAllocation||userAllocation.getAccountStatus()!=0){
|
|
log.info("此账户不存在或者已经被关闭=>accountId:{}", token.getAccountId());
|
|
log.info("此账户不存在或者已经被关闭=>accountId:{}", token.getAccountId());
|
|
- AiBytedanceAutocreateLog iBytedanceAutocreateLog = new AiBytedanceAutocreateLog(
|
|
|
|
- token.getAccountId(),
|
|
|
|
- "获取账户",
|
|
|
|
- 500,
|
|
|
|
- "此账户不存在或者已经被关闭=>accountId:" + token.getAccountId(),
|
|
|
|
- "userAllocationService.getByAccountId => "+ token.getAccountId());
|
|
|
|
- iBytedanceAutocreateLogService.save(iBytedanceAutocreateLog);
|
|
|
|
return videoCnt;
|
|
return videoCnt;
|
|
}
|
|
}
|
|
//获取全量广告组数据
|
|
//获取全量广告组数据
|
|
@@ -112,14 +105,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
return videoCnt;
|
|
return videoCnt;
|
|
}
|
|
}
|
|
log.info("获取{}素材个数:{}=>accountId:{}",BytedanceCreativeMatTypeEnum.getNameByType(createType+""),videoInfos.size(),token.getAccountId());
|
|
log.info("获取{}素材个数:{}=>accountId:{}",BytedanceCreativeMatTypeEnum.getNameByType(createType+""),videoInfos.size(),token.getAccountId());
|
|
- AiBytedanceAutocreateLog iBytedanceAutocreateLogofVideoInfo = new AiBytedanceAutocreateLog(
|
|
|
|
- token.getAccountId(),
|
|
|
|
- "获取素材",
|
|
|
|
- 200,
|
|
|
|
- "获取"+BytedanceCreativeMatTypeEnum.getNameByType(createType+"")+"素材个数"+videoInfos.size(),
|
|
|
|
- "");
|
|
|
|
- iBytedanceAutocreateLogService.save(iBytedanceAutocreateLogofVideoInfo);
|
|
|
|
-
|
|
|
|
for (ByteDanceVideoInfo video:videoInfos) {
|
|
for (ByteDanceVideoInfo video:videoInfos) {
|
|
//判断此素材为视频
|
|
//判断此素材为视频
|
|
if ("video".equalsIgnoreCase(video.getMaterialType())){
|
|
if ("video".equalsIgnoreCase(video.getMaterialType())){
|
|
@@ -1564,13 +1549,6 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
CtopOauthToken token = tokenService.getOauthTokenByAccountId(strategy.getAccountId()+"");
|
|
CtopOauthToken token = tokenService.getOauthTokenByAccountId(strategy.getAccountId()+"");
|
|
if (null == token) {
|
|
if (null == token) {
|
|
log.info("token获取失败=>accountId:{}", strategy.getAccountId());
|
|
log.info("token获取失败=>accountId:{}", strategy.getAccountId());
|
|
- AiBytedanceAutocreateLog iBytedanceAutocreateLog = new AiBytedanceAutocreateLog(
|
|
|
|
- strategy.getAccountId(),
|
|
|
|
- "获取token",
|
|
|
|
- 500,
|
|
|
|
- "token获取失败=>accountId:" + strategy.getAccountId(),
|
|
|
|
- "tokenService.getOauthTokenByAccountId => "+ strategy.getAccountId());
|
|
|
|
- iBytedanceAutocreateLogService.save(iBytedanceAutocreateLog);
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
Long customUnitCnt = strategy.getCampaignAdCnt()*strategy.getCampaignCnt();
|
|
Long customUnitCnt = strategy.getCampaignAdCnt()*strategy.getCampaignCnt();
|