report/export

字段和值参考 · Markdown

GET/report/export

Fetch CSV-schema export rows for the requested time range. Requires the reports:read permission.

Request

cURL
curl -X GET "https://provisioning.cloudx.io/api/v1/report/export?start_time=1712448000&end_time=1712534399" \
  -H "Authorization: Bearer $CLOUDX_API_KEY"

Query parameters

NameTypeDescription
start_timerequiredinteger<int64>Start of the time range as a Unix timestamp in seconds. The requested range must not exceed 31 days and must not start before 2020-01-01 UTC.
end_timerequiredinteger<int64>End of the time range as a Unix timestamp in seconds. The requested range must not exceed 31 days and must not end before 2020-01-01 UTC.
countrystringISO 3166-1 alpha-2 country code filter.
device_osstringDevice operating system filter. Allowed values: iOS, Android.
granularitystringReporting bucket size. Defaults to daily. Allowed values: daily, hourly.

Responses

CSV-schema export rows.
{
  "columns": [
    "<string>"
  ],
  "rows": [
    [
      "<string>"
    ]
  ],
  "row_count": 123
}

200CSV-schema export rows.

FieldTypeDescription
columnsrequiredarray of string
rowsrequiredarray of array of string
row_countrequiredinteger<int64>

400Invalid request parameters.

FieldTypeDescription
errorrequiredstring

401Unauthorized.

FieldTypeDescription
errorrequiredstring

403Forbidden.

FieldTypeDescription
errorrequiredstring

500Internal server error.

FieldTypeDescription
errorrequiredstring

504The query did not finish within the request time budget. Retry, narrowing the time range or filters where the operation accepts them.

FieldTypeDescription
errorrequiredstring

导出响应参考

rows 是字符串数组的数组。每一行按 columns 中相同的位置取值。row_count 是返回行数。CloudX 最多返回 100,000 行。请求范围使用 Unix 秒且包含端点,开始时间不得早于 2020-01-01 UTC,范围不得超过 31 天。

每日导出始终按以下顺序返回列:

位置列字符串值
1dateUTC 日历日期,格式 YYYY-MM-DD。
2network_name动态买方适配器名称;CloudX 结算时为 CloudX Exchange。
3app_name广告单元匹配时由实时配置补充的应用名称;否则为源文本。
4app_store_id广告单元匹配时由实时配置补充的应用 bundle ID,并非总是数字商店 ID。
5platform源平台文本。大小写不规范化,例如 android 或 iOS。
6ad_unit_id动态 CloudX 广告单元 ID。
7ad_type广告单元匹配实时配置时的小写配置广告单元类型,例如 banner、interstitial、rewarded、mrec 或 native。
8network_placement已配置时为活动网络映射的 placement_id;否则为空字符串。
9countryISO 3166-1 alpha-2 国家代码;不可用时为空字符串。
10impressions十进制整数展示数。
11clicks十进制整数点击数。
12revenue恰有两位小数的十进制货币金额。
13attempts十进制整数请求数。
14responses十进制整数响应或填充数。

每小时导出只替换位置 1。该列为 bucket_start,值是 RFC 3339 UTC 时间戳,例如 2026-04-01T13:00:00Z。位置 2 至 14 不变。

device_os 只接受 iOS 或 Android。它过滤源数据,不会规范化返回的 platform 文本。country 按 ISO alpha-2 代码过滤。该端点只返回生产数据,且没有 test_mode 参数。network_name、应用 ID、广告单元 ID 和 placement ID 取决于配置和数据,不是固定枚举。

attempts 和 responses 取决于报表来源。旧报表使用 SSP 请求总数作为 attempts,并为 responses 返回 0。SDK 报表使用广告请求总数作为 attempts,使用填充总数作为 responses。

每日 JSON 示例

{
  "columns": ["date", "network_name", "app_name", "app_store_id", "platform", "ad_unit_id", "ad_type", "network_placement", "country", "impressions", "clicks", "revenue", "attempts", "responses"],
  "rows": [["2026-04-01", "CloudX Exchange", "Sample Puzzle", "com.example.puzzle", "iOS", "ad-unit-home", "banner", "", "US", "1200", "18", "14.25", "1500", "960"]],
  "row_count": 1
}

每小时 JSON 示例

{
  "columns": ["bucket_start", "network_name", "app_name", "app_store_id", "platform", "ad_unit_id", "ad_type", "network_placement", "country", "impressions", "clicks", "revenue", "attempts", "responses"],
  "rows": [["2026-04-01T13:00:00Z", "meta", "Sample Puzzle", "com.example.puzzle", "iOS", "ad-unit-home", "banner", "home-banner", "US", "120", "2", "1.43", "150", "96"]],
  "row_count": 1
}