Create a campaign
Creates a campaign in the active Space. New campaigns start PAUSED and stay local until a sync pushes them to a platform, so creating one never spends money.
Required: name and budget (a daily amount in currency). Set businessId to link the campaign to a business, and _platformBudgets to choose which platforms it runs on; with no split it exports to every connected platform at the full budget.
adSchedule accepts a preset name or a structured weekly schedule (see CampaignAdScheduleField). For human-friendly schedule input use Set the ad schedule after creating.
The response is the stored campaign, including delivery and deliverySummary.
Errors
- 400 VALIDATION_ERROR: the body failed validation; details.issues[] names each field.
- 400 AD_SCHEDULE_TOO_MANY_WINDOWS: more than 84 schedule windows.
Request
- Base URL: https://api.growomat.com
- URL: https://api.growomat.com/api/v1/campaigns
- Auth: HTTP bearer
Headers
The Space to work in, for example spc_8f3aK2. Omit it to use your personal Space. List your Spaces returns the ids. A Space that does not exist returns 404 SPACE_NOT_FOUND; one you are not a member of returns 403 NOT_A_MEMBER.
Request body
Response
OK. The result is in data. List responses also carry meta with nextCursor and total.
Changes
No recorded changes to this operation across all 1 revision of this API.