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-ads

list_campaigns

List distinct campaigns for an ad account. Reads from Adlyse’s platform-normalized data table, so the response shape is identical across Google / Meta / TikTok.

Parameters#

NameTypeRequiredDefaultDescription
ad_account_idstringyesAd account id
statusstring?nonullFilter by status: enabled, paused, or removed
limitintegerno100Max campaigns to return; clamped to 500
offsetintegerno0Pagination offset

Returns#

json
{
  "campaigns": [
    {
      "campaign_id": "1234567890",
      "campaign_name": "Brand Search - US",
      "platform": "google_ads",
      "campaign_status": "enabled",
      "campaign_type": "SEARCH"
    }
  ],
  "count": 1,
  "total": 4,
  "offset": 0,
  "limit": 100,
  "has_more": false,
  "source": "adlyse.ads_campaigns@v1"
}
FieldDescription
campaigns[].campaign_idPlatform’s native campaign id; use for all other tools in this server
campaigns[].platformgoogle_ads, meta_ads, or tiktok_ads
campaigns[].campaign_statusenabled, paused, or removed
totalDistinct campaigns matching filters

Errors#

error_typeWhen
auth_errorMissing / invalid API key
not_foundAd account doesn’t belong to your org

Empty response#

If the account has never been synced, the response has total: 0 and includes a note field explaining that campaign metrics haven’t been synced yet. This is not an error.

Example#

Request:

json
{ "ad_account_id": "ad_acct_abc", "status": "enabled", "limit": 20 }

Response:

json
{
  "campaigns": [
    { "campaign_id": "c1", "campaign_name": "Brand Search - US", "platform": "google_ads", "campaign_status": "enabled" },
    { "campaign_id": "c2", "campaign_name": "Retargeting - Core", "platform": "meta_ads", "campaign_status": "enabled" }
  ],
  "count": 2,
  "total": 2,
  "has_more": false,
  "source": "adlyse.ads_campaigns@v1"
}

See also#

  • get_performance — aggregated metrics across a date range
  • list_ads — drill down from campaigns to ads
  • update_campaign_status — pause / resume
←Previous
adlyse-ads
Next→
get_performance