|
@@ -870,6 +870,7 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
@Autowired
|
|
|
private IKuaiShouCampaignService campaignService;
|
|
|
|
|
|
+
|
|
|
private List<KuaiShouVideoGet> getVideosByParams(AiKuaishouAdvertiserStrategy strategy, String startTime, String endTime, AiKuaiShouAppInfo appInfo, Integer createType, Long videoCnt) {
|
|
|
if (createType == 1) {
|
|
|
return getNewVideoListByParams(strategy, startTime, endTime, appInfo);
|
|
@@ -916,9 +917,15 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
aiKuaishouCampaignLevelOperationRecordService.saveOrUpdate(record);
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
campaignId = (Long) campaignCreateResult.get("campaignId");
|
|
|
record.setCampaignId(campaignId);
|
|
|
aiKuaishouCampaignLevelOperationRecordService.saveOrUpdate(record);
|
|
|
+ Integer campaignStatus = strategy.getCampaignStatus();
|
|
|
+ if (!Check.isNull(campaignStatus) && campaignStatus == 2) {
|
|
|
+ updateService.updateCampaignStatus(token.getAccessToken(), token.getAccountId(), campaignId, campaignStatus, "yumeng");
|
|
|
+ }
|
|
|
+
|
|
|
return campaignId;
|
|
|
}
|
|
|
|
|
@@ -934,6 +941,10 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
unitParams.put("unit_name", unitName);
|
|
|
//出价类型
|
|
|
unitParams.put("bid_type", strategy.getBidType());
|
|
|
+ if (!Check.isNull(strategy.getGroupStatus()) && strategy.getGroupStatus() == 2) {
|
|
|
+ unitParams.put("put_status", strategy.getGroupStatus());
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
//组单日预算
|
|
|
if (null != strategy.getUnitDayBudget() && strategy.getUnitDayBudget() != 0) {
|