|
@@ -526,7 +526,7 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
|
|
|
}
|
|
|
|
|
|
- //通投智选 竖版视频 横版视频 横图大图
|
|
|
+ //通投智选 竖版视频 横版视频 横图大图 竖图大图
|
|
|
if (!Check.isNull(strategy.getAdDeliveryRange()) && "UNIVERSAL".equalsIgnoreCase(strategy.getAdDeliveryRange())){
|
|
|
List<ByteDanceVideoInfo> resultList = new ArrayList<>();
|
|
|
//获取 最近14天的时间 开始 和截至时间点
|
|
@@ -575,6 +575,29 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //竖图大图
|
|
|
+ if (strategy.getCreativeImageMode().contains("CREATIVE_IMAGE_MODE_LARGE_VERTICAL")){
|
|
|
+ List<ByteDanceVideoInfo> listImage = byteDanceVideoInfoMapper.getModeImageVertical(strategy.getAccountId(),map.get("startTime"),map.get("endTime"),1L);
|
|
|
+ if (!Check.isNull(listImage)){
|
|
|
+ for (ByteDanceVideoInfo info : listImage) {
|
|
|
+ JSONObject objectImg = new JSONObject();
|
|
|
+ //图片素材
|
|
|
+ objectImg.put("image_mode","CREATIVE_IMAGE_MODE_LARGE");
|
|
|
+ String[] imageIds = new String[]{info.getId()};
|
|
|
+ JSONArray image_info = new JSONArray();
|
|
|
+ for (String imgId : imageIds) {
|
|
|
+ JSONObject imageObject = new JSONObject();
|
|
|
+ imageObject.put("image_id",imgId);
|
|
|
+ image_info.add(imageObject);
|
|
|
+ }
|
|
|
+ objectImg.put("image_info",image_info);
|
|
|
+ imageMaterials.add(objectImg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
creObj.put("image_materials",imageMaterials);
|
|
|
creObj.put("video_materials",videoMaterials);
|