|
@@ -11,6 +11,8 @@ import org.apache.http.entity.ContentType;
|
|
|
import org.apache.http.entity.StringEntity;
|
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
|
import org.apache.http.impl.client.HttpClientBuilder;
|
|
|
+import org.jeecg.common.util.ResultMapUtils;
|
|
|
+import org.jeecg.common.util.StatusCode;
|
|
|
import org.jeecg.modules.ctop.entity.ByteDanceCreative;
|
|
|
import org.jeecg.modules.ctop.entity.CTopOauthToken;
|
|
|
import org.jeecg.modules.ctop.mapper.ByteDanceCreativeMapper;
|
|
@@ -72,6 +74,7 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> insertBatch(JSONObject template) {
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
System.out.println(template.toJSONString());
|
|
|
String getName = template.getString("name");
|
|
|
String getAccountId = template.getLong("accountId") + "";
|
|
@@ -80,170 +83,180 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
|
|
|
Long userorentationId = template.getLong("userorentationId");
|
|
|
Long budgetId = template.getLong("budgetId");
|
|
|
Long deliverytargetId = template.getLong("deliverytargetId");
|
|
|
- //1:创建广告组
|
|
|
- Map<String, Object> campaignResult = campaignTemplateService.campaignCreate(getAccountId, campaignTemplateId, getName);
|
|
|
- Boolean createSuccess = (Boolean) campaignResult.get("success");
|
|
|
- if (null == createSuccess || !createSuccess) {
|
|
|
- return campaignResult;
|
|
|
- }
|
|
|
- Long campaignId = (Long) campaignResult.get("campaignId");
|
|
|
- //2:创建广告计划
|
|
|
- Map<String, Object> planResult = planTemplateService.planCreate(campaignId, getAccountId, deliveryRange, userorentationId, budgetId, deliverytargetId, getName);
|
|
|
- createSuccess = (Boolean) planResult.get("success");
|
|
|
- if (null == createSuccess || !createSuccess) {
|
|
|
- return planResult;
|
|
|
- }
|
|
|
- Long planId = (Long) campaignResult.get("planId");
|
|
|
- //3:创建广告创意
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO">横版视频</a-radio-button>
|
|
|
- JSONArray horizonImageIds = new JSONArray();
|
|
|
- String horizonVideoId = "";
|
|
|
- String horizonVideoCoverImageId = "";
|
|
|
-
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO_VERTICAL">竖版视频</a-radio-button>
|
|
|
- String verticalVideoId = "";
|
|
|
- String verticalVideoCoverImageId = "";
|
|
|
+ Integer iteratorNum = template.getInteger("iteratorNum");
|
|
|
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_GROUP">组图</a-radio-button>
|
|
|
- JSONArray groupImageIds = new JSONArray();
|
|
|
+ JSONArray groupImageArray = null;
|
|
|
+ JSONArray horizonImageArray = null;
|
|
|
+ String horizonVideoCoverImage = null;
|
|
|
+ String horizonVideo = null;
|
|
|
+ JSONArray verticalVideoCoverImageArray = null;
|
|
|
+ String verticalVideoId = null;
|
|
|
+ JSONArray smallImageArray = null;
|
|
|
+ JSONArray verticalImageArray = null;
|
|
|
+ if (null != iteratorNum && iteratorNum >= 1) {
|
|
|
+ for (int i = 0; i < iteratorNum; i++) {
|
|
|
+ //1:创建广告组
|
|
|
+ Map<String, Object> campaignResult = campaignTemplateService.campaignCreate(getAccountId, campaignTemplateId, getName);
|
|
|
+ Boolean createSuccess = (Boolean) campaignResult.get("success");
|
|
|
+ if (null == createSuccess || !createSuccess) {
|
|
|
+ return campaignResult;
|
|
|
+ }
|
|
|
+ Long campaignId = (Long) campaignResult.get("campaignId");
|
|
|
+ //2:创建广告计划
|
|
|
+ Map<String, Object> planResult = planTemplateService.planCreate(campaignId, getAccountId, deliveryRange, userorentationId, budgetId, deliverytargetId, getName);
|
|
|
+ createSuccess = (Boolean) planResult.get("success");
|
|
|
+ if (null == createSuccess || !createSuccess) {
|
|
|
+ return planResult;
|
|
|
+ }
|
|
|
+ Long planId = (Long) campaignResult.get("planId");
|
|
|
+ //3:创建广告创意
|
|
|
+ JSONObject data = new JSONObject();
|
|
|
+ data.put("ad_id", planId);
|
|
|
+ String advertiseLoaction = template.getString("advertiseLocation");
|
|
|
+ //优选广告位
|
|
|
+ if (null != advertiseLoaction && "great".equals(advertiseLoaction)) {
|
|
|
+ data.put("smart_inventory", 1);
|
|
|
+ } else {
|
|
|
+ data.put("smart_inventory", 0);
|
|
|
+ }
|
|
|
+ //按媒体指定位置
|
|
|
+ if (null != advertiseLoaction && "media".equals(advertiseLoaction)) {
|
|
|
+ JSONArray inventoryType = template.getJSONArray("inventoryType");
|
|
|
+ data.put("inventory_type", inventoryType);
|
|
|
+ }
|
|
|
+ //按场景指定位置
|
|
|
+ if (null != advertiseLoaction && "sence".equals(advertiseLoaction)) {
|
|
|
+ data.put("scene_inventory", template.getString("sceneInventory"));
|
|
|
+ }
|
|
|
+ JSONArray creatives = new JSONArray();
|
|
|
+ String horizonImageUrl = template.getString("horizonImageUrl");
|
|
|
+ String horizonImageCreativeText = template.getString("horizonImageCreativeText");
|
|
|
+ if (null != horizonImageUrl && !"".equals(horizonImageUrl) && null != horizonImageCreativeText && !"".equals(horizonImageCreativeText)) {
|
|
|
+ JSONObject creative = new JSONObject();
|
|
|
+ creative.put("image_mode", "CREATIVE_IMAGE_MODE_LARGE");
|
|
|
+ if (null == horizonImageArray) {
|
|
|
+ Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, horizonImageUrl);
|
|
|
+ horizonImageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
+ }
|
|
|
+// web.business.image/201908015d0dd63849aa78f142989c70
|
|
|
+ creative.put("image_ids", horizonImageArray);
|
|
|
+ creative.put("title", horizonImageCreativeText);
|
|
|
+ creatives.add(creative);
|
|
|
+ }
|
|
|
+ String horizonVideoUrl = template.getString("horizonVideoUrl");
|
|
|
+ String horizonVideoCoverImageUrl = template.getString("horizonVideoCoverImageUrl");
|
|
|
+ String horizonVideoCreativeText = template.getString("horizonVideoCreativeText");
|
|
|
+ if (null != horizonVideoUrl && !"".equals(horizonVideoUrl) && null != horizonVideoCoverImageUrl && !"".equals(horizonVideoCoverImageUrl) && null != horizonVideoCreativeText && !"".equals(horizonVideoCreativeText)) {
|
|
|
+ JSONObject creative = new JSONObject();
|
|
|
+ creative.put("image_mode", "CREATIVE_IMAGE_MODE_VIDEO");
|
|
|
+ if (null == horizonVideoCoverImage) {
|
|
|
+ Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, horizonVideoCoverImageUrl);
|
|
|
+ JSONArray horizonVideoCoverImageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
+ horizonVideoCoverImage = horizonVideoCoverImageArray.getString(0);
|
|
|
+ }
|
|
|
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_SMALL">小图</a-radio-button>
|
|
|
- JSONArray smallImageIds = new JSONArray();
|
|
|
+ if (null == horizonVideo) {
|
|
|
+ Map<String, Object> getVideoResult = fileInfoService.uploadVideoToBytedance(getAccountId, horizonVideoCreativeText);
|
|
|
+ horizonVideo = (String) getVideoResult.get("videoId");
|
|
|
+ }
|
|
|
+ creative.put("image_id", horizonVideoCoverImage);
|
|
|
+ creative.put("video_id", horizonVideo);
|
|
|
+ creative.put("title", horizonVideoCreativeText);
|
|
|
+ creatives.add(creative);
|
|
|
+ }
|
|
|
+ String verticalVideoUrl = template.getString("verticalVideoUrl");
|
|
|
+ String verticalVideoCoverImageUrl = template.getString("verticalVideoCoverImageUrl");
|
|
|
+ String verticalVideoCreativeText = template.getString("verticalVideoCreativeText");
|
|
|
+ if (null != verticalVideoUrl && !"".equals(verticalVideoUrl) && null != verticalVideoCoverImageUrl && !"".equals(verticalVideoCoverImageUrl) && null != verticalVideoCreativeText && !"".equals(verticalVideoCreativeText)) {
|
|
|
+ JSONObject creative = new JSONObject();
|
|
|
+ creative.put("image_mode", "CREATIVE_IMAGE_MODE_VIDEO_VERTICAL");
|
|
|
+ if (null == verticalImageArray) {
|
|
|
+ Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, verticalVideoCoverImageUrl);
|
|
|
+ verticalVideoCoverImageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
+ }
|
|
|
+ if (null == verticalVideoId || "".equals(verticalVideoId.trim())) {
|
|
|
+ Map<String, Object> getVideoResult = fileInfoService.uploadVideoToBytedance(getAccountId, verticalVideoUrl);
|
|
|
+ verticalVideoId = (String) getVideoResult.get("videoId");
|
|
|
+ }
|
|
|
+ creative.put("image_id", verticalVideoCoverImageArray.getString(0));
|
|
|
+ creative.put("video_id", verticalVideoId);
|
|
|
+ creative.put("title", verticalVideoCreativeText);
|
|
|
+ creatives.add(creative);
|
|
|
+ }
|
|
|
+ String groupImageUrl = template.getString("groupImageUrl");
|
|
|
+ String groupImageCreativeText = template.getString("groupImageCreativeText");
|
|
|
+ if (null != groupImageUrl && !"".equals(groupImageUrl) && null != groupImageCreativeText && !"".equals(groupImageCreativeText)) {
|
|
|
+ JSONObject creative = new JSONObject();
|
|
|
+ creative.put("image_mode", "CREATIVE_IMAGE_MODE_GROUP");
|
|
|
+ if (null == groupImageArray) {
|
|
|
+ Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, groupImageUrl);
|
|
|
+ groupImageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
+ }
|
|
|
+ creative.put("image_ids", groupImageArray);
|
|
|
+ creative.put("title", groupImageCreativeText);
|
|
|
+ creatives.add(creative);
|
|
|
+ }
|
|
|
+ String smallImageUrl = template.getString("smallImageUrl");
|
|
|
+ String smallImageCreativeText = template.getString("smallImageCreativeText");
|
|
|
+ if (null != smallImageUrl && !"".equals(smallImageUrl) && null != smallImageCreativeText && !"".equals(smallImageCreativeText)) {
|
|
|
+ JSONObject creative = new JSONObject();
|
|
|
+ creative.put("image_mode", "CREATIVE_IMAGE_MODE_SMALL");
|
|
|
+ if (null == smallImageArray) {
|
|
|
+ Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, smallImageUrl);
|
|
|
+ smallImageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
+ }
|
|
|
+ creative.put("image_ids", smallImageArray);
|
|
|
+ creative.put("title", smallImageCreativeText);
|
|
|
+ creatives.add(creative);
|
|
|
+ }
|
|
|
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_LARGE_VERTICAL">大图竖图</a-radio-button>
|
|
|
- JSONArray verticalImageIds = new JSONArray();
|
|
|
+ String verticalImageUrl = template.getString("verticalImageUrl");
|
|
|
+ String verticalImageCreativeText = template.getString("verticalImageCreativeText");
|
|
|
+ if (null != verticalImageUrl && !"".equals(verticalImageUrl) && null != verticalImageCreativeText && !"".equals(verticalImageCreativeText)) {
|
|
|
+ JSONObject creative = new JSONObject();
|
|
|
+ creative.put("image_mode", "CREATIVE_IMAGE_MODE_LARGE_VERTICAL");
|
|
|
+ if (null == verticalImageArray) {
|
|
|
+ Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, verticalImageUrl);
|
|
|
+ verticalImageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
+ }
|
|
|
+ creative.put("image_ids", verticalImageArray);
|
|
|
+ creative.put("title", verticalImageCreativeText);
|
|
|
+ creatives.add(creative);
|
|
|
+ }
|
|
|
|
|
|
-// creative_display_mode
|
|
|
- JSONObject data = new JSONObject();
|
|
|
- data.put("ad_id", planId);
|
|
|
- String advertiseLoaction = template.getString("advertiseLocation");
|
|
|
- //优选广告位
|
|
|
- if (null != advertiseLoaction && "great".equals(advertiseLoaction)) {
|
|
|
- data.put("smart_inventory", 1);
|
|
|
- } else {
|
|
|
- data.put("smart_inventory", 0);
|
|
|
- }
|
|
|
- //按媒体指定位置
|
|
|
- if (null != advertiseLoaction && "media".equals(advertiseLoaction)) {
|
|
|
- JSONArray inventoryType = template.getJSONArray("inventoryType");
|
|
|
- data.put("inventory_type", inventoryType);
|
|
|
- }
|
|
|
- //按场景指定位置
|
|
|
- if (null != advertiseLoaction && "sence".equals(advertiseLoaction)) {
|
|
|
- data.put("scene_inventory", template.getString("sceneInventory"));
|
|
|
- }
|
|
|
- JSONArray creatives = new JSONArray();
|
|
|
|
|
|
- //<a-radio-button value="">大图横图</a-radio-button>
|
|
|
- String horizonImageUrl = template.getString("horizonImageUrl");
|
|
|
- String horizonImageCreativeText = template.getString("horizonImageCreativeText");
|
|
|
- if (null != horizonImageUrl && !"".equals(horizonImageUrl) && null != horizonImageCreativeText && !"".equals(horizonImageCreativeText)) {
|
|
|
- JSONObject creative = new JSONObject();
|
|
|
- creative.put("image_mode", "CREATIVE_IMAGE_MODE_LARGE");
|
|
|
-// Map<String,Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId,horizonImageUrl);
|
|
|
-// JSONArray imageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
-// web.business.image/201908015d0dd63849aa78f142989c70
|
|
|
- JSONArray imageArray = new JSONArray();
|
|
|
- imageArray.add("web.business.image/201908015d0dd63849aa78f142989c70");
|
|
|
- creative.put("image_ids", imageArray);
|
|
|
- creative.put("title", horizonImageCreativeText);
|
|
|
- creatives.add(creative);
|
|
|
- }
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO">横版视频</a-radio-button>
|
|
|
- String horizonVideoUrl = template.getString("horizonVideoUrl");
|
|
|
- String horizonVideoCoverImageUrl = template.getString("horizonVideoCoverImageUrl");
|
|
|
- String horizonVideoCreativeText = template.getString("horizonVideoCreativeText");
|
|
|
- if (null != horizonVideoUrl && !"".equals(horizonVideoUrl) && null != horizonVideoCoverImageUrl && !"".equals(horizonVideoCoverImageUrl) && null != horizonVideoCreativeText && !"".equals(horizonVideoCreativeText)) {
|
|
|
- JSONObject creative = new JSONObject();
|
|
|
- creative.put("image_mode", "CREATIVE_IMAGE_MODE_VIDEO");
|
|
|
- Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, horizonVideoCoverImageUrl);
|
|
|
- JSONArray imageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
- Map<String, Object> getVideoResult = fileInfoService.uploadVideoToBytedance(getAccountId, horizonVideoCreativeText);
|
|
|
- String videoId = (String) getVideoResult.get("videoId");
|
|
|
- creative.put("image_id", imageArray.getString(0));
|
|
|
- creative.put("video_id", videoId);
|
|
|
- creative.put("title", horizonVideoCreativeText);
|
|
|
- creatives.add(creative);
|
|
|
- }
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_VIDEO_VERTICAL">竖版视频</a-radio-button>
|
|
|
- String verticalVideoUrl = template.getString("verticalVideoUrl");
|
|
|
- String verticalVideoCoverImageUrl = template.getString("verticalVideoCoverImageUrl");
|
|
|
- String verticalVideoCreativeText = template.getString("verticalVideoCreativeText");
|
|
|
- if (null != verticalVideoUrl && !"".equals(verticalVideoUrl) && null != verticalVideoCoverImageUrl && !"".equals(verticalVideoCoverImageUrl) && null != verticalVideoCreativeText && !"".equals(verticalVideoCreativeText)) {
|
|
|
- JSONObject creative = new JSONObject();
|
|
|
- creative.put("image_mode", "CREATIVE_IMAGE_MODE_VIDEO_VERTICAL");
|
|
|
- Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, verticalVideoCoverImageUrl);
|
|
|
- JSONArray imageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
- Map<String, Object> getVideoResult = fileInfoService.uploadVideoToBytedance(getAccountId, verticalVideoUrl);
|
|
|
- String videoId = (String) getVideoResult.get("videoId");
|
|
|
- creative.put("image_id", imageArray.getString(0));
|
|
|
- creative.put("video_id", videoId);
|
|
|
- creative.put("title", verticalVideoCreativeText);
|
|
|
- creatives.add(creative);
|
|
|
- }
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_GROUP">组图</a-radio-button>
|
|
|
- String groupImageUrl = template.getString("groupImageUrl");
|
|
|
- String groupImageCreativeText = template.getString("groupImageCreativeText");
|
|
|
- if (null != groupImageUrl && !"".equals(groupImageUrl) && null != groupImageCreativeText && !"".equals(groupImageCreativeText)) {
|
|
|
- JSONObject creative = new JSONObject();
|
|
|
- creative.put("image_mode", "CREATIVE_IMAGE_MODE_GROUP");
|
|
|
- Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, groupImageUrl);
|
|
|
- JSONArray imageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
- creative.put("image_ids", imageArray);
|
|
|
- creative.put("title", groupImageCreativeText);
|
|
|
- creatives.add(creative);
|
|
|
- }
|
|
|
+ data.put("creatives", creatives);
|
|
|
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_SMALL">小图</a-radio-button>
|
|
|
- String smallImageUrl = template.getString("smallImageUrl");
|
|
|
- String smallImageCreativeText = template.getString("smallImageCreativeText");
|
|
|
- if (null != smallImageUrl && !"".equals(smallImageUrl) && null != smallImageCreativeText && !"".equals(smallImageCreativeText)) {
|
|
|
- JSONObject creative = new JSONObject();
|
|
|
- creative.put("image_mode", "CREATIVE_IMAGE_MODE_SMALL");
|
|
|
- Map<String, Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId, smallImageUrl);
|
|
|
- JSONArray imageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
- creative.put("image_ids", imageArray);
|
|
|
- creative.put("title", smallImageCreativeText);
|
|
|
- creatives.add(creative);
|
|
|
- }
|
|
|
+ //应用下载详情页
|
|
|
+ data.put("web_url", template.getString("webUrl"));
|
|
|
+ //应用名
|
|
|
+ data.put("app_name", template.getString("appName"));
|
|
|
+ //广告评论
|
|
|
+ data.put("is_comment_disable ", template.getIntValue("isCommentDisable"));
|
|
|
+ //创意展现方式
|
|
|
+ data.put("creative_display_mode ", template.getString("creativeDisplayMode"));
|
|
|
+ //创意分类
|
|
|
+ JSONArray categorys = template.getJSONArray("adCategory");
|
|
|
+ String thirdIndustryId = categorys.getString(2);
|
|
|
+ data.put("third_industry_id", Integer.parseInt(thirdIndustryId));
|
|
|
+ //创意标签
|
|
|
+ data.put("ad_keywords", template.getJSONArray("adKeywords"));
|
|
|
+ String name = template.getString("name");
|
|
|
+ //创意标题
|
|
|
+ data.put("title", name + "_" + i + "_" + System.currentTimeMillis());
|
|
|
|
|
|
- //<a-radio-button value="CREATIVE_IMAGE_MODE_LARGE_VERTICAL">大图竖图</a-radio-button>
|
|
|
- String verticalImageUrl = template.getString("verticalImageUrl");
|
|
|
- String verticalImageCreativeText = template.getString("verticalImageCreativeText");
|
|
|
- if (null != verticalImageUrl && !"".equals(verticalImageUrl) && null != verticalImageCreativeText && !"".equals(verticalImageCreativeText)) {
|
|
|
- JSONObject creative = new JSONObject();
|
|
|
- creative.put("image_mode", "CREATIVE_IMAGE_MODE_LARGE_VERTICAL");
|
|
|
-// Map<String,Object> getImageResult = fileInfoService.uploadImageToBytedance(getAccountId,verticalImageUrl);
|
|
|
-// JSONArray imageArray = (JSONArray) getImageResult.get("imageIds");
|
|
|
- JSONArray imageArray = new JSONArray();
|
|
|
- imageArray.add("web.business.image/201908025d0d9292d0662227454294d5");
|
|
|
- creative.put("image_ids", imageArray);
|
|
|
- creative.put("title", verticalImageCreativeText);
|
|
|
- creatives.add(creative);
|
|
|
+ resultMap = creativeCreate(getAccountId, planId, data.toJSONString());
|
|
|
+ createSuccess = (Boolean) resultMap.get("success");
|
|
|
+ if (null != createSuccess && !createSuccess) {
|
|
|
+ return resultMap;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- data.put("creatives", creatives);
|
|
|
-
|
|
|
- //应用下载详情页
|
|
|
- data.put("web_url", template.getString("webUrl"));
|
|
|
- //应用名
|
|
|
- data.put("app_name", template.getString("appName"));
|
|
|
- //广告评论
|
|
|
- data.put("is_comment_disable ", template.getIntValue("isCommentDisable"));
|
|
|
- //创意展现方式
|
|
|
- data.put("creative_display_mode ", template.getString("creativeDisplayMode"));
|
|
|
- //创意分类
|
|
|
- JSONArray categorys = template.getJSONArray("adCategory");
|
|
|
- String thirdIndustryId = categorys.getString(2);
|
|
|
- data.put("third_industry_id", Integer.parseInt(thirdIndustryId));
|
|
|
- //创意标签
|
|
|
- data.put("ad_keywords", template.getJSONArray("adKeywords"));
|
|
|
- //创意标题
|
|
|
- data.put("title", "测试创意标题123" + System.currentTimeMillis());
|
|
|
- return creativeCreate(getAccountId, planId, data.toJSONString());
|
|
|
+ ResultMapUtils.setResultMap(resultMap, StatusCode.COMMON_SUCCESS.getCode());
|
|
|
+ return resultMap;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
|
private IByteDanceAdvertiserDataService advertiserDataService;
|
|
|
|