GET List ad performance by stakeholder role

Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.

GET /api/v1/public/campaigns/ads/stakeholder-role-performance — List ad performance by stakeholder role

Read-only operation

Aggregate Individual Targeting ad evidence by stakeholder role. sampleStakeholders is a bounded sample, not a complete roster. Follow stakeholder IDs with get_stakeholder and use campaign/ad IDs with their platform for creative details.

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

accountIds (query, string[], optional)

JSON-encoded query value.

  • Minimum items: 1
  • Maximum items: 100
  • Send one JSON-encoded query value
accountIds query schema
{
  "type": "array",
  "items": {
    "type": "string"
  },
  "minItems": 1,
  "maxItems": 100
}
roles (query, string[], optional)

JSON-encoded query value.

  • Maximum items: 100
  • Send one JSON-encoded query value
roles query schema
{
  "type": "array",
  "items": {
    "type": "string",
    "minLength": 1
  },
  "maxItems": 100
}
campaignAdIds (query, string[], optional)

JSON-encoded query value.

  • Minimum items: 1
  • Maximum items: 100
  • Send one JSON-encoded query value
campaignAdIds query schema
{
  "type": "array",
  "items": {
    "type": "string"
  },
  "minItems": 1,
  "maxItems": 100
}
take (query, integer, optional)

query parameter

  • Minimum: 1
  • Maximum: 50
include (query, (campaignAd | sampleStakeholders)[], optional)

JSON-encoded query value.

  • Maximum items: 10
  • Send one JSON-encoded query value
include query schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "campaignAd",
      "sampleStakeholders"
    ]
  },
  "maxItems": 10
}
JSON response schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaignAdId": {
            "type": "string",
            "description": "Campaign-ad id for direct ad follow-up."
          },
          "adTitle": {
            "type": "string",
            "description": "Ad title for this stakeholder-role performance row."
          },
          "campaignTitle": {
            "type": "string",
            "description": "Parent campaign title for this ad row."
          },
          "stakeholderRole": {
            "type": "string",
            "description": "Grouped stakeholder role label used for this ad-performance slice."
          },
          "clicks": {
            "type": "number",
            "description": "Stakeholder-attributed clicks for this ad and stakeholder-role slice."
          },
          "impressions": {
            "type": "number",
            "description": "Stakeholder-attributed impressions for this ad and stakeholder-role slice."
          },
          "stakeholderCount": {
            "type": "number",
            "description": "Distinct stakeholders represented in this ad and role slice."
          },
          "campaignAd": {
            "type": "object",
            "properties": {
              "campaignId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {}
                ],
                "description": "Parent campaign id for this ad row."
              },
              "campaignName": {
                "type": "string",
                "description": "Parent campaign name for this ad row."
              },
              "campaignStatus": {
                "type": "string",
                "description": "Parent campaign status for this ad row."
              },
              "platform": {
                "type": "string",
                "description": "Media platform for this campaign-ad row."
              },
              "ad": {
                "type": "object",
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {}
                    ],
                    "description": "Ad/creative id."
                  },
                  "campaignId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {}
                    ],
                    "description": "Owning campaign id for cross-campaign inventory rows."
                  },
                  "campaignName": {
                    "type": "string",
                    "description": "Owning campaign name for cross-campaign inventory rows."
                  },
                  "name": {
                    "type": "string",
                    "description": "Ad/creative internal name."
                  },
                  "title": {
                    "type": "string",
                    "description": "Ad/creative title shown in reporting."
                  },
                  "commentary": {
                    "type": "string",
                    "description": "Ad commentary or copy when captured."
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "PAUSED",
                      "COMPLETED",
                      "ARCHIVED",
                      "CANCELED",
                      "DRAFT",
                      "PENDING_DELETION",
                      "REMOVED"
                    ],
                    "description": "Ad/creative status when available."
                  },
                  "link": {
                    "type": "string",
                    "description": "Ad destination URL."
                  },
                  "thumbnailUrl": {
                    "type": "string",
                    "description": "Best available provider image or video-cover URL for list/detail presentation. LinkedIn image URNs are resolved through the Images API; signed URLs may expire."
                  },
                  "videoUrl": {
                    "type": "string",
                    "description": "Playable provider video URL, not a cover image; it may expire or be unavailable."
                  },
                  "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": "Ad-level media metrics for this creative."
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false,
                "description": "Compact ad/creative preview and ad-level media metrics."
              }
            },
            "required": [
              "campaignId",
              "campaignName",
              "platform",
              "ad"
            ],
            "additionalProperties": false,
            "description": "Compact campaign/ad expansion, present only when requested in include."
          },
          "sampleStakeholders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "accountId": {
                  "type": "string"
                },
                "firstName": {
                  "type": "string"
                },
                "lastName": {
                  "type": "string"
                },
                "position": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "linkedIn": {
                  "type": "string"
                },
                "adClicks": {
                  "type": "number"
                },
                "adImpressions": {
                  "type": "number"
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            },
            "description": "Small stakeholder sample for this ad and role slice. Use for examples, not exhaustive counting."
          },
          "sampleSummary": {
            "type": "object",
            "properties": {
              "sampleStakeholderLimit": {
                "type": "integer",
                "description": "Maximum stakeholder sample rows returned for this slice."
              },
              "hasMoreStakeholders": {
                "type": "boolean",
                "description": "Whether more stakeholders exist beyond the returned sample."
              }
            },
            "required": [
              "sampleStakeholderLimit",
              "hasMoreStakeholders"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "campaignAdId",
          "stakeholderRole",
          "clicks",
          "impressions",
          "stakeholderCount"
        ],
        "additionalProperties": false,
        "description": "Stakeholder-role grouped ad-performance row. Use for role slices, not overall campaign/ad reports."
      },
      "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 ad performance by stakeholder role

curl "https://server-url-from-token-page.endpoint/api/v1/public/campaigns/ads/stakeholder-role-performance" \
  -H "Authorization: Bearer $DOE_API_TOKEN" \
  -H "Accept: application/json"
Response example
No response example is supplied. See the JSON response schema.