|
@@ -320,12 +320,12 @@ public class MarketingServiceImpl implements MarketingService{
|
|
public Result createAdvertiserPlan(CtopOauthToken token, JSONObject params, AiBytedanceAdvertiserStrategy strategy) {
|
|
public Result createAdvertiserPlan(CtopOauthToken token, JSONObject params, AiBytedanceAdvertiserStrategy strategy) {
|
|
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);
|
|
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"));
|
|
- Result.error(jsonObject.getString("message"));
|
|
|
|
|
|
+ return Result.error(jsonObject.getString("message"));
|
|
}
|
|
}
|
|
- System.out.println(jsonObject);
|
|
|
|
//strategy.setId(jsonObject.getJSONObject("data").getLong("ad_id"));
|
|
//strategy.setId(jsonObject.getJSONObject("data").getLong("ad_id"));
|
|
return Result.successMsg("广告计划创建成功",jsonObject.getJSONObject("data").getLong("ad_id"));
|
|
return Result.successMsg("广告计划创建成功",jsonObject.getJSONObject("data").getLong("ad_id"));
|
|
}
|
|
}
|