Query Metrics Related to Campaigns
Last updated 4 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-21T08%3A46%3A44.777Z', { 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-21T08:46:44.777Z" } ] } ]