|
@@ -1,6 +1,5 @@
|
|
package org.jeecg.modules.bytedance.advertise.dockapi;
|
|
package org.jeecg.modules.bytedance.advertise.dockapi;
|
|
|
|
|
|
-import android.widget.CheckBox;
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -318,9 +317,10 @@ public class MarketingServiceImpl implements MarketingService{
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public Result createAdvertiserPlan(CtopOauthToken token, JSONObject params, AiBytedanceAdvertiserStrategy strategy) {
|
|
public Result createAdvertiserPlan(CtopOauthToken token, JSONObject params, AiBytedanceAdvertiserStrategy strategy) {
|
|
|
|
+ log.info("创建参数:{}",params.toJSONString());
|
|
JSONObject jsonObject = HttpUtils.bytedancePostRequest(token.getAccessToken(),
|
|
JSONObject jsonObject = HttpUtils.bytedancePostRequest(token.getAccessToken(),
|
|
urlPath + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_ad_create"), params);
|
|
urlPath + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_ad_create"), params);
|
|
- log.info("广告计划输出返回信息---->>>>>",jsonObject);
|
|
|
|
|
|
+ log.info("广告计划输出返回信息---->>>>>{}",jsonObject);
|
|
Integer code = jsonObject.getInteger("code");
|
|
Integer code = jsonObject.getInteger("code");
|
|
if (null == code || !code.equals(0)) {
|
|
if (null == code || !code.equals(0)) {
|
|
log.error("广告计划创建失败==》accountId:{},message:{}", token.getAccountId(), jsonObject.getString("message"));
|
|
log.error("广告计划创建失败==》accountId:{},message:{}", token.getAccountId(), jsonObject.getString("message"));
|