read
analytics

Returns ad performance data aggregated over a time window. Includes totals (revenue, ad spend, ROAS as shop revenue over

Changed on

Returns ad performance data aggregated over a time window. Includes totals (revenue, ad spend, ROAS as shop revenue over ad spend and null without spend, conversion rate, sessions), where store-wide ad spend is the whole ad bill (every platform and campaign, shop currency); when totals.spend_withheld is true some spend has no amount or the bill has not reported the window: ROAS is null and totals.spend_note says why. Product ROAS and a product_id scope use the product report. top 5 performing products, up to 5 underperformers, and a daily trend array. Optionally filter to a single product by product_id.

post/api/v1/tools/query_performance

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
      Scopesanalytics:read

Request body

object required
window_days, integer

Number of days to look back (default 7, max 90).

product_id, string

Optional UUID to scope results to a single product.

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