report/demand-comparison/ad-units
Field and value reference · Markdown
/report/demand-comparison/ad-unitsRequest
curl -X GET "https://provisioning.cloudx.io/api/v1/report/demand-comparison/ad-units?start_time=1712462400&end_time=1713067200&demand_source=<demand_source>" \
-H "Authorization: Bearer $CLOUDX_API_KEY"Query parameters
| Name | Type | Description |
|---|---|---|
start_timerequired | integer<int64> | Start of the inclusive report window as a Unix timestamp in seconds. CloudX converts the timestamp to a calendar date in timezone. The start date must be 2020-01-01 or later. The window can span any number of completed calendar dates within available history; some dates may have no data. |
end_timerequired | integer<int64> | End of the inclusive report window as a Unix timestamp in seconds. CloudX converts the timestamp to a calendar date in timezone. The end date must not precede the start date and must be complete. At and after 12:00 UTC, yesterday is complete. Before 12:00 UTC, the most recent complete date is the day before yesterday. The window can span any number of completed calendar dates within available history; some dates may have no data. |
timezone | string | IANA timezone used to convert start_time and end_time to calendar dates. Defaults to UTC. |
demand_sourcerequired | string | Required demand source. Provide exactly one supported value, for example demand_source=meta. Allowed values: digitalturbine, inmobi, liftoff, meta, moloco. |
provider_business_id | string | Optional provider-business filter. Use a comma-separated list for multiple values. |
provider_property_id | string | Optional provider-property filter. Use a comma-separated list for multiple values. |
cloudx_ad_unit_id | string | Optional CloudX ad-unit filter. Use a comma-separated list for multiple values. |
view | string | Select mapped comparison rows or partner rows that have no current CloudX mapping. Allowed values: mapped, unmapped. |
limit | integer<int32> |
Responses
{
"rows": [
{
"cloudx_revenue": 12.34,
"partner_revenue": 12.34,
"revenue_delta": 12.34,
"revenue_delta_percent": 12.34,
"cloudx_ecpm": 12.34,
"partner_ecpm": 12.34,
"ecpm_delta": 12.34,
"ecpm_delta_percent": 12.34,
"cloudx_impressions": 12.34,
"partner_impressions": 12.34,
"impression_delta": 12.34,
"impression_delta_percent": 12.34,
"demand_source": "<string>",
"status": "comparable",
"provider_business_id": "<string>",
"provider_property_id": "<string>",
"partner_ad_unit_id": "<string>",
"partner_ad_unit_name": "<string>",
"provider_endpoint": "<string>",
"demand_type": "<string>",
"partner_ad_formats": [
"<string>"
],
"cloudx_ad_unit_ids": [
"<string>"
],
"excluded_partner_revenue": 12.34,
"excluded_partner_impressions": 12.34
}
],
"row_count": 123,
"limit": 123,
"truncated": true
}200Demand comparison ad units for the requested view.
| Field | Type | Description |
|---|---|---|
rowsrequired | array of object | |
row_countrequired | integer<int64> | |
limitrequired | integer<int64> | |
truncatedrequired | boolean |
400Invalid request parameters.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
401Unauthorized.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
403Forbidden.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
500Internal server error.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
504The query did not finish within the request time budget. Retry, narrowing the time range or filters where the operation accepts them.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
Demand Comparison ad-unit reference
This endpoint rolls up the full requested calendar-date window for one partner source. It does not expose day, country, platform, mediator, or raw partner-report rows. Its date and timezone rules match the Demand Comparison summary endpoint.
demand_source is required and accepts exactly one of digitalturbine, inmobi, liftoff, meta, or moloco. provider_business_id, provider_property_id, and cloudx_ad_unit_id are optional comma-separated filters. They accept live provider or CloudX identifiers, not closed enums. Provider IDs identify the partner account or property. CloudX IDs identify CloudX ad units.
view is mapped or unmapped, and defaults to mapped. mapped returns partner ad-unit aggregates with a current CloudX mapping. unmapped returns partner rows with no current CloudX mapping or ambiguous attribution. limit is 1 through 1000 and defaults to 1000. The response has no pagination cursor. Use filters when truncated is true.
The response contains rows, row_count, limit, and truncated. row_count is the number of rows returned, not the total available. limit is the applied maximum. truncated is true when more matching rows exist.
Every row has these CloudX metrics:
| Field | Meaning |
|---|---|
cloudx_revenue | CloudX-recognized revenue. |
cloudx_ecpm | cloudx_revenue * 1000 / cloudx_impressions, or 0 when impressions are zero. |
cloudx_impressions | CloudX impression count. |
The following partner and delta fields are numbers only when partner data is available for the row. An absent field means unavailable. It does not mean zero. Provider suppression can leave revenue unavailable even when report dates are covered. In the unmapped view, read excluded_partner_revenue and excluded_partner_impressions for excluded activity, not the mapped comparison metrics.
| Field | Meaning |
|---|---|
partner_revenue | Partner-reported revenue. |
revenue_delta | cloudx_revenue - partner_revenue. |
revenue_delta_percent | Revenue delta as a percentage of partner revenue. Absent when partner revenue is below 0.005. |
partner_ecpm | partner_revenue * 1000 / partner_impressions, or 0 when impressions are zero. Requires both partner metrics. |
ecpm_delta | cloudx_ecpm - partner_ecpm. |
ecpm_delta_percent | eCPM delta as a percentage of partner eCPM. Absent when partner eCPM is below 0.005. |
partner_impressions | Partner-reported impression count. |
impression_delta | cloudx_impressions - partner_impressions. |
impression_delta_percent | Impression delta as a percentage of partner impressions. Absent when partner impressions are below 1. |
| Field | Meaning |
|---|---|
demand_source | The selected supported demand-source enum value. |
status | comparable, not_connected, no_partner_data, unmapped_partner_data, stale_partner_data, or unmapped. unmapped applies to the unmapped view. |
provider_business_id | Dynamic provider business ID. |
provider_property_id | Dynamic provider property ID. |
partner_ad_unit_id | Dynamic partner ad-unit ID. |
partner_ad_unit_name | Partner ad-unit name. |
provider_endpoint | Mapping-derived endpoint string, or comma-and-space-separated endpoint strings. May be empty; not a closed API enum. |
demand_type | Mapping-derived demand classification string, or comma-and-space-separated classifications. May be empty; not a closed API enum. |
partner_ad_formats | Provider format strings, not a closed API enum. May be an empty array when the provider does not supply a format. |
cloudx_ad_unit_ids | Associated dynamic CloudX ad-unit IDs. |
excluded_partner_revenue | In the unmapped view, partner revenue excluded from mapped comparison. It may be absent. |
excluded_partner_impressions | In the unmapped view, partner impressions excluded from mapped comparison. It may be absent. |
CloudX applies cloudx_ad_unit_id after forming a partner-ad-unit aggregate. If any associated ID matches, the response keeps the aggregate’s full metrics and complete cloudx_ad_unit_ids list.
JSON example
{
"rows": [
{
"cloudx_revenue": 14.25,
"partner_revenue": 13.9,
"revenue_delta": 0.35,
"revenue_delta_percent": 2.5179856115107913,
"cloudx_ecpm": 11.875,
"partner_ecpm": 11.583333333333334,
"ecpm_delta": 0.2916666666666661,
"ecpm_delta_percent": 2.5179856115107864,
"cloudx_impressions": 1200,
"partner_impressions": 1200,
"impression_delta": 0,
"impression_delta_percent": 0,
"demand_source": "meta",
"status": "comparable",
"provider_business_id": "business-demo",
"provider_property_id": "property-demo",
"partner_ad_unit_id": "partner-unit-demo",
"partner_ad_unit_name": "Sample banner",
"provider_endpoint": "meta",
"demand_type": "standard",
"partner_ad_formats": [],
"cloudx_ad_unit_ids": ["ad-unit-home"]
}
],
"row_count": 1,
"limit": 1000,
"truncated": false
}