auto_write
creative

Adds an exported file to one of the store's ad campaigns as a draft ad creative. It reaches the ad account only once som

Changed on

Adds an exported file to one of the store's ad campaigns as a draft ad creative. It reaches the ad account only once someone approves it on the ads page. With platform instead of campaign_id it is kept ready for a campaign not made yet, and whoever approves it chooses the campaign. A Meta ad needs a headline. Asking again for the same file and campaign returns the draft that exists instead of a second one. When the policy or quality check stops the file and override_reason is given, the reply is a card for a person with the findings and the reason; only a person pressing it in the dashboard adds the creative, in their own name.

post/api/v1/tools/propose_design_ad

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
      Scopescreative:write

Headers

Idempotency-Key, string

Optional; honoured when sent. 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
render_id, string required

The export id of a finished file.

campaign_id, string

A campaign that takes this file.

platform, 'google' | 'meta'

Instead of campaign_id: the network whose campaign, still to be made, this file is kept ready for.

headline, string

The ad headline (required for Meta).

description, string

The text beside the headline.

override_reason, string

Why a person should send it anyway. Read only when the policy or quality check stops it: the reply is then a card for a person carrying the findings and this reason, which only a person can press.

idempotency_key, string

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