propose_write
ads

Create a Meta campaign in the store's ad account, PAUSED and read back; nothing spends until it is resumed (ads_resume).

Changed on

Create 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.

post/api/v1/tools/meta_create_campaign

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesads:write

Headers

Idempotency-Key, string

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

object required
campaign_name, string required
channel_type, 'catalog_sales' | 'traffic' required
daily_budget, number required

Campaign daily budget, ad account currency.

countries, string[] required

ISO 3166 alpha-2.

final_url, string

Landing page (traffic: required; catalog_sales: optional, the store by default).

headlines, string[]

traffic: headlines[0] → ad headline.

descriptions, string[]

descriptions[0] → primary text, [1] → link description.

image_url, string

traffic: the ad image; the landing page's own image by default.

idempotency_key, string required

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

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision