Create a campaign
Creates a campaign on the platform.
With budget, its ad groups share a campaign budget; without one, each has its own. Created paused unless status is on. Sending the same request again with the same Idempotency-Key answers the object the first one made; without one, or with anything changed in the body, a repeat makes another. The answer is the object as read back from the platform. When only reading it back fails, the change was made all the same: the answer then shows what was asked for, with the delivery reason not_read_back and, unless it is paused or removed, the delivery status unknown, until the next sync. Needs project:ads:manage and project:ads:read.
Guide: Ads reports
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | invalid_ad_request | For a request that breaks a rule, where message says what to change. |
| 400 | invalid_request | ad_platform_rejected | When the platform refuses it, with its own explanation in message. |
| 404 | not_found | ad_account_not_found | — |
| 409 | conflict | ad_write_outcome_unknown | When the platform did not answer, so it may or may not have been made: look at the account's campaigns before sending anything again. |
| 409 | conflict | ad_management_disabled | While managing ads through Voidhash is off for the account. |
| 409 | conflict | ad_account_reconnect_required | When the account's token no longer works or may not manage ads. |
| 503 | unavailable | ad_platform_unavailable | When the platform cannot be reached or limits requests, with Retry-After when it says for how long; nothing was changed then. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Ads
- List campaigns
GET - Retrieve a campaign
GET - Update a campaign
PATCH - Delete a campaign
DELETE - List ad groups
GET - Create an ad group
POST - Retrieve an ad group
GET - Update an ad group
PATCH - Delete an ad group
DELETE - List ads
GET - Create an ad
POST - Retrieve an ad
GET - Update an ad
PATCH - Delete an ad
DELETE - Duplicate a campaign
POST - Read a campaign again from the platform
POST - Archive a campaign
POST - Retrieve an ad group's targeting
GET - Duplicate an ad group
POST - Archive an ad group
POST - Duplicate an ad
POST - Archive an ad
POST - Preview a creative
GET - Retrieve ads settings
GET - Update ads settings
PATCH - Report ad performance
POST - Report creatives
POST - Report ad cohorts
POST - Report ad changes
POST
Something wrong or missing on this page? Tell us by email or on Discord.