Create a Meta campaign in the store's ad account, PAUSED and read back; nothing spends until it is resumed (ads_resume).
Changed onCreate a Meta campaign in the store's ad account, PAUSED and read back; nothing spends until it is resumed (ads_resume). channel_type "catalog_sales": Advantage+ catalogue ads over the in-stock products, optimised for purchases (needs a Page, a pixel and a Meta catalogue). channel_type "traffic": one link ad to final_url (headlines[0] is the headline, descriptions[0] the primary text, [1] the link description; needs a Page). daily_budget is in the ad account's currency and is the campaign's cap. Refused before any write when the ad account is not active (closed, disabled, unsettled) or a piece is missing, with what to fix. A card a person approves.
Request
- Base URLhttps://app.magistry.io
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://app.magistry.io/api/oauth/authorizeToken URLhttps://app.magistry.io/api/oauth/tokenScopesads:write
Headers
Required, here or as idempotency_key in the body. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.
Request body
Campaign daily budget, ad account currency.
ISO 3166 alpha-2.
Landing page (traffic: required; catalog_sales: optional, the store by default).
traffic: headlines[0] → ad headline.
descriptions[0] → primary text, [1] → link description.
traffic: the ad image; the landing page's own image by default.
Required. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.
Response
Tool result
Changes
- warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status
11 more changes in this revision
- warning