|
@@ -246,7 +246,6 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
@Override
|
|
|
public void autoCreateProgramCreative(AiKuaishouAdvertiserStrategy strategy, Integer createType, Long videoCnt) {
|
|
|
strategy.setUnitType(7);
|
|
|
- String replaceString = getReplaceStringByCreateType(strategy, createType);
|
|
|
Long accountId = strategy.getAccountId();
|
|
|
CtopOauthToken token = tokenService.getOauthTokenByAccountId(accountId.toString());
|
|
|
if (null == token) {
|
|
@@ -295,10 +294,11 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
strategy.setClickTrackUrl(appInfo.getTrackUrl());
|
|
|
strategy.setImpressionUrl(appInfo.getTrackUrl());
|
|
|
}
|
|
|
+ String replaceString = getReplaceStringByCreateType(strategy, createType);
|
|
|
replaceString = appInfo.getAppVersion() + replaceString;
|
|
|
//1:查询可用素材
|
|
|
List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, appInfo, createType,videoCnt);
|
|
|
- if (null == allVideos) {
|
|
|
+ if (null == allVideos||allVideos.isEmpty()) {
|
|
|
return;
|
|
|
}
|
|
|
//判定创意创建是否超限
|
|
@@ -331,6 +331,7 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
+ String replaceString = getReplaceStringByCreateType(strategy, createType);
|
|
|
//单一应用
|
|
|
List<KuaiShouVideoGet> allVideos = getVideosByParams(strategy, startTime, endTime, null, createType,videoCnt);
|
|
|
if (null == allVideos) {
|