Ads
Campaign performance
Spend, clicks, CTR, CPC, platform-reported leads, CRM contacts and MQLs and cost per lead for every campaign, on any set of platforms, with totals per platform and an optional comparison with the previous period.
https://traceeai.com/api/v1/ads/campaignsCLI:tracee ads campaigns·MCP:adsaction campaigns
Authorizations
AuthorizationstringheaderrequiredBearer <key>: a personal key (tracee loginor Settings → Personal keys), a workspace key, or an MCP client's OAuth token. See Authentication.
Headers
Tracee-WorkspacestringFor a personal key or OAuth token that reaches several workspaces: the workspace id to act on. Workspace keys don't need it.
uuid
Query parameters
platformsstring[]The platforms
up to 6 items
Available options:
googlemetalinkedintiktokredditpinterestdaysintegerWindow ending today; 30 by default
1–731
fromstringStart date, YYYY-MM-DD (with to, instead of days)
pattern ^\d{4}-\d{2}-\d{2}$
tostringEnd date, YYYY-MM-DD
pattern ^\d{4}-\d{2}-\d{2}$
campaign_idsstring[]Only these. From GET /api/v1/ads/campaigns
up to 100 itemseach uuid
querystringPart of the campaign's name
up to 4,000 characters
statusstringThe status
Available options:
ActivePausedsortstringThe sort
Available options:
spendcrm_contactscrm_mqlscost_per_mqlcost_per_contactclickscomparebooleanAdd the previous period
include_idlebooleanAlso those with no spend or leads
limitintegerThe limit
1–200
Response
- 200Done.
The action's result, exactly as the MCP tool returns it to agents. A
nextfield, when present, names the endpoint that follows up.