瀏覽代碼

创意参数完善

liyuyi@c-top.com.cn 4 年之前
父節點
當前提交
bbe3e3f2b2

+ 2 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ads/entity/AiKuaishouStrategyMapCreative.java

@@ -27,6 +27,8 @@ public class AiKuaishouStrategyMapCreative {
 	private Long creativeId;
 	/**策略_定向关联id*/
 	private Long strategyTargetUnionId;
+	/**素材签名*/
+	private String video_signature;
 	/**策略id*/
 	private Long strategyId;
 	/**是否创建成功*/

+ 10 - 22
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ads/service/impl/AiStrategyServiceImpl.java

@@ -161,12 +161,12 @@ public class AiStrategyServiceImpl implements IAiStrategyService {
                                         (unitCnt++).toString());
 
             //TODO 模板里的内容与测试方向冲突?
-            unitParams.put("template_id",strategy.getTemplateId());
+//            unitParams.put("template_id",strategy.getTemplateId());
             unitParams.put("bid_type",10);
 
             //TODO 前端添加对应设置项
-            unitParams.put("use_app_market","?");
-            unitParams.put("app_store","?");
+            unitParams.put("use_app_market",strategy.getUseAppMarket());
+            unitParams.put("app_store",strategy.getAppStore());
 
             // 非 OCPM 出价方式,是手动通过AD后台,走通几个成功下载APP的案例
             // 在本策略中,都是 OCPM 的出价方式
@@ -299,13 +299,13 @@ public class AiStrategyServiceImpl implements IAiStrategyService {
 //                    creativeParams.put("image_tokens",""); 便利贴单图图片创意token
                     creativeParams.put("action_bar_text","立即下载");
                     creativeParams.put("description",""); // 广告语 -- 看小说太累?不妨试一试听书,解放双手,缓解压力!
-                    creativeParams.put("site_id",""); // 安卓下载中间页ID
-                    creativeParams.put("click_track_url","");
-                    creativeParams.put("impression_url","");
-                    creativeParams.put("ad_photo_played_t3s_url","");
-                    creativeParams.put("actionbar_click_url","");
-                    creativeParams.put("creative_category","");// 创意分类
-                    creativeParams.put("creative_tag",""); //创意标签
+                    creativeParams.put("site_id",strategy.getSiteId()); // 安卓下载中间页ID
+                    creativeParams.put("click_track_url",strategy.getClickTrackUrl());
+                    creativeParams.put("impression_url",strategy.getImpressionUrl());
+//                    creativeParams.put("ad_photo_played_t3s_url","?");
+                    creativeParams.put("actionbar_click_url",strategy.getActionbarClickUrl());
+//                    creativeParams.put("creative_category","");// 创意分类
+//                    creativeParams.put("creative_tag",""); //创意标签
                 }
                 else
                 {
@@ -339,18 +339,6 @@ public class AiStrategyServiceImpl implements IAiStrategyService {
 
 
 
-                creativeParams.put("advertiser_id",token.getAccountId());
-                creativeParams.put("unit_id",unitId);
-                creativeParams.put("creative_name","");
-                creativeParams.put("photo_id","");
-                creativeParams.put("image_token","");
-                creativeParams.put("creative_material_type","");
-                creativeParams.put("","");
-                creativeParams.put("","");
-                creativeParams.put("","");
-                creativeParams.put("","");
-                creativeParams.put("","");
-
                 Map<String, Object> creativeCreateResult = kuaishouInterfaceService.creativeCreate
                         (token.getAccessToken(), token.getAccountId(), creativeParams,1);
                 Integer creativeCode = (Integer) creativeCreateResult.get("code");