recomentionDocs
API reference

Create a paused Google Search campaign

Creates the drafted campaign PAUSED in the owner's own Google Ads account. Needs confirm: true, the draft's unchanged form and approvalHash, and an Idempotency-Key: a retry with the same key returns the same campaign (reused: true), however much later; the same key with a different campaign is a 409. Commits the full lifetime cap to the month's budget; it comes back only if Google definitively rejects the create. Nothing serves until a separate enable. Early access — owner-only until Google verifies campaign management. Google Search only. Needs an API key whose owner allowed it to run ad campaigns (Account → Developers; otherwise 403 KEY_NOT_ALLOWED). The server's ad switches, campaign and monthly caps, the owner's enabled monthly budget and, until Google verifies the app, the owner allowlist all apply; a refusal says which. 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

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (rmk_…).

Path Parameters

id*string

Header Parameters

Idempotency-Key*string
Match^[A-Za-z0-9_-]{16,128}$

Request Body

application/json
  1. body
form*
approvalHash*string
Match^[a-f0-9]{64}$
confirm*boolean

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' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "form": {    "connectionId": "string",    "draftId": "string",    "draftVersion": 1,    "name": "string",    "headlines": [      "string",      "string",      "string"    ],    "descriptions": [      "string",      "string"    ],    "finalUrl": "http://example.com",    "keywords": [      {        "text": "string",        "matchType": "EXACT"      }    ],    "geoTargetIds": [      "string"    ],    "firstDay": "string",    "lastDay": "string",    "lifetimeCap": "string",    "maxCpc": "string",    "nonPolitical": true  },  "approvalHash": "string",  "confirm": true}'
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}