跳到主要内容

export_amount

v1.0.0

Base URLs:

获取收益数据

POST

/mediaReport/export/amount

更新记录

时间说明
2025-04-08新增请求数据、填充数据;新增请求示例

请求参数

名称位置类型必选说明
startDatebodystring开始日期
endDatebodystring结束日期
userNamebodystring账号
authCodebodystring授权码,见章鱼移动广告 SAAS 平台 右上角授权码获取

请求参数 json 格式,示例

{
"startDate": "2023-03-15",
"endDate": "2023-03-23",
"userName": "aaa",
"authCode": "ec42e778e59f2f7beface5fdf169b4d8"
}

返回内容

返回数据结构

序号名称类型必选说明
1successboolean状态
2messagestring消息内容
3codeint状态码,200 成功,其他失败
4resultarray数据结构体
4.1slotNamestring渠道信息
4.2amountstring收益(元)
4.3impCountstring曝光数
4.4clkCountstring点击数
4.5mediaNamestring媒体信息
4.6theTimestring日期
4.7slotIdstring渠道 ID
4.8mediaIdstring媒体 ID
4.9requestCountstring请求数据
4.10fillCountstring填充数据
5timestamplong毫秒时间戳

返回示例

{
"success": true,
"message": "success",
"code": 200,
"result": [
{
"slotName": "bbb(123)",
"amount": "0.1",
"requestCount": "1",
"fillCount": "1",
"impCount": "1",
"clkCount": "0",
"mediaName": "aaa(123)",
"theTime": "2023-03-15",
"slotId": "123",
"mediaId": "123"
}
],
"timestamp": 1680599047410
}

返回结果

状态码状态码含义说明数据模型
200OK成功
500false失败

示例

curl 示例

curl --location --request POST 'https://ad.adintl.cn/openApi/mediaReport/export/amount' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: localhost:8080' \
--header 'Connection: keep-alive' \
--data-raw '{
"startDate": "2023-03-15",
"endDate": "2023-03-23",
"userName": "aaa",
"authCode": "ec42e778e59f2f7beface5fdf169b4d8"
}'

java 示例

OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"startDate\": \"2024-03-15\",\n \"endDate\": \"2024-03-19\",\n \"userName\": \"aaa\",\n \"authCode\": \"ec42e778e59f2f7beface5fdf169b4d8\"\n}");
Request request = new Request.Builder()
.url("https://ad.adintl.cn/openApi/mediaReport/export/amount")
.method("POST", body)
.addHeader("User-Agent", "Apifox/1.0.0 (https://apifox.com)")
.addHeader("Content-Type", "application/json")
.addHeader("Accept", "*/*")
.addHeader("Host", "localhost:8080")
.addHeader("Connection", "keep-alive")
.build();
Response response = client.newCall(request).execute();