|
@@ -1046,20 +1046,31 @@ public class BatchServiceImpl implements IBatchService {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
creativeJson.put("creative_material_type", creative.getCreativeMaterialType());
|
|
creativeJson.put("creative_material_type", creative.getCreativeMaterialType());
|
|
|
|
+ String click_track_url = creative.getClickTrackUrl();
|
|
if (creative.getCreativeMaterialType() == 4) {
|
|
if (creative.getCreativeMaterialType() == 4) {
|
|
creativeJson.put("image_tokens", JSONArray.parseArray(creative.getImageTokens()));
|
|
creativeJson.put("image_tokens", JSONArray.parseArray(creative.getImageTokens()));
|
|
creativeJson.put("short_slogan", creative.getShortSlogan());
|
|
creativeJson.put("short_slogan", creative.getShortSlogan());
|
|
|
|
+ // 第三方开始播放监测链接
|
|
|
|
+ if (!Check.isNull(click_track_url)) {
|
|
|
|
+ creativeJson.put("impression_url", click_track_url);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (!Check.isNull(creative.getImpressionUrl())) {
|
|
|
|
+ creativeJson.put("impression_url", creative.getImpressionUrl());
|
|
|
|
+ }
|
|
|
|
|
|
} else {
|
|
} else {
|
|
String photo_id = creative.getPhotoId();
|
|
String photo_id = creative.getPhotoId();
|
|
creativeJson.put("photo_id", photo_id);
|
|
creativeJson.put("photo_id", photo_id);
|
|
String image = creative.getImageToken();
|
|
String image = creative.getImageToken();
|
|
creativeJson.put("image_token", image);
|
|
creativeJson.put("image_token", image);
|
|
|
|
+ if (!Check.isNull(click_track_url)) {
|
|
|
|
+ creativeJson.put("click_track_url", click_track_url);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
String action_bar_text = creative.getActionBarText();
|
|
String action_bar_text = creative.getActionBarText();
|
|
- String click_track_url = creative.getClickTrackUrl();
|
|
|
|
JSONArray successArr = new JSONArray();
|
|
JSONArray successArr = new JSONArray();
|
|
JSONArray failArr = new JSONArray();
|
|
JSONArray failArr = new JSONArray();
|
|
String description = creative.getDescription();
|
|
String description = creative.getDescription();
|
|
@@ -1067,7 +1078,7 @@ public class BatchServiceImpl implements IBatchService {
|
|
creativeJson.put("action_bar_text", action_bar_text);
|
|
creativeJson.put("action_bar_text", action_bar_text);
|
|
creativeJson.put("description", description.trim());
|
|
creativeJson.put("description", description.trim());
|
|
creativeJson.put("creative_name", name);
|
|
creativeJson.put("creative_name", name);
|
|
- creativeJson.put("click_track_url", click_track_url);
|
|
|
|
|
|
+ // creativeJson.put("click_track_url", click_track_url);
|
|
|
|
|
|
//封面广告语标题
|
|
//封面广告语标题
|
|
if (!Check.isNull(creative.getStickerTitle())) {
|
|
if (!Check.isNull(creative.getStickerTitle())) {
|
|
@@ -1077,10 +1088,7 @@ public class BatchServiceImpl implements IBatchService {
|
|
if (!Check.isNull(creative.getOverlayType())) {
|
|
if (!Check.isNull(creative.getOverlayType())) {
|
|
creativeJson.put("overlay_type", creative.getOverlayType());
|
|
creativeJson.put("overlay_type", creative.getOverlayType());
|
|
}
|
|
}
|
|
- // 第三方开始播放监测链接
|
|
|
|
- if (!Check.isNull(creative.getImpressionUrl())) {
|
|
|
|
- creativeJson.put("impression_url", creative.getImpressionUrl());
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
// 第三方有效播放监测链接
|
|
// 第三方有效播放监测链接
|
|
if (!Check.isNull(creative.getAdPhotoPlayedT3sUrl())) {
|
|
if (!Check.isNull(creative.getAdPhotoPlayedT3sUrl())) {
|
|
creativeJson.put("ad_photo_played_t3s_url", creative.getAdPhotoPlayedT3sUrl());
|
|
creativeJson.put("ad_photo_played_t3s_url", creative.getAdPhotoPlayedT3sUrl());
|