Hanzo
OpenapiAd

Rolls the caller org's ad campaigns up into four numbers: how many campaigns…

Rolls the caller org's ad campaigns up into four numbers: how many campaigns exist, how many are active, and the summed budget and spend across all of…

GET /v1/ad/summary

Addresshttps://api.hanzo.ai/v1/ad/summary
MethodGET
Operationget_ad_summary
AuthAuthorization: Bearer $HANZO_API_KEY

Rolls the caller org's ad campaigns up into four numbers: how many campaigns exist, how many are active, and the summed budget and spend across all of them. Budget and spend are MINOR units (cents), the same units the campaign rows carry. It counts only this org's campaigns.

Request

GET /v1/ad/summary takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200adSummaryok

200 body — 4 fields.

FieldInTypeAlwaysDescription
activebodyintegerActive is how many of those campaigns are in the active state.
budgetbodyintegerBudget is the summed budget of every campaign in the org, in cents.
campaignsbodyintegerCampaigns is how many campaigns the org has, in every state.
spendbodyintegerSpend is the summed spend of every campaign in the org, in cents.

Failure carries the platform error shape — see Errors.

Examples

hanzo ads summary

Ad API · All Hanzo APIs · Interactive reference

How is this guide?

On this page