Skip to content
AdlyseMCP Docs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-reports
adlyse-ads
list_campaignsget_performancelist_adsget_ad_performancelist_change_eventsupdate_campaign_statusupdate_campaign_budget
adlyse-workflows
adlyse-adminadlyse-all
  1. Overview
  2. adlyse-ads

update_ad_status

Pause or resume a single ad on any platform with a write adapter (Google Ads, Meta Ads, Microsoft Ads, ChatGPT Ads). On apply, Adlyse writes a DecisionLogEntry automatically.

Parameters#

NameTypeRequiredDefaultDescription
ad_account_idstringyesThe ad account id
ad_idstringyesPlatform ad id (from list_ads)
statusstringyesenabled | paused
ad_group_idstringsometimesRequired for Google Ads and Microsoft Ads (both address ads through their ad group); ignored for Meta
previewbooleannofalseReturn the intended change without calling the platform

Returns#

json
{
  "ad_account_id": "ad_acct_abc123",
  "ad_id": "112233",
  "platform": "meta_ads",
  "preview": false,
  "diff": { "status": { "after": "paused" } },
  "applied": true,
  "decision_id": "dlog_abc123",
  "platform_response": { },
  "source": "adlyse.ads_writes@v1"
}

Errors#

error_typeWhen
auth_errorMissing / invalid API key
not_foundAd account doesn’t belong to your org
validation_errorBad status, or Google/Microsoft without ad_group_id
unsupported_for_platformPlatform has no write adapter (e.g. TikTok)
credentials_missingThe account’s OAuth link needs reconnecting
platform_errorThe platform API rejected the mutation