Menu

API reference · Campaign Manager

Platform changes

campaign_manager · mutations · 4 operations

GET/v1/campaign-manager/mutations

List the ad platform mutations Campaign Manager can apply

campaign_manager.mutations.list

ReadIdempotentSince 2026-11-01

Returns the catalog of changes Campaign Manager can apply on Google Ads, Meta Ads, TikTok Ads and LinkedIn Ads (61 mutations: pause, resume, update budgets, bids, keywords, ads and targeting, attach audiences, archive, delete). Each item has its id (<platform>.<entity>.<operation>, the mutation value to apply), risk level (safe, money, structural, destructive), whether the platform can undo it, an English description, which operation runs it (campaign_manager.mutations.apply or apply_destructive), whether it needs entity_id or parent_id, and params_schema: the JSON Schema of params with its keys exactly as they must be sent (they keep the platform's names), with params_validated saying whether MB Suite checks it (true) or it documents the usual fields of an update (name, status, budget, bids, dates), of which MB Suite checks the money and status ones (400 invalid_params) while the platform validates the rest (false). Unavailable items say why: builder_only (campaigns are created only through the campaign builder in the app) or disabled. Reads no platform. Requires view access to Campaign Manager.

Scope
campaign_manager:read
Permission
View the module
MCP tool
campaign_manager_mutations_listOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.mutations.list".

Declared cost: up to 0 reads and 0 writes per call (they count against the daily quota).

Parameters

platformenumqueryoptional

Only the mutations of this platform.

Values: google_ads, meta_ads, tiktok_ads, linkedin_ads

risk_levelenumqueryoptional

Only the mutations with this risk level.

Values: safe, money, structural, destructive

Response

dataarray<object>

The mutations that match.

has_moreboolean

Always false: the list is complete.

Errors

Example

curl "https://api.mb-suite.com/v1/campaign-manager/mutations" \
  -H "Authorization: Bearer $MB_API_KEY"

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset.

curl "https://api.mb-suite.com/v1/campaign-manager/mutations" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/campaign-manager/mutations/apply

Apply a change on an ad platform

campaign_manager.mutations.apply

WriteSince 2026-11-01

Applies one non-destructive mutation from campaign_manager.mutations.list on Google Ads, Meta Ads, TikTok Ads or LinkedIn Ads: pause or resume a campaign, ad group, ad set, ad or keyword, update budgets, bids, schedules, ad copy or targeting, add keywords and negatives, attach or detach Meta audiences. It writes the real ad account right away (no undo in MB Suite; change it back with another mutation). Send mutation, account_id (a linked account from campaign_manager.accounts.list: any other id is 404 external_account_not_linked and no platform is called), entity_id and parent_id when the mutation needs them, and params with the keys of its params_schema. Archive and delete are 400 destructive_mutation (use campaign_manager.mutations.apply_destructive); an update whose status removes or archives is 400 use_destructive_mutation. Pass dry_run=true to validate everything without calling the platform. What MB Suite itself refuses before calling the platform comes with its own code, never as external_rejected: 400 for a request that is wrong (invalid_amount, invalid_date, invalid_status, budget_below_minimum, currency_mismatch, unsupported_field, a field that cannot be cleared…) and 409 when the account's state does not allow it now (currency_unavailable or timezone_unavailable: the account's currency or time zone could not be read, so no money or date was written; stale_value: the live budget or bid is no longer the one sent in expected, so nothing was written), with details.params_path naming the field when it is one in particular. When the platform keeps an amount differently from what was asked (Google Ads rounds to the currency's step), the answer says so in adjustments. What the platform rejects is 409 external_rejected with its message, details.provider_code and details.provider_message (with details.partial, details.applied and details.not_applied when the change needed two calls and only one landed); a platform that is limiting requests is 429 external_rate_limited and one that does not answer is 503 external_unavailable (retry after Retry-After), except for a create (a keyword or a negative keyword) the platform received without answering: 409 external_outcome_unknown, it may have been created, so check before repeating it; an expired or revoked connection is 409 integration_reconnect_required. Requires full access to Campaign Manager and that the acting user accepted Campaign Manager's responsibility notice in the app (403 disclaimer_required). With Google Ads, LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted (the permissions guide lists what each platform allows).

Needs confirmation: first dry_run: true (preview and confirm_token, valid 10 minutes and for one run), then the same body with confirm_token. In a few operations only with certain data: the description says when. Why and how: Dry run and confirm_token.

Scope
campaign_manager:write
Permission
Edit in the module
MCP tool
campaign_manager_mutations_applyOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.mutations.apply".

Declared cost: up to 1 reads and 1 writes per call (they count against the daily quota). Touches an external platform (google_ads): it counts against the external operations quota.

Parameters

mutationenumbodyrequired

Mutation id from campaign_manager.mutations.list: <platform>.<entity>.<operation>, e.g. google_ads.campaign.pause.

Values: google_ads.campaign.create, google_ads.campaign.update, google_ads.campaign.pause, google_ads.campaign.resume, google_ads.campaign.archive, google_ads.campaign.delete, google_ads.ad_group.update, google_ads.ad_group.pause, google_ads.ad_group.resume, google_ads.ad_group.archive, google_ads.ad_group.delete, google_ads.ad.update, google_ads.ad.pause, google_ads.ad.resume, google_ads.ad.delete, google_ads.keyword.update, google_ads.keyword.pause, google_ads.keyword.resume, google_ads.keyword.create, google_ads.keyword.delete, google_ads.negative_keyword.create, google_ads.negative_keyword.delete, meta_ads.campaign.create, meta_ads.campaign.update, meta_ads.campaign.pause, meta_ads.campaign.resume, meta_ads.campaign.archive, meta_ads.campaign.delete, meta_ads.ad_set.update, meta_ads.ad_set.pause

account_idstringbodyrequired

An ad account linked to the organization, as campaign_manager.accounts.list returns it (Google: customer id, Meta: act_…, TikTok: advertiser id, LinkedIn: account id).

entity_idstringbodyoptional

The entity the mutation acts on: campaign, ad group, ad set, ad or keyword criterion id (LinkedIn creatives also accept their URN). Required for every mutation except google_ads.keyword.create, google_ads.negative_keyword.create and meta_ads.custom_audience.attach/detach (those carry their ids in params).

parent_idstringbodyoptional

The parent entity when the mutation needs it: the ad group id for Google Ads ads and keywords, the ad set id for Meta custom audience attach/detach (or params.adSetId).

grandparent_idstringbodyoptional

Optional campaign id, kept for the audit trail only.

paramsobjectbodyoptional

The mutation's changes, with the keys of its params_schema exactly as campaign_manager.mutations.list publishes them (camelCase, e.g. "budgetAmount"; they are not converted). Empty object for pause, resume, archive and delete.

Default: {}

manager_idstringbodyoptional

Google Ads only, rarely needed: the manager account (MCC) to operate through. It must be the MCC stored for the account's connection (400 manager_id_mismatch otherwise, also when the connection stores none). Omit it and MB Suite operates through the organization's Google Ads credential.

account_currencystringbodyoptional

Optional ISO 4217 currency you believe the account has. MB Suite never uses it to convert or round money: it is only recorded in the audit entry. The currency that counts is the account's own: Google Ads and Meta re-read it from the platform before a money change, TikTok takes amounts in the advertiser's currency as they are, and LinkedIn takes the currencyCode inside each amount and rejects one that is not the account's.

expectedobjectbodyoptional

Optional optimistic check for an amount computed from a value read earlier. The budget updates of the four platforms (campaign, and ad set or ad group where the budget lives there) compare expected.budget with the live budget, and google_ads.keyword.update compares expected.cpc_bid_micros with the keyword's live bid: when it no longer matches, nothing is written and the answer is 409 stale_value. Other mutations ignore it.

entity_namestringbodyoptional

Optional entity name for the audit log and the change history.

diffobjectbodyoptional

Optional human-readable diff (old → new) stored with the audit entry. MB Suite does not verify it; the audit also records the keys that were actually sent in params and their money, status and date values.

metadataobjectbodyoptional

Optional audit context (up to 20 string, number or boolean values), e.g. { source: 'my-optimizer' }.

Response

successtrue

Always true: a failure is an error.

mutationstring

The mutation applied.

platformenum

Ad platform.

Values: google_ads, meta_ads, tiktok_ads, linkedin_ads

entitystring

What it acted on.

operationstring

The operation.

account_idstring

The ad account.

entity_idstring | null

The entity changed, or the one created (a new keyword; a keyword recreated by a match type change gets a new id).

applied_atnumber

When it was applied (epoch ms).

risk_levelenum

safe, money, structural or destructive.

Values: safe, money, structural, destructive

reversibleboolean

false: it cannot be undone on the platform.

adjustmentsarray<object>

Only when the platform keeps an amount differently from what was asked (Google Ads rounds to the currency's step): what was asked and what was applied, per field.

Errors

Example

curl -X POST "https://api.mb-suite.com/v1/campaign-manager/mutations/apply" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mutation": "google_ads.campaign.create",
  "account_id": "ACCOUNT_ID",
  "dry_run": true
}'

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset. In the practice organization this operation is not simulated (it reaches another platform): it answers 409 sandbox_external_unavailable.

POST/v1/campaign-manager/mutations/apply-destructive

Archive or delete on an ad platform

campaign_manager.mutations.apply_destructive

IrreversibleSince 2026-11-01

Applies one destructive mutation from campaign_manager.mutations.list (risk_level destructive): archive or delete a campaign, ad group or ad set, remove a Google Ads ad, keyword or negative keyword. Google Ads REMOVED is terminal; Meta, TikTok and LinkedIn archives can only be restored from the platform's own ads manager; MB Suite keeps no copy. Outside the app it always runs in two steps: call it with dry_run=true to get the preview and a confirm_token (10 minutes), then again with the same input and the confirm_token. Same input as campaign_manager.mutations.apply (mutation, linked account_id, entity_id, parent_id for Google ads and keywords, params). Only an owner or admin of the organization, with a credential that allows deletion (403 role_required / delete_not_allowed). A non-destructive mutation is 400 not_destructive. Platform rejections are 409 external_rejected (and, as in campaign_manager.mutations.apply, 429 external_rate_limited, 503 external_unavailable or 409 integration_reconnect_required). Requires full access to Campaign Manager and the accepted responsibility notice (403 disclaimer_required). With Google Ads, LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted (the permissions guide lists what each platform allows).

Needs confirmation: first dry_run: true (preview and confirm_token, valid 10 minutes and for one run), then the same body with confirm_token. In a few operations only with certain data: the description says when. Why and how: Dry run and confirm_token.

Scope
campaign_manager:write and “Allow deletions” (campaign_manager:delete in OAuth)
Permission
Edit in the module · Only owner, admin
MCP tool
campaign_manager_mutations_apply_destructiveOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.mutations.apply_destructive".

Declared cost: up to 1 reads and 1 writes per call (they count against the daily quota). Touches an external platform (google_ads): it counts against the external operations quota.

Parameters

mutationenumbodyrequired

Mutation id from campaign_manager.mutations.list: <platform>.<entity>.<operation>, e.g. google_ads.campaign.pause.

Values: google_ads.campaign.create, google_ads.campaign.update, google_ads.campaign.pause, google_ads.campaign.resume, google_ads.campaign.archive, google_ads.campaign.delete, google_ads.ad_group.update, google_ads.ad_group.pause, google_ads.ad_group.resume, google_ads.ad_group.archive, google_ads.ad_group.delete, google_ads.ad.update, google_ads.ad.pause, google_ads.ad.resume, google_ads.ad.delete, google_ads.keyword.update, google_ads.keyword.pause, google_ads.keyword.resume, google_ads.keyword.create, google_ads.keyword.delete, google_ads.negative_keyword.create, google_ads.negative_keyword.delete, meta_ads.campaign.create, meta_ads.campaign.update, meta_ads.campaign.pause, meta_ads.campaign.resume, meta_ads.campaign.archive, meta_ads.campaign.delete, meta_ads.ad_set.update, meta_ads.ad_set.pause

account_idstringbodyrequired

An ad account linked to the organization, as campaign_manager.accounts.list returns it (Google: customer id, Meta: act_…, TikTok: advertiser id, LinkedIn: account id).

entity_idstringbodyoptional

The entity the mutation acts on: campaign, ad group, ad set, ad or keyword criterion id (LinkedIn creatives also accept their URN). Required for every mutation except google_ads.keyword.create, google_ads.negative_keyword.create and meta_ads.custom_audience.attach/detach (those carry their ids in params).

parent_idstringbodyoptional

The parent entity when the mutation needs it: the ad group id for Google Ads ads and keywords, the ad set id for Meta custom audience attach/detach (or params.adSetId).

grandparent_idstringbodyoptional

Optional campaign id, kept for the audit trail only.

paramsobjectbodyoptional

The mutation's changes, with the keys of its params_schema exactly as campaign_manager.mutations.list publishes them (camelCase, e.g. "budgetAmount"; they are not converted). Empty object for pause, resume, archive and delete.

Default: {}

manager_idstringbodyoptional

Google Ads only, rarely needed: the manager account (MCC) to operate through. It must be the MCC stored for the account's connection (400 manager_id_mismatch otherwise, also when the connection stores none). Omit it and MB Suite operates through the organization's Google Ads credential.

account_currencystringbodyoptional

Optional ISO 4217 currency you believe the account has. MB Suite never uses it to convert or round money: it is only recorded in the audit entry. The currency that counts is the account's own: Google Ads and Meta re-read it from the platform before a money change, TikTok takes amounts in the advertiser's currency as they are, and LinkedIn takes the currencyCode inside each amount and rejects one that is not the account's.

expectedobjectbodyoptional

Optional optimistic check for an amount computed from a value read earlier. The budget updates of the four platforms (campaign, and ad set or ad group where the budget lives there) compare expected.budget with the live budget, and google_ads.keyword.update compares expected.cpc_bid_micros with the keyword's live bid: when it no longer matches, nothing is written and the answer is 409 stale_value. Other mutations ignore it.

entity_namestringbodyoptional

Optional entity name for the audit log and the change history.

diffobjectbodyoptional

Optional human-readable diff (old → new) stored with the audit entry. MB Suite does not verify it; the audit also records the keys that were actually sent in params and their money, status and date values.

metadataobjectbodyoptional

Optional audit context (up to 20 string, number or boolean values), e.g. { source: 'my-optimizer' }.

Response

successtrue

Always true: a failure is an error.

mutationstring

The mutation applied.

platformenum

Ad platform.

Values: google_ads, meta_ads, tiktok_ads, linkedin_ads

entitystring

What it acted on.

operationstring

The operation.

account_idstring

The ad account.

entity_idstring | null

The entity changed, or the one created (a new keyword; a keyword recreated by a match type change gets a new id).

applied_atnumber

When it was applied (epoch ms).

risk_levelenum

safe, money, structural or destructive.

Values: safe, money, structural, destructive

reversibleboolean

false: it cannot be undone on the platform.

adjustmentsarray<object>

Only when the platform keeps an amount differently from what was asked (Google Ads rounds to the currency's step): what was asked and what was applied, per field.

Errors

Example

curl -X POST "https://api.mb-suite.com/v1/campaign-manager/mutations/apply-destructive" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mutation": "google_ads.campaign.create",
  "account_id": "ACCOUNT_ID",
  "dry_run": true
}'

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset. In the practice organization this operation is not simulated (it reaches another platform): it answers 409 sandbox_external_unavailable.

POST/v1/campaign-manager/mutations/bulk/apply

Apply up to 100 changes on the ad platforms

campaign_manager.mutations.bulk_apply

WriteBulk · up to 100Since 2026-11-01

Applies 1 to 100 mutations from campaign_manager.mutations.list, one after the other in the given order (the platforms' rate limits): bulk pause or resume, budget or bid adjustments, keyword and negative additions, removals. Each item has the same fields as campaign_manager.mutations.apply. Before anything runs, every item is checked: the mutation exists and is available, its account_id is linked to the organization, it has the ids it needs; any problem rejects the whole batch with the item's index in param (e.g. mutations.3.account_id) and nothing is applied. Then each item succeeds or fails on its own and results[i] says so (success, entity_id, error, code such as invalid_params, role_required, ad_entity_not_found, external_rejected, external_rate_limited, external_unavailable, external_outcome_unknown or integration_reconnect_required, and platform_error_code: the platform's own code). Outside the app it always runs in two steps: dry_run=true returns the preview (counts, warnings for invalid params and destructive items) and a confirm_token. Archive and delete items need an owner or admin and a credential that allows deletion. Requires full access to Campaign Manager and the accepted responsibility notice. With Google Ads, LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted, and their records are left out of the response (the permissions guide lists what each platform allows).

Needs confirmation: first dry_run: true (preview and confirm_token, valid 10 minutes and for one run), then the same body with confirm_token. In a few operations only with certain data: the description says when. Why and how: Dry run and confirm_token.

Scope
campaign_manager:write
Permission
Edit in the module
MCP tool
campaign_manager_mutations_bulk_applyOn the full surface; on the compact one, mb_execute_operation with id: "campaign_manager.mutations.bulk_apply".

Declared cost: up to 1 reads and 100 writes per call (they count against the daily quota). Touches an external platform (google_ads): it counts against the external operations quota.

Parameters

mutationsarray<object>bodyrequired

1 to 100 mutations, applied one after the other in this order.

Response

resultsarray<object>

One per item, in the order sent.

success_countnumber

Items applied.

failure_countnumber

Items that failed.

total_countnumber

Items sent.

Errors

Example

curl -X POST "https://api.mb-suite.com/v1/campaign-manager/mutations/bulk/apply" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "mutations": [],
  "dry_run": true
}'

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset. In the practice organization this operation is not simulated (it reaches another platform): it answers 409 sandbox_external_unavailable.