|
@@ -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");
|