|
@@ -173,7 +173,6 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
|
|
data.put("ad_id", adId);
|
|
data.put("ad_id", adId);
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_creative_create_v2");
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_creative_create_v2");
|
|
JSONObject result = HttpUtils.bytedancePostRequest(token.getAccessToken(),url,data);
|
|
JSONObject result = HttpUtils.bytedancePostRequest(token.getAccessToken(),url,data);
|
|
- System.out.println(result);
|
|
|
|
Integer code = result.getInteger("code");
|
|
Integer code = result.getInteger("code");
|
|
String message = result.getString("message");
|
|
String message = result.getString("message");
|
|
if (null == code || code != 0) {
|
|
if (null == code || code != 0) {
|
|
@@ -294,6 +293,7 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
|
|
Map<String,Object> getData = creativeCreate(accountId+"",planIds.getLong(i),params);
|
|
Map<String,Object> getData = creativeCreate(accountId+"",planIds.getLong(i),params);
|
|
array.add(getData);
|
|
array.add(getData);
|
|
}
|
|
}
|
|
|
|
+ getAdvertiserCreative(token,null,null);
|
|
result.put("data",array);
|
|
result.put("data",array);
|
|
ResultMapUtils.setResultMap(result,StatusCode.COMMON_SUCCESS);
|
|
ResultMapUtils.setResultMap(result,StatusCode.COMMON_SUCCESS);
|
|
return result;
|
|
return result;
|