---
search:
  tags:
    - Campaigns
    - POST
seo:
  description: >-
    Available on: Meta. Reference for the POST
    /mutations/{advertiserId}/campaigns endpoint in the AdCrunch API.
sidebar:
  label: Create a campaign
  badge: POST
title: Create a campaign
type: openapi-operation
---
**Available on:** [![Meta](/providers/meta.svg)](https://docs.adcrunch.dev/connect/providers)

Creates a campaign. The body holds the fields of the new campaign.

It starts a Mutation of the kind `meta_create_campaign`, the same change that `POST /mutations` starts with that kind. The MCP tool of the same name makes the same change.

The change does **not** happen during this request. The answer is `202`, and `Location` names the Mutation. Poll `GET /mutations/{id}` until it reports `complete` or `errored`. A Mutation is durable, so the id stays valid across retries and restarts.

A refused request starts nothing. AdCrunch refuses a body that does not match, an advertiser that is not yours, an advertiser with no usable connection, an advertiser connected without write access, and a Line Item that is not yours before a Mutation exists. So a failed call leaves no row in the history.

**This operation checks the credential first and the body second.** A missing or unusable credential answers `401` even when the body is wrong as well.

A create and a copy never start delivery: the new object arrives **paused**. Send `PATCH …/status` with `ACTIVE` to start it.

`POST /mutations/{advertiserId}/campaigns`

**Request body** (`application/json`, required)

- `adsetBudgetSharing` (boolean) — Let the ad sets share their budgets. Only when both campaign budgets are omitted; false when omitted. Each ad set can then share up to 20 % of its daily budget with the other ad sets of the campaign. Sharing works with daily budgets only. It needs a bidStrategy, and it locks that bid strategy for the life of the campaign. Sharing cannot be turned on later.
- `bidStrategy` (string) — How Meta bids. LOWEST\_COST\_WITHOUT\_CAP ("Highest volume" in Ads Manager) gets the most results for the budget and takes no amount. LOWEST\_COST\_WITH\_BID\_CAP ("Bid cap") takes bidCap. COST\_CAP ("Cost per result goal") takes costCap. LOWEST\_COST\_WITH\_MIN\_ROAS ("ROAS goal") takes roasFloor, and needs the optimization goal VALUE. Give exactly the amount that the strategy takes, and no other amount. A higher bid cap, a higher cost cap or a lower ROAS floor can make an ad set spend its full budget, never more. On a campaign, give only the strategy. It applies when the campaign carries a budget, or when adsetBudgetSharing is true, which requires it. Give the amount of a bid cap, a cost cap or a ROAS goal on each ad set, with the same bidStrategy. Omit it to let Meta apply its default strategy.
- `campaignPlanName` (string) — The slug of the Campaign Plan of \`lineItemId\`. Send lineItemId and campaignPlanName together, or neither. With them, AdCrunch records the campaign against the Line Item when Meta creates it, and the call needs the campaign\_plan:write scope. The Line Item must belong to your organization, and its ad account, when it names one, must be this advertiser.
- `dailyBudget` (number) — The amount the campaign spends each day, shared across its ad sets. The amount is in whole units of the ad account currency: 10.5 is 10.50. Meta refuses more decimals than the currency has, and it counts some currencies, such as JPY and HUF, with none. Give one of the two budgets, or neither. When each ad set carries its own budget, for example one ad set for each Line Item, omit both budgets.
- `lifetimeBudget` (number) — The amount the campaign spends across its whole schedule, shared across its ad sets. The amount is in whole units of the ad account currency: 10.5 is 10.50. Meta refuses more decimals than the currency has, and it counts some currencies, such as JPY and HUF, with none. Give one of the two budgets, or neither. When each ad set carries its own budget, for example one ad set for each Line Item, omit both budgets.
- `lineItemId` (string) — The Line Item that the campaign builds, as line\_item\_list gives it. Send lineItemId and campaignPlanName together, or neither. With them, AdCrunch records the campaign against the Line Item when Meta creates it, and the call needs the campaign\_plan:write scope. The Line Item must belong to your organization, and its ad account, when it names one, must be this advertiser.
- `name` (string, required) — The campaign name. It is visible in Meta Ads Manager.
- `objective` (string, required) — The result the campaign optimizes for. It cannot be changed after the campaign is created, and it limits which optimization goals the ad sets below it can use.
- `specialAdCategories` (string[], required) — Declare a regulated category when the campaign advertises one: EMPLOYMENT, HOUSING, CREDIT, ISSUES\_ELECTIONS\_POLITICS, ONLINE\_GAMBLING\_AND\_GAMING, or FINANCIAL\_PRODUCTS\_SERVICES. Meta restricts targeting for each of them, and a wrong declaration breaks the advertiser policy agreement. Send an empty array or NONE when none applies. Do not guess: ask the advertiser.

Request body example:

```json
{
  "name": "Spring sale",
  "objective": "OUTCOME_SALES",
  "specialAdCategories": []
}
```

**Responses**

- `202` — The Mutation started, and it has not ended. The body is the answer of \`GET /mutations/{id}\`, with \`status\` of \`running\`. Poll the path in \`Location\` for the outcome.
- `400` — The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. \`error\` is \`invalid\_request\`, and \`issues\` names each field. Nothing was changed.
- `401` — No API key, or one that does not resolve. See the security scheme. \`error\` is \`unauthorized\`.
- `402` — The organization has no active subscription. An owner subscribes at \`paywallUrl\`. \`error\` is \`organization\_unentitled\`.
- `403` — The caller does not hold \`mutation:write\`, a create names a Line Item and the caller does not hold \`campaign\_plan:write\`, or the advertiser is connected without write access. In the last case \`error\` is \`missing\_write\_access\` and \`message\` says how to fix it. AdCrunch started nothing.
- `404` — The advertiser does not exist, it belongs to another organization, or it is not a Meta ad account. Or a create names a Line Item that is not in that Campaign Plan of your organization, or that is deleted, and \`message\` says so. \`error\` is \`not\_found\` in each case. An id that does not exist and an id of another organization get the same answer on purpose, so a caller cannot learn which ids exist. AdCrunch started nothing.
- `409` — The advertiser has no usable connection: a person removed it, it expired, or the provider refused it. A person must connect it again. \`error\` is \`provider\_not\_connected\`, the code that a live read of Observe sends for the same failure. AdCrunch started nothing.
- `422` — A Policy of your organization forbids the change: an Allowed countries Policy or a Budget ceiling. \`error\` is \`policy\_violation\`, and \`violations\` names each Policy that the change breaks, with its id, its kind, its scope and a message. AdCrunch started nothing.
- `503` — AdCrunch could not read the Policies of your organization, after it tried again. It cannot tell whether a Policy forbids the change, so it started nothing. \`error\` is \`policy\_unavailable\`. Try again later.

Response example, 202:

```json
{
  "mutationId": "mut_k3x9q2v7m4n8p1r5t6w0y2z4",
  "status": "running"
}
```
