recomentionDocs
API reference

Pause a campaign

Pauses a campaign in its ad account (Google, or an existing Meta campaign). Always allowed, even when launching is switched off; no confirmation and no key permission needed. No cap is released. Served by the web app, which holds the ad connections: call `https://www.recomention.com/api/v1` + this path with the same key (the npm MCP server and the CLI do). Here it answers 409 with code feature_disabled and that path.

POST
/v1/projects/{id}/ads/campaigns/{campaignId}/pause

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (rmk_…).

Path Parameters

id*string
campaignId*string

Response Body

The paused campaign.

application/json
  1. response
campaign*
reused*boolean
Example Request
curl -X POST 'https://api.recomention.com/v1/projects/string/ads/campaigns/string/pause'
Example Response
{  "campaign": {    "id": "string",    "provider": "string",    "state": "string",    "revision": 0,    "month": "string",    "lifetimeCap": "string",    "startAt": "string",    "endAt": "string",    "scheduleTimeZone": "string",    "draftId": "string",    "draftVersion": 0,    "accountId": "string",    "confirmed": true,    "receipt": {      "property1": "string",      "property2": "string"    },    "errorCode": "string",    "createdAt": "string"  },  "reused": true}