|
@@ -159,6 +159,10 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
}
|
|
|
//计划名称
|
|
|
String adName = getAdName(strategy,null,video,userAllocation.getProjectId());
|
|
|
+ log.info("计划原名称=============>>>>>>>>>>{};长度为{}",adName,StringUtils.length(adName));
|
|
|
+ //截取 计划名称
|
|
|
+ adName = StringUtils.adNameSubMaterial(adName);
|
|
|
+ log.info("计划截取后名称===========>>>>>>>>>>{};长度为{}",adName,StringUtils.length(adName));
|
|
|
//计算本次出价
|
|
|
BigDecimal currentCpaBid = StringUtils.getRandomAdCpaBid(strategy.getAdBidCreateType(),strategy.getAdMaxBid(),strategy.getAdMinBid(),strategy.getAdStepBid(),adDplinkInfo.getAdBid(),strategy.getAdCpaBid());
|
|
|
JSONObject adParams = getAdParams(strategy,adName,campaignId,currentCpaBid);
|
|
@@ -254,6 +258,10 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
String dplinkCode = StringUtils.getParamFromUrl(strategy.getAdOpenUrl(),"bc_fl_src");
|
|
|
//计划名称
|
|
|
String adName = getAdName(strategy,dplinkCode,video,userAllocation.getProjectId());
|
|
|
+ log.info("计划原名称=============>>>>>>>>>>{};长度为{}",adName,StringUtils.length(adName));
|
|
|
+ //截取 计划名称
|
|
|
+ adName = StringUtils.adNameSubMaterial(adName);
|
|
|
+ log.info("计划截取后名称===========>>>>>>>>>>{};长度为{}",adName,StringUtils.length(adName));
|
|
|
//计算本次出价
|
|
|
BigDecimal currentCpaBid = StringUtils.getRandomAdCpaBid(strategy.getAdBidCreateType(),strategy.getAdMaxBid(),strategy.getAdMinBid(),strategy.getAdStepBid(),adDplinkInfo.getAdBid(),strategy.getAdCpaBid());
|
|
|
adDplinkInfo.setAdBid(currentCpaBid);
|
|
@@ -1034,10 +1042,10 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
if ("video".equals(videoInfo.getMaterialType())){
|
|
|
MaterialInfo info = materialInfoService.getParams(videoInfo.getSignature(),null,projectId);
|
|
|
if(null!=info&&null!=info.getMaterialName()){
|
|
|
- adName = adName.replace("{{素材名称}}",info.getMaterialName());
|
|
|
+ adName = adName.replace("{{素材名称}}","["+info.getMaterialName()+"]");
|
|
|
}
|
|
|
}else {
|
|
|
- adName = adName.replace("{{素材名称}}",videoInfo.getFilename());
|
|
|
+ adName = adName.replace("{{素材名称}}","["+videoInfo.getFilename()+"]");
|
|
|
}
|
|
|
}
|
|
|
|