Query Metrics Related to Campaigns
Last updated 3 months ago
Fetch Campaign Metrics
The ID of the workspace
List of campaign metrics
const response = await fetch('/workspaces/{workspaceId}/reporting/campaigns/metrics?periodStart=2024-11-02T15%3A54%3A56.387Z', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "summary": { "campaignId": "123e4567-e89b-12d3-a456-426614174000", "campaignName": "text", "campaignStatus": "text", "attributedRevenue": 0, "currency": "text" }, "timeSeries": [ { "periodDate": "2024-11-02T15:54:56.387Z" } ] } ]