AdlyseAdlyseMCP Docs
⌘K
Overview
adlyse-insights
list_ad_accountsget_dashboard_snapshotget_impact_analysislist_guidelinesget_guideline
adlyse-reports
list_report_templateslist_reportsget_reportgenerate_reportlist_report_targets
adlyse-ads
list_campaignsget_performancelist_adsget_ad_performancelist_change_eventsupdate_campaign_statusupdate_campaign_budget
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_status
  1. Overview/
  2. adlyse-insights

get_impact_analysis

Run Adlyse’s recent-impact analysis for one ad account: week-over-week metric shifts correlated with logged decisions and change events. This is the same computation that populates the dashboard’s “Recent Impact” card.

Parameters#

NameTypeRequiredDefaultDescription
ad_account_idstringyesAd account id
lookback_daysintegerno7Window size in days for current and prior period (clamped 1–90)

Returns#

json
{
  "ad_account_id": "ad_acct_abc123",
  "lookback_days": 7,
  "impact": {
    "summary": "Conversions up 12% week-over-week driven by Campaign Alpha",
    "conversion_delta_pct": 12.3,
    "cpa_delta_pct": -5.7,
    "top_campaign_gains": [ ],
    "top_campaign_drops": [ ],
    "correlated_events": [ ]
  },
  "as_of": "2026-04-22",
  "source": "adlyse.impact_analysis@v1"
}

The impact object shape depends on the data available. When there’s insufficient data, it returns { "summary": "Insufficient data for impact analysis" } rather than an error.

FieldDescription
impact.summaryShort natural-language headline
impact.conversion_delta_pctPercentage change in total conversions vs. the prior window
impact.cpa_delta_pctCPA change; negative = improvement
impact.top_campaign_gainsUp to 3 campaigns with the largest conversion lift
impact.top_campaign_dropsUp to 3 campaigns with the largest conversion drop
impact.correlated_eventsDecision-log entries and change events inside the window, attributed
as_ofThe date the analysis was run against (today)

Errors#

error_typeWhen
auth_errorMissing / invalid API key
not_foundAd account doesn’t belong to your org
computation_errorUnderlying service raised (e.g. missing metric table)

Example#

Request:

json
{
  "ad_account_id": "ad_acct_abc123",
  "lookback_days": 14
}

Response (excerpt):

json
{
  "ad_account_id": "ad_acct_abc123",
  "lookback_days": 14,
  "impact": {
    "summary": "Conversions up 8% over the last 14 days; CPA improved 6%",
    "conversion_delta_pct": 8.1,
    "cpa_delta_pct": -6.3
  },
  "as_of": "2026-04-22",
  "source": "adlyse.impact_analysis@v1"
}

See also#

  • get_dashboard_snapshot — the snapshot’s recent_impact field contains the same structure
←Previous
get_dashboard_snapshot
Next→
list_guidelines