|
@@ -504,12 +504,13 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
|
|
BytedanceCreativeLaunchTemplate launchTemplate = launchTemplateMapper.selectById(creativeTemplateId);
|
|
BytedanceCreativeLaunchTemplate launchTemplate = launchTemplateMapper.selectById(creativeTemplateId);
|
|
data.put("ad_id", adId);
|
|
data.put("ad_id", adId);
|
|
String advertiseLoaction = launchTemplate.getAdvertiseLocation();
|
|
String advertiseLoaction = launchTemplate.getAdvertiseLocation();
|
|
- if (deliveryRange != 2) {
|
|
|
|
|
|
+ if (deliveryRange == 2) {
|
|
|
|
+ //按媒体指定位置
|
|
|
|
+ JSONArray inventoryType = new JSONArray();
|
|
|
|
+ inventoryType.add("INVENTORY_FEED");
|
|
|
|
+ data.put("inventory_type", inventoryType);
|
|
|
|
+ } else {
|
|
//穿山甲
|
|
//穿山甲
|
|
- //优选广告位
|
|
|
|
- if (null != advertiseLoaction && advertiseLoaction.equals("great") && null != launchTemplate.getSmartInventory() && !"".equals(launchTemplate.getSmartInventory())) {
|
|
|
|
- data.put("smart_inventory", launchTemplate.getSmartInventory());
|
|
|
|
- }
|
|
|
|
//按媒体指定位置
|
|
//按媒体指定位置
|
|
if (null != advertiseLoaction && "media".equals(advertiseLoaction)) {
|
|
if (null != advertiseLoaction && "media".equals(advertiseLoaction)) {
|
|
String inventoryTypeStr = launchTemplate.getInventoryType();
|
|
String inventoryTypeStr = launchTemplate.getInventoryType();
|
|
@@ -520,8 +521,12 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
|
|
if (null != advertiseLoaction && "sence".equals(advertiseLoaction)) {
|
|
if (null != advertiseLoaction && "sence".equals(advertiseLoaction)) {
|
|
data.put("scene_inventory", launchTemplate.getSceneInventory());
|
|
data.put("scene_inventory", launchTemplate.getSceneInventory());
|
|
}
|
|
}
|
|
- //创意展现方式
|
|
|
|
- data.put("creative_display_mode", launchTemplate.getCreativeDisplayMode());
|
|
|
|
|
|
+ }
|
|
|
|
+ //创意展现方式
|
|
|
|
+ data.put("creative_display_mode", launchTemplate.getCreativeDisplayMode());
|
|
|
|
+ //优选广告位
|
|
|
|
+ if (null != advertiseLoaction && advertiseLoaction.equals("great") && null != launchTemplate.getSmartInventory() && !"".equals(launchTemplate.getSmartInventory())) {
|
|
|
|
+ data.put("smart_inventory", launchTemplate.getSmartInventory());
|
|
}
|
|
}
|
|
|
|
|
|
//广告评论
|
|
//广告评论
|