read
ads

The store's ad campaigns on every connected platform (Google, Microsoft, Pinterest, OpenAI, Reddit, …) with the numbers

Changed on

The store's ad campaigns on every connected platform (Google, Microsoft, Pinterest, OpenAI, Reddit, …) with the numbers the Ads page shows for the same window: status, daily budget, spend, revenue, conversions, clicks, impressions, CTR, CPA and ROAS, in the currency the page renders (currency). daily_budget_account in account_currency is the budget as the ad account holds it; a budget write names which of the two it uses. Status is the stored value (active, paused, unknown). Every result carries freshness per platform (as_of = the newest sync, stale past the platform threshold). A platform the store has not connected is refused with error: "not_connected" and whose it is — never an empty list. Paged: pass page.next_cursor back as cursor while page.has_more is true.

post/api/v1/tools/ads_list_campaigns

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
platform, 'google' | 'meta' | 'microsoft' | 'reddit' | 'tiktok' | 'pinterest' | 'openai' | 'applovin' | 'taboola' | 'criteo' | 'amazon' | 'bol' | 'outbrain' | 'snapchat' | 'linkedin' | 'x' | 'stackadapt'

One ad platform. Omitted: every platform this store has connected.

status, 'active' | 'paused' | 'unknown'
days, integer

Metrics window in days, default 30 (the Ads page default).

cursor, string

The page.next_cursor of the previous page.

limit, integer

Page size, default 25.

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