POST https://api-us-east.eclicktech.com.cn/wgt/report/gamebridge/v2/ssp/search/afs/trace/report
{
"keyword": [
"cancer"
],
"country": [
"US"
],
"domain": [
"siteId1"
],
"information": [
"63705bebbbebaf"
],
"utm_source": "tikTok",
"sub1": "as",
"sub2": "ac",
"sub3": "ad",
"begin_date": "2024-08-02",
"end_date": "2024-08-09",
"dimensions": [
"Date",
"Domain",
"Keyword",
"Country",
"Information",
"UtmSource",
"Sub1",
"Sub2",
"Sub3"
],
"sorts": {
"Date": 1
},
"page_index": 1,
"page_size": 10
}
{
"data": {
"rows": [
{
"Country": "US",
"Date": "2024-07-09",
"Domain": "testdemo.com",
"InformationId": "63705bebbbeb",
"InformationTitle": "7 Types of Massage demo title",
"Keyword": "Cancer",
"Lp_Pv": "147",
"Search_Click": "7",
"Search_Pv": "83",
"Sub1": "",
"Sub2": "",
"Sub3": "",
"UtmSource": "tikTok",
"Net_Revenue": "71.82"
}
],
"total": 1,
"total_rows": [
{
"Lp_Pv": "147",
"Search_Click": "7",
"Search_Pv": "83",
"Net_Revenue": "71.82"
}
]
},
"success": true
}
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n" +
" \"keyword\": [\n" +
"\n" +
" ],\n" +
" \"country\": [\n" +
" \"US\"\n" +
" ],\n" +
" \"domain\": [\n" +
"\n" +
" ],\n" +
" \"information\": [\n" +
"\n" +
" ],\n" +
" \"utm_source\": \"tikTok\",\n" +
" \"sub1\": \"\",\n" +
" \"sub2\": \"\",\n" +
" \"sub3\": \"\",\n" +
" \"begin_date\": \"2024-08-02\",\n" +
" \"end_date\": \"2024-08-09\",\n" +
" \"dimensions\": [\n" +
" \"Date\",\n" +
" \"Domain\",\n" +
" \"Keyword\",\n" +
" \"Country\",\n" +
" \"Information\",\n" +
" \"UtmSource\",\n" +
" \"Sub1\",\n" +
" \"Sub2\",\n" +
" \"Sub3\"\n" +
" ],\n" +
" \"page_index\": 1,\n" +
" \"page_size\": 10\n" +
"}");
Request request = new Request.Builder()
.url("https://api-us-east.eclicktech.com.cn/wgt/report/gamebridge/v2/ssp/search/afs/trace/report")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("x-apihub-env", "prod")
.addHeader("x-apihub-ak", "替换掉你的token")
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());