Hanzo
OpenapiAd

Returns the caller org's ad campaigns, most recently updated first, optionally…

Returns the caller org's ad campaigns, most recently updated first, optionally narrowed to one lifecycle status.

GET /v1/ad/campaigns

Addresshttps://api.hanzo.ai/v1/ad/campaigns
MethodGET
Operationget_ad_campaigns
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller org's ad campaigns, most recently updated first, optionally narrowed to one lifecycle status. The listing is bounded by the org: another tenant's campaigns are not reachable from here at all.

Request

2 fields.

FieldInTypeRequiredDescription
statusquerystringStatus filters to one lifecycle state (draft, active, paused, completed).
limitqueryintegerLimit caps how many campaigns come back: default 200, maximum 1000.

Response

StatusBodyMeaning
200campaignListok

200 body — 12 fields.

FieldInTypeAlwaysDescription
databodyAdCampaign[]Data is the matching campaigns, newest-updated first.
data[].accountbodystringAccount is the provider ad-account the campaign runs under, in Meta's act_<id> form.
data[].budgetbodyintegerBudget is the campaign's authorized spend in MINOR units (cents). Negative clamps to 0.
data[].createdAtbodyintegerCreatedAt is when the campaign was first stored, in unix seconds.
data[].externalIdbodystringExternalID is the ad network's own campaign id, written by a successful launch and by nothing else — an update never touches it.
data[].idbodystringID is the campaign's server-minted handle, "camp_" + 32 hex.
data[].namebodystringName is the campaign's display label, and the name Meta creates the campaign object under at launch.
data[].objectivebodystringObjective is the campaign goal spelled as the provider names it ("conversions", "OUTCOME_TRAFFIC"), passed through to the network verbatim at launch — Meta…
data[].platformbodystringPlatform is the ad network: meta, google, tiktok or x, and nothing else — a write naming another is 400. Empty stores as meta.
data[].spendbodyintegerSpend is spend-to-date in MINOR units (cents), as last written through create or update. Negative clamps to 0.
data[].statusbodystringStatus is the lifecycle: draft, active, paused or completed, and nothing else — a write naming another is 400.
data[].updatedAtbodyintegerUpdatedAt is when the row was last written, in unix seconds — set by create, update and launch.

Failure carries the platform error shape — see Errors.

Examples

hanzo ads campaigns list

Ad API · All Hanzo APIs · Interactive reference

How is this guide?

On this page