Get campaign reporting metrics series
GET
/reporting/campaigns/{id}/series
const url = 'https://portal.staging.arago-tech.com/reporting/campaigns/example/series?granularity=GRANULARITY_UNSPECIFIED';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://portal.staging.arago-tech.com/reporting/campaigns/example/series?granularity=GRANULARITY_UNSPECIFIED' \ --header 'Authorization: <Authorization>'Returns performance metrics series over time for a campaign
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
The unique identifier of the campaign in hexadecimal format
Query Parameters
Section titled “Query Parameters”granularity
required
string
Granularity
The granularity of the time buckets (hour or day)
date_range.from
string format: date-time
From Date
Filter items with date on or after this timestamp
date_range.to
string format: date-time
To Date
Filter items with date strictly before this timestamp. Must be after ‘from’ when both are provided.
key_performance_indicators
Array<string>
Key Performance Indicators
Optional key performance indicators that will be returned in the metrics series. When omitted, all key performance indicators are returned.
Responses
Section titled “ Responses ”A successful response.
Media typeapplication/json
object
points
Array<object>
object
timestamp
string format: date-time
impression
string format: uint64
click
string format: uint64
viewability_measurable
string format: uint64
viewable_mrc_50
string format: uint64
spend
number format: double
cost_per_mille
number format: double
viewable_cost_per_mille
number format: double
measurement_rate
number format: double
view_through_rate
number format: double
click_through_rate
number format: double
Examplegenerated
{ "points": [ { "timestamp": "2026-04-15T12:00:00Z", "impression": "example", "click": "example", "viewability_measurable": "example", "viewable_mrc_50": "example", "spend": 1, "cost_per_mille": 1, "viewable_cost_per_mille": 1, "measurement_rate": 1, "view_through_rate": 1, "click_through_rate": 1 } ]}Bad request
Media typeapplication/json
object
Example
{ "error": { "code": "BAD_REQUEST", "details": [ { "code": "MAX_ITEMS", "field": "line_items", "message": "value must contain no more than 3000 item(s)", "params": { "max": "3000" } } ], "message": "Bad request" }}Unauthorized
Media typeapplication/json
object
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Unauthorized" }}Internal server error
Media typeapplication/json
object
Example
{ "error": { "code": "INTERNAL_ERROR", "message": "Internal server error" }}default
Section titled “default”An unexpected error response.
Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
any
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}