GET List campaign performance
Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.
GET /api/v1/public/campaigns/performance — List campaign performance
Read-only operation
Rank campaigns by direct campaign-level media metrics: clicks, impressions, CTR, unique CTR, reach, provider-supported average dwell time, and LinkedIn audience penetration. Audience penetration is the reached share of the target audience (0.25 means 25%) and is available only for LinkedIn campaign windows of 92 days or less. campaignSort uses campaign keys such as mediaMetrics.clicks, not report or stakeholder keys. Use only for campaign performance, not stakeholder attribution or company-wide/all-technique totals; account-level media summaries use aiReportAccounts AMPS. LinkedIn supports UTC dateRange (from inclusive, to exclusive), which overrides duration; omission defaults to LAST_3_MONTHS. Individual Targeting rows are cumulative and do not support dateRange. Metadata reports the effective provider range; runtime hydrates Ad Library links from grounded identities.
Use URL path and query parameters; no request body. Query arrays and objects are JSON-encoded where indicated. Workspace scope comes exclusively from the bearer credential. Available to read-only and read/write API credentials.
Parameters
platform(query, LINKEDIN | INDIVIDUAL_TARGETING, required)query parameter
duration(query, TODAY | YESTERDAY | THIS_WEEK | LAST_WEEK | THIS_MONTH | LAST_MONTH | LAST_7_DAYS | LAST_30_DAYS | LAST_3_MONTHS | ALL_TIME, optional)query parameter
dateRange(query, object, optional)JSON-encoded query value.
- Send one JSON-encoded query value
dateRange query schema
{ "type": "object", "properties": { "from": { "type": "string", "format": "date-time", "description": "Absolute ISO date or ISO datetime with explicit timezone/offset. In time windows, from is inclusive and to is exclusive. Do not pass relative terms like today or tomorrow." }, "to": { "type": "string", "format": "date-time", "description": "Absolute ISO date or ISO datetime with explicit timezone/offset. In time windows, from is inclusive and to is exclusive. Do not pass relative terms like today or tomorrow." } }, "required": [ "from" ], "additionalProperties": false, "description": "LinkedIn-only explicit UTC range for campaign performance. from is inclusive, to is exclusive, and dateRange takes precedence over duration." }from(query, string:date-time, required)Absolute ISO date or ISO datetime with explicit timezone/offset. In time windows, from is inclusive and to is exclusive. Do not pass relative terms like today or tomorrow.
to(query, string:date-time, optional)Absolute ISO date or ISO datetime with explicit timezone/offset. In time windows, from is inclusive and to is exclusive. Do not pass relative terms like today or tomorrow.
campaignStatus(query, (ACTIVE | PAUSED | COMPLETED | ARCHIVED | CANCELED | DRAFT | PENDING_DELETION | REMOVED)[], optional)JSON-encoded query value.
- Maximum items: 20
- Send one JSON-encoded query value
campaignStatus query schema
{ "type": "array", "items": { "type": "string", "enum": [ "ACTIVE", "PAUSED", "COMPLETED", "ARCHIVED", "CANCELED", "DRAFT", "PENDING_DELETION", "REMOVED" ] }, "maxItems": 20, "description": "Campaign status filter." }adStatus(query, (ACTIVE | PAUSED | COMPLETED | ARCHIVED | CANCELED | DRAFT | PENDING_DELETION | REMOVED)[], optional)JSON-encoded query value.
- Maximum items: 20
- Send one JSON-encoded query value
adStatus query schema
{ "type": "array", "items": { "type": "string", "enum": [ "ACTIVE", "PAUSED", "COMPLETED", "ARCHIVED", "CANCELED", "DRAFT", "PENDING_DELETION", "REMOVED" ] }, "maxItems": 20, "description": "Underlying ad status filter within the selected campaigns." }campaignIds(query, string[], optional)JSON-encoded query value.
- Minimum items: 1
- Maximum items: 50
- Send one JSON-encoded query value
campaignIds query schema
{ "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "maxItems": 50 }campaignSort(query, object, optional)JSON-encoded query value.
- Send one JSON-encoded query value
campaignSort query schema
{ "type": "object", "properties": { "key": { "type": "string", "enum": [ "name", "status", "type", "mediaMetrics.impressions", "mediaMetrics.clicks", "mediaMetrics.ctr", "mediaMetrics.uniqueCtr", "mediaMetrics.reach", "mediaMetrics.audiencePenetration", "mediaMetrics.averageDwellTime", "timestamps.createdAt", "timestamps.updatedAt", "timestamps.startedAt", "timestamps.syncedAt" ] }, "order": { "type": "number", "enum": [ 1, -1 ], "description": "Sort direction. Use -1 for descending and 1 for ascending." } }, "required": [ "key", "order" ], "additionalProperties": false, "description": "Campaign ranking override. Use campaign-level sort keys such as clicks/impressions, not ad-level metrics." }key(query, name | status | type | mediaMetrics.impressions | mediaMetrics.clicks | mediaMetrics.ctr | mediaMetrics.uniqueCtr | mediaMetrics.reach | mediaMetrics.audiencePenetration | mediaMetrics.averageDwellTime | timestamps.createdAt | timestamps.updatedAt | timestamps.startedAt | timestamps.syncedAt, required)See the JSON schema for this field’s contract.
order(query, 1 | -1, required)Sort direction. Use -1 for descending and 1 for ascending.
campaignTake(query, integer, optional)query parameter
- Minimum: 1
- Maximum: 50
adsTake(query, integer, optional)query parameter
- Minimum: 1
- Maximum: 200
JSON response schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"description": "Campaign id for direct campaign-performance follow-up."
},
"campaignName": {
"type": "string",
"description": "Campaign name for this direct campaign-performance row."
},
"campaignStatus": {
"type": "string",
"description": "Campaign status label for this direct campaign-performance row."
},
"platform": {
"type": "string",
"description": "Media platform for this campaign-performance row."
},
"type": {
"type": "string",
"description": "Provider campaign type or objective when the source platform returns it."
},
"adCount": {
"type": "number",
"description": "Number of ads counted under this campaign row."
},
"mediaMetrics": {
"type": "object",
"properties": {
"impressions": {
"type": "number",
"description": "Media impressions."
},
"clicks": {
"type": "number",
"description": "Media clicks."
},
"ctr": {
"type": "number",
"description": "Click-through rate in percentage points; 2.44 means 2.44%."
},
"uniqueCtr": {
"type": "number",
"description": "Unique click-through rate in percentage points when available."
},
"reach": {
"type": "number",
"description": "Unique reach."
},
"averageDwellTime": {
"type": "number",
"description": "LinkedIn average dwell time in seconds when available."
},
"audiencePenetration": {
"type": "number",
"description": "LinkedIn campaign reach divided by target audience; 0.25 means 25%. Available only for supported campaign windows of 92 days or less."
},
"visits": {
"type": "number",
"description": "Website visit count when the media source includes visits."
},
"pageViews": {
"type": "number",
"description": "Website page-view count when available."
},
"count": {
"type": "number",
"description": "Generic source count when returned by the underlying metric source."
},
"engaged": {
"type": "number",
"description": "Engaged entity count when returned by the metric source."
},
"reached": {
"type": "number",
"description": "Reached entity count when returned by the metric source."
}
},
"additionalProperties": false,
"description": "Campaign-level media metrics preserved from the platform-backed campaign row, including CTR, reach, and LinkedIn-only dwell or landing-page metrics when available."
},
"engagements": {
"type": "number",
"description": "Legacy engagement total when available from underlying ad rows."
}
},
"required": [
"campaignId",
"platform",
"adCount",
"mediaMetrics",
"engagements"
],
"additionalProperties": false,
"description": "Campaign-level performance row. Use ad resolvers for creative/ad breakdowns and keep platform cohorts separate when requested."
},
"description": "Returned rows for this response page. Use metadata counts/rollups for cohort totals; do not infer full-cohort averages from this array when pagination can apply."
},
"metadata": {
"type": "object",
"properties": {
"count": {
"type": "number"
},
"returnedRows": {
"type": "number",
"description": "Rows returned in this response when not already present in metadata.pagination.returnedRows."
},
"countSemantics": {
"type": "string",
"description": "Optional runtime clarification for metadata.count. Prefer schema descriptions when omitted."
},
"dateRange": {
"type": "object",
"properties": {
"from": {
"type": "string",
"format": "date-time"
},
"to": {
"type": "string",
"format": "date-time"
}
},
"additionalProperties": true,
"description": "Resolved date window applied to these rows. Named durations report the provider-effective inclusive end; explicit ranges echo the supplied exclusive to boundary."
},
"pagination": {
"type": "object",
"properties": {
"skip": {
"type": "number",
"description": "Pagination offset used for this response."
},
"take": {
"type": "number",
"description": "Requested or effective page size."
},
"returnedRows": {
"type": "number",
"description": "Rows returned in this response."
},
"totalRows": {
"type": "number",
"description": "Total matching rows before pagination when known."
},
"hasMore": {
"type": "boolean",
"description": "Whether additional matching rows may exist after this response."
}
},
"required": [
"skip",
"take",
"returnedRows",
"hasMore"
],
"additionalProperties": true,
"description": "Pagination or cap details for the returned rows."
},
"rollup": {
"type": "object",
"properties": {
"rowSet": {
"type": "string",
"description": "Rows represented by this rollup; read before using totals."
},
"totalCount": {
"type": "number",
"description": "Total rows represented by the rollup when available."
},
"accountCount": {
"type": "number",
"description": "Account rows represented by the rollup when available."
},
"primaryRowCount": {
"type": "number",
"description": "Primary entity rows represented by the rollup when available."
},
"metricTotals": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Metric totals across the rollup row set."
},
"metricAveragesPerPrimary": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Metric averages per primary row across the rollup row set."
},
"countSemantics": {
"type": "string",
"description": "Plain-language semantics for this rollup when runtime needs extra caution."
}
},
"required": [
"rowSet"
],
"additionalProperties": true,
"description": "Pre-pagination aggregate rollup. Use this for totals/averages instead of summing returned rows."
}
},
"additionalProperties": true,
"description": "Response metadata such as counts, resolved filters, date windows, or pagination semantics. Read this before making count/total claims."
}
},
"required": [
"data",
"metadata"
],
"additionalProperties": true
}Responses
200: Operation receipt or read result. Arrays are returned under items; scalar and null results under value.
RateLimit-Policy(header, value, optional)Response header
RateLimit-Limit(header, value, optional)Response header
RateLimit-Remaining(header, value, optional)Response header
RateLimit-Reset(header, value, optional)Response header
400: Invalid operation input or record identifiers.
400 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}401: Bearer credential is missing, expired or invalid.
401 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}402: Insufficient research credits. Add credits before retrying.
402 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}403: Write access or resource permission is required.
403 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}404: Record is not available in the credential workspace.
404 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}405: Use the documented HTTP method.
405 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}409: Revision conflict or a record has dependencies. Refetch and reconcile links before retrying.
409 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}413: Request exceeds the permitted JSON body size.
413 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}429: Rate limit exceeded. Observe Retry-After.
RateLimit-Policy(header, value, optional)Response header
RateLimit-Limit(header, value, optional)Response header
RateLimit-Remaining(header, value, optional)Response header
RateLimit-Reset(header, value, optional)Response header
429 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}500: Internal server error.
500 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}503: Service temporarily unavailable. Observe Retry-After when present.
503 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}504: Execution timed out. A write may have committed; check receipts or progress before retrying.
504 response schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"required": [
"message",
"code"
]
}List campaign performance
curl "https://server-url-from-token-page.endpoint/api/v1/public/campaigns/performance?platform=LINKEDIN" \
-H "Authorization: Bearer $DOE_API_TOKEN" \
-H "Accept: application/json"Response example
No response example is supplied. See the JSON response schema.