|
@@ -319,15 +319,20 @@ public class AiBytedanceAdvertiserStrategyServiceImpl extends ServiceImpl<AiByte
|
|
|
}
|
|
|
private JSONObject getCreativeParams(AiBytedanceAdvertiserStrategy strategy, Long adId,ByteDanceVideoInfo videoInfo,CtopOauthToken token) {
|
|
|
JSONObject params = new JSONObject();
|
|
|
- params.put("advertiser_id",strategy.getAccountId());
|
|
|
- params.put("ad_id",adId);
|
|
|
+ params.put("advertiser_id", strategy.getAccountId());
|
|
|
+ params.put("ad_id", adId);
|
|
|
String inventoryType = strategy.getCreativeInventoryType();
|
|
|
- if(null!=inventoryType&&!"".equals(inventoryType)){
|
|
|
+ if ("CREATIVE_IMAGE_MODE_UNION_SPLASH".equalsIgnoreCase(strategy.getCreativeImageMode())) {
|
|
|
+ params.put("inventory_type", new String[]{"INVENTORY_UNION_SPLASH_SLOT"});
|
|
|
+ } else {
|
|
|
+ if (null != inventoryType && !"".equals(inventoryType)) {
|
|
|
String[] inventoryTypeString = inventoryType.split(",");
|
|
|
- if(inventoryTypeString.length>0){
|
|
|
- params.put("inventory_type",inventoryTypeString);
|
|
|
+ if (inventoryTypeString.length > 0) {
|
|
|
+ params.put("inventory_type", inventoryTypeString);
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
Integer smartInventory = strategy.getCreativeSmartInventory();
|
|
|
if(null!=smartInventory&&smartInventory!=0){
|
|
|
params.put("smart_inventory",smartInventory);
|