read
ads

Run a Meta Ads Insights query against the store's ad account. Pick a level (account/campaign/adset/ad), a date range (si

Changed on

Run a Meta Ads Insights query against the store's ad account. Pick a level (account/campaign/adset/ad), a date range (since+until ISO dates, or a date_preset like last_7d/last_30d), optional breakdowns (e.g. "publisher_platform", "age,gender", "country") and optional explicit fields. Returns raw insight rows incl. spend, impressions, clicks, ctr, cpm, frequency, reach and the purchase actions/action_values. Queries the Meta Marketing API Insights endpoint, see https://developers.facebook.com/docs/marketing-api/insights

post/api/v1/tools/meta_run_insights

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesads:read

Request body

object required
level, 'account' | 'campaign' | 'adset' | 'ad'

Aggregation level (default campaign).

since, string

ISO start date (with until).

until, string

ISO end date (with since).

date_preset, string

Meta date preset (default last_30d) when since/until absent.

time_increment, integer

1 for daily rows.

breakdowns, string

Comma-separated Meta breakdowns.

fields, string

Comma-separated insight fields (sane default).

limit, integer

Max rows (default 200).

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision