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_group_status

Pause or resume an ad group (on Meta, the ad set). On apply, Adlyse writes a DecisionLogEntry automatically — like every write on this server — so get_impact_analysis can correlate later metric shifts with the change.

Parameters#

NameTypeRequiredDefaultDescription
ad_account_idstringyesThe ad account id
ad_group_idstringyesPlatform ad-group id (Google/Microsoft) or ad-set id (Meta)
statusstringyesenabled | paused
campaign_idstringfor MSRequired for Microsoft Ads (its API addresses ad groups via campaign)
previewbooleannofalseReturn the intended change without calling the platform

Unlike campaign writes, no before-state is included in the diff — ad-group status isn’t tracked in the synced metrics tables.

Returns#

json
{
  "ad_account_id": "ad_acct_abc123",
  "ad_group_id": "987654",
  "platform": "google_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 Microsoft without campaign_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