report/demand-comparison/ad-units

Field and value reference · Markdown

GET/report/demand-comparison/ad-units

Request

cURL
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

NameTypeDescription
start_timerequiredinteger<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_timerequiredinteger<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.
timezonestringIANA timezone used to convert start_time and end_time to calendar dates. Defaults to UTC.
demand_sourcerequiredstringRequired demand source. Provide exactly one supported value, for example demand_source=meta. Allowed values: digitalturbine, inmobi, liftoff, meta, moloco.
provider_business_idstringOptional provider-business filter. Use a comma-separated list for multiple values.
provider_property_idstringOptional provider-property filter. Use a comma-separated list for multiple values.
cloudx_ad_unit_idstringOptional CloudX ad-unit filter. Use a comma-separated list for multiple values.
viewstringSelect mapped comparison rows or partner rows that have no current CloudX mapping. Allowed values: mapped, unmapped.
limitinteger<int32>

Responses

Demand comparison ad units for the requested view.
{
  "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.

FieldTypeDescription
rowsrequiredarray of object
row_countrequiredinteger<int64>
limitrequiredinteger<int64>
truncatedrequiredboolean

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

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:

FieldMeaning
cloudx_revenueCloudX-recognized revenue.
cloudx_ecpmcloudx_revenue * 1000 / cloudx_impressions, or 0 when impressions are zero.
cloudx_impressionsCloudX 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.

FieldMeaning
partner_revenuePartner-reported revenue.
revenue_deltacloudx_revenue - partner_revenue.
revenue_delta_percentRevenue delta as a percentage of partner revenue. Absent when partner revenue is below 0.005.
partner_ecpmpartner_revenue * 1000 / partner_impressions, or 0 when impressions are zero. Requires both partner metrics.
ecpm_deltacloudx_ecpm - partner_ecpm.
ecpm_delta_percenteCPM delta as a percentage of partner eCPM. Absent when partner eCPM is below 0.005.
partner_impressionsPartner-reported impression count.
impression_deltacloudx_impressions - partner_impressions.
impression_delta_percentImpression delta as a percentage of partner impressions. Absent when partner impressions are below 1.
FieldMeaning
demand_sourceThe selected supported demand-source enum value.
statuscomparable, not_connected, no_partner_data, unmapped_partner_data, stale_partner_data, or unmapped. unmapped applies to the unmapped view.
provider_business_idDynamic provider business ID.
provider_property_idDynamic provider property ID.
partner_ad_unit_idDynamic partner ad-unit ID.
partner_ad_unit_namePartner ad-unit name.
provider_endpointMapping-derived endpoint string, or comma-and-space-separated endpoint strings. May be empty; not a closed API enum.
demand_typeMapping-derived demand classification string, or comma-and-space-separated classifications. May be empty; not a closed API enum.
partner_ad_formatsProvider format strings, not a closed API enum. May be an empty array when the provider does not supply a format.
cloudx_ad_unit_idsAssociated dynamic CloudX ad-unit IDs.
excluded_partner_revenueIn the unmapped view, partner revenue excluded from mapped comparison. It may be absent.
excluded_partner_impressionsIn 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
}