Skip to content
AdlyseDocs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-ads
list_ad_accountsget_platform_supportget_ad_creation_capabilitiesget_ad_build_specupdate_ad_build_speclist_ad_plansget_ad_plan_publicationget_ad_planimport_ad_to_planimport_live_ad_to_plancreate_ad_plan_variantsadd_ad_plan_variantsupdate_ad_plan_groupgroup_ad_plansget_ad_plan_groupfreeze_ad_plan_grouppublish_ad_plan_groupcreate_ad_plancreate_ad_edit_planupdate_ad_planattach_ad_plan_assetfill_ad_plan_slotsfreeze_ad_planpublish_ad_planresolve_ad_publish_steplist_campaignsget_performancelist_change_eventslist_adsget_ad_performancelist_creative_librarylist_experimentsget_experimentpause_experimentresume_experimentstop_experimentpause_creative_adsupdate_ad_group_statusupdate_ad_statusupdate_campaign_statusupdate_campaign_budgetlist_swipe_filesave_competitor_ad_to_swipe_filesave_creative_to_swipe_fileremix_from_swipe_filestart_creative_jobresize_creativemake_variants_of_winnerget_creative_jobestimate_creative_batchstart_creative_batchbatch_to_plan_groupget_creative_batchsnapshot_catalog_productsgenerate_ad_copylist_ad_copycreate_creative_conceptrequest_creative_reviewget_creative_review
adlyse-workflows
adlyse-admin
adlyse-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
credentials_missingThe account’s OAuth link needs reconnecting
platform_errorThe platform API rejected the mutation
Previouspause_creative_adsNextupdate_ad_status