Tables
Parameterized view: session_attribution(since=‘YYYY-MM-DD’, until=‘YYYY-MM-DD’), inclusive UTC dates. Computes USD purchase, session, and equal-pageview attributed revenue across authorized sibling projects within that window, before domain filters. Cart/checkout views receive no attribution. Deduplicate sessionRevenueUsd by subject before summing. Inherits source row policies. Project scoped: yes.External metric views
Each connected integration below exposes parameterized views. Call them with namedsince and until dates (YYYY-MM-DD, inclusive). Views ending in _metrics_daily return date, metric, value, _metrics_totals return metric, current, previous, and _metrics_list return metric. The Google Analytics, Search Console and ROI report views also take settings JSON, Intelligems experience views take experience_id, and the Meta Ads views are described below the table. Credentials and project scope are injected server-side.
Meta Ads
The Meta Ads views takead_account_id (the act_… id, or the bare number Ads Manager shows), since, until and filter (a JSON array of Meta insights filters, each {"field", "operator", "value"} over campaign, ad set or ad id, name or effective_status, or '[]' for every row), and return one row per campaign (meta_ads_campaign_daily) or per ad (meta_ads_ad_daily) per day: date, account_id (always the act_… form), currency, campaign_id, campaign_name, spend, impressions, clicks, purchases and purchase_value. The ad view adds adset_id, adset_name, ad_id, ad_name and the ad’s destination: destination_url as written in the creative, destination_host (lowercase, without www.) and destination_path (no query string or trailing slash), null for ads built from an existing post. Dates are days in the ad account’s timezone, money is in its currency, and purchases are Meta’s omni_purchase, the figures in Ads Manager’s Purchases column. Recent days are cached for an hour because Meta keeps crediting conversions for about a week. Meta applies the filters before returning rows, so they are the way to read one landing page’s ads, or a few campaigns, from a large account quickly. Unfiltered, the ad view reads every delivering ad for every day, which can be too slow for a large account over a long range; the query then fails with a message saying so.