|
@@ -10,7 +10,6 @@ import org.apache.http.impl.client.CloseableHttpClient;
|
|
import org.apache.http.impl.client.HttpClientBuilder;
|
|
import org.apache.http.impl.client.HttpClientBuilder;
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.modules.bytedance.advertise.entity.AiBytedanceAdvertiserStrategy;
|
|
import org.jeecg.modules.bytedance.advertise.entity.AiBytedanceAdvertiserStrategy;
|
|
-import org.jeecg.modules.bytedance.advertise.entity.ByteDanceAdvertisePlan;
|
|
|
|
import org.jeecg.modules.bytedance.advertise.vo.AdConvertQueryVo;
|
|
import org.jeecg.modules.bytedance.advertise.vo.AdConvertQueryVo;
|
|
import org.jeecg.modules.bytedance.advertise.vo.AdGroupSearchVo;
|
|
import org.jeecg.modules.bytedance.advertise.vo.AdGroupSearchVo;
|
|
import org.jeecg.modules.bytedance.advertise.vo.ByteDanceSearchVo;
|
|
import org.jeecg.modules.bytedance.advertise.vo.ByteDanceSearchVo;
|
|
@@ -352,7 +351,7 @@ public class marketing {
|
|
//直达链接(点击唤起APP)
|
|
//直达链接(点击唤起APP)
|
|
params.put("open_url", strategy.getAdOpenUrl());
|
|
params.put("open_url", strategy.getAdOpenUrl());
|
|
//搜索快投功能,允许值:HAS_OPEN:启用,DISABLED:不启用
|
|
//搜索快投功能,允许值:HAS_OPEN:启用,DISABLED:不启用
|
|
- params.put("feed_delivery_search", "搜索快投");
|
|
|
|
|
|
+ //params.put("feed_delivery_search", "");
|
|
//用户定向
|
|
//用户定向
|
|
//允许值: "CITY"省市, "COUNTY"区县, "BUSINESS_DISTRICT"商圈,"NONE"不限
|
|
//允许值: "CITY"省市, "COUNTY"区县, "BUSINESS_DISTRICT"商圈,"NONE"不限
|
|
params.put("district", strategy.getAdScheduleType());
|
|
params.put("district", strategy.getAdScheduleType());
|
|
@@ -371,7 +370,7 @@ public class marketing {
|
|
//平台
|
|
//平台
|
|
//params.put("platform", byteDanceAdvertisePlan.getPlatform());
|
|
//params.put("platform", byteDanceAdvertisePlan.getPlatform());
|
|
//最低安卓版本
|
|
//最低安卓版本
|
|
- params.put("android_osv", "安卓版本");
|
|
|
|
|
|
+ params.put("android_osv", strategy.getAdAndroidOsv());
|
|
//网络
|
|
//网络
|
|
//params.put("ac", byteDanceAdvertisePlan.getAc());
|
|
//params.put("ac", byteDanceAdvertisePlan.getAc());
|
|
//过滤已安装 当推广目标为安卓应用下载时可填 0表示不限,1表示过滤,2表示定向。默认为不限
|
|
//过滤已安装 当推广目标为安卓应用下载时可填 0表示不限,1表示过滤,2表示定向。默认为不限
|
|
@@ -382,7 +381,7 @@ public class marketing {
|
|
params.put("auto_extend_enabled", strategy.getAdAutoExtendEnabled());
|
|
params.put("auto_extend_enabled", strategy.getAdAutoExtendEnabled());
|
|
//预算与出价
|
|
//预算与出价
|
|
//投放场景 允许值: 常规投放"SMART_BID_CUSTOM", 放量投放"SMART_BID_CONSERVATIVE"
|
|
//投放场景 允许值: 常规投放"SMART_BID_CUSTOM", 放量投放"SMART_BID_CONSERVATIVE"
|
|
- params.put("smart_bid_type", "投放场景");
|
|
|
|
|
|
+ params.put("smart_bid_type", strategy.getAdSmartBidType());
|
|
//预算类型 "BUDGET_MODE_DAY"日预算, "BUDGET_MODE_TOTAL"总预算
|
|
//预算类型 "BUDGET_MODE_DAY"日预算, "BUDGET_MODE_TOTAL"总预算
|
|
params.put("budget_mode", strategy.getAdBudgetMode());
|
|
params.put("budget_mode", strategy.getAdBudgetMode());
|
|
//预算 出价方式为CPC、CPM、CPV时,不少于100元;出价方式为OCPM、OCPC时,不少于300元
|
|
//预算 出价方式为CPC、CPM、CPV时,不少于100元;出价方式为OCPM、OCPC时,不少于300元
|
|
@@ -804,9 +803,6 @@ public class marketing {
|
|
* @author: zianY
|
|
* @author: zianY
|
|
*/
|
|
*/
|
|
public static Result updateAdvertiserPlan(CtopOauthToken token, String planId,String modifyTime,AiBytedanceAdvertiserStrategy strategy) {
|
|
public static Result updateAdvertiserPlan(CtopOauthToken token, String planId,String modifyTime,AiBytedanceAdvertiserStrategy strategy) {
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
JSONObject params = new JSONObject();
|
|
JSONObject params = new JSONObject();
|
|
//广告主ID
|
|
//广告主ID
|
|
params.put("advertiser_id", strategy.getAccountId());
|
|
params.put("advertiser_id", strategy.getAccountId());
|