Skip to main content
POST
read ad results

Authorizations

Authorization
string
header
required

An API key (es_live_…) from Settings, under API keys, or an OAuth access token.

Headers

Idempotency-Key
string

Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.

x-workspace-id
string

The workspace this one call acts in, when it is not the default: for a key or a connected agent, one of the workspaces the user allowed it.

Body

application/json
action
enum<string>
required
Available options:
measures,
fields,
tree,
ranked,
timeline,
ad,
campaign,
insights,
start_report,
report,
studies,
smart_plus_creatives,
smart_plus_reviews,
ad_library
account_id
string

An ad account connection from manage_social_accounts list, for each action that reaches an ad account.

ad_account_id
string

An ad account on that connection, from manage_ads ad_accounts.

id
string

What the action is about: the campaign, ad set, ad, audience, creative, form or other thing, by its id.

sub_id
string

A second id where a thing is inside another: a comment on an ad, a product in a catalog.

fields
object

The action's values, by the names the fields action lists.

of
string

fields: the action to describe. Left out, every action with a line on what it does.

field
string

fields: read inside one field, by its path, such as targeting or placements.

match
string

fields: only fields whose name or text has these letters.

Response

Done, or a job started for work that runs longer (follow it with get_jobs).

ok
any
required
data
object
required
meta
object
required
media
object[]