|
@@ -105,6 +105,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
log.info("获取{}视频素材为空=>accountId:{}",BytedanceCreativeMatTypeEnum.getNameByType(createType+""),token.getAccountId());
|
|
log.info("获取{}视频素材为空=>accountId:{}",BytedanceCreativeMatTypeEnum.getNameByType(createType+""),token.getAccountId());
|
|
return videoCnt;
|
|
return videoCnt;
|
|
}
|
|
}
|
|
|
|
+ log.info("获取{}视频素材个数:{}=>accountId:{}",BytedanceCreativeMatTypeEnum.getNameByType(createType+""),videoInfos.size(),token.getAccountId());
|
|
|
|
|
|
for (ByteDanceVideoInfo video:videoInfos) {
|
|
for (ByteDanceVideoInfo video:videoInfos) {
|
|
Integer useDplinkIndex = strategy.getDpLinkIndexUsed();
|
|
Integer useDplinkIndex = strategy.getDpLinkIndexUsed();
|
|
@@ -135,7 +136,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
//计划名称
|
|
//计划名称
|
|
String adName = getAdName(strategy,null,video);
|
|
String adName = getAdName(strategy,null,video);
|
|
//计算本次出价
|
|
//计算本次出价
|
|
- BigDecimal currentCpaBid = StringUtils.getRandomAdCpaBid(strategy.getAdBidCreateType(),strategy.getAdMaxBid(),strategy.getAdMinBid(),strategy.getAdStepBid(),adDplinkInfo.getAdBid());
|
|
|
|
|
|
+ BigDecimal currentCpaBid = StringUtils.getRandomAdCpaBid(strategy.getAdBidCreateType(),strategy.getAdMaxBid(),strategy.getAdMinBid(),strategy.getAdStepBid(),adDplinkInfo.getAdBid(),strategy.getAdCpaBid());
|
|
JSONObject adParams = getAdParams(strategy,adName,campaignId,currentCpaBid);
|
|
JSONObject adParams = getAdParams(strategy,adName,campaignId,currentCpaBid);
|
|
Long adId = createAdInfo(token,strategy,adParams);
|
|
Long adId = createAdInfo(token,strategy,adParams);
|
|
if(null == adId){
|
|
if(null == adId){
|
|
@@ -195,7 +196,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
//计划名称
|
|
//计划名称
|
|
String adName = getAdName(strategy,dplinkCode,video);
|
|
String adName = getAdName(strategy,dplinkCode,video);
|
|
//计算本次出价
|
|
//计算本次出价
|
|
- BigDecimal currentCpaBid = StringUtils.getRandomAdCpaBid(strategy.getAdBidCreateType(),strategy.getAdMaxBid(),strategy.getAdMinBid(),strategy.getAdStepBid(),adDplinkInfo.getAdBid());
|
|
|
|
|
|
+ BigDecimal currentCpaBid = StringUtils.getRandomAdCpaBid(strategy.getAdBidCreateType(),strategy.getAdMaxBid(),strategy.getAdMinBid(),strategy.getAdStepBid(),adDplinkInfo.getAdBid(),strategy.getAdCpaBid());
|
|
adDplinkInfo.setAdBid(currentCpaBid);
|
|
adDplinkInfo.setAdBid(currentCpaBid);
|
|
JSONObject adParams = getAdParams(strategy,adName,campaignId,currentCpaBid);
|
|
JSONObject adParams = getAdParams(strategy,adName,campaignId,currentCpaBid);
|
|
Long adId = createAdInfo(token,strategy,adParams);
|
|
Long adId = createAdInfo(token,strategy,adParams);
|