Skip to main content
POST
Read ad results

Authorizations

Authorization
string
header
required

An API key, starting ak_. Create one under Settings > MCP and API in Steerco.

Headers

X-Workspace-Id
string
required

The workspace id. GET /v1/workspaces lists yours.

Body

application/json
from
string<date>

First day, YYYY-MM-DD in UTC. With neither day named, the last 30 days, today included.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
to
string<date>

Last day, included. Defaults to today in the acting person's time zone, or UTC when they have none.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$

Part of a campaign's name. Only matching campaigns count, in the rows and the total.

Required string length: 1 - 200
activeOnly
boolean

true (the default) counts only campaigns running or about to run, as the page does. false counts paused and ended ones too.

limit
integer

Campaigns to return, most spend first. Default 25, at most 50.

Required range: 1 <= x <= 50

Response

The tool's result

status
enum<string>
required
Available options:
ok
result
any
cut
object

Present when the result was larger than about 25,000 tokens and Steerco cut it.