|
@@ -79,7 +79,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
IAiBytedanceAutocreateLogService iBytedanceAutocreateLogService;
|
|
IAiBytedanceAutocreateLogService iBytedanceAutocreateLogService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public synchronized Long createCreative(CtopOauthToken token, AiBytedanceAdvertiserStrategy strategy, Integer createType, Long videoCnt, String openUrl) {
|
|
|
|
|
|
+ public Long createCreative(CtopOauthToken token, AiBytedanceAdvertiserStrategy strategy, Integer createType, Long videoCnt, String openUrl) {
|
|
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());
|
|
@@ -630,10 +630,12 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
params.put("name",adName);
|
|
params.put("name",adName);
|
|
//竞价策略 默认优先跑量
|
|
//竞价策略 默认优先跑量
|
|
params.put("flow_control_mode","FLOW_CONTROL_MODE_FAST");
|
|
params.put("flow_control_mode","FLOW_CONTROL_MODE_FAST");
|
|
- params.put("feed_delivery_search","DISABLED");
|
|
|
|
//投放范围
|
|
//投放范围
|
|
if(null!=strategy.getAdDeliveryRange()&&!"".equals(strategy.getAdDeliveryRange().trim())){
|
|
if(null!=strategy.getAdDeliveryRange()&&!"".equals(strategy.getAdDeliveryRange().trim())){
|
|
params.put("delivery_range",strategy.getAdDeliveryRange());
|
|
params.put("delivery_range",strategy.getAdDeliveryRange());
|
|
|
|
+ if(!"UNION".equals(strategy.getAdDeliveryRange())){
|
|
|
|
+ params.put("feed_delivery_search","DISABLED");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if(!Check.isNull(strategy.getAdUnionVideoType())){
|
|
if(!Check.isNull(strategy.getAdUnionVideoType())){
|
|
params.put("union_video_type",strategy.getAdUnionVideoType());
|
|
params.put("union_video_type",strategy.getAdUnionVideoType());
|