Hanzo
OpenapiAd

Run one of your stored campaigns on its ad network

Creates the campaign on its platform under the CALLER ORG'S own connected ad account, records the provider campaign id, flips the stored campaign to…

POST /v1/ad/campaigns/{id}/launch

Addresshttps://api.hanzo.ai/v1/ad/campaigns/{id}/launch
MethodPOST
Operationpost_ad_campaigns_by_id_launch
AuthAuthorization: Bearer $HANZO_API_KEY

Creates the campaign on its platform under the CALLER ORG'S own connected ad account, records the provider campaign id, flips the stored campaign to active and answers the updated record. No ad-network token is held here: it is resolved from KMS through the org's connector at launch time, BEFORE any provider call, so an org that has not connected that platform gets 424 and no spend can ever start on a connection the org did not make. Meta is executed for real; a campaign on a platform whose provider is not wired yet answers 501 even when the connector is connected, and an edge failure at the platform is 502. The optional {account} body overrides the target ad account for this launch and is TOLERANT — a malformed or non-JSON body is ignored and the campaign launches on its stored account rather than being refused. A campaign id another org owns reads as not found.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo ads campaigns launch <id>

Ad API · All Hanzo APIs · Interactive reference

How is this guide?

On this page