propose_write
ads

Create a new Google Ads campaign (created PAUSED for safety; activate it with ads_set_campaign_status). For search/shopp

Changed on

Create a new Google Ads campaign (created PAUSED for safety; activate it with ads_set_campaign_status). For search/shopping, an ad group and a first RSA are created too (needs ad_group_name, ≥3 headlines, ≥2 descriptions, final_url). Must be in the store allowed_actions. Approval/auto-apply gated.

post/api/v1/tools/ads_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, 'search' | 'shopping' | 'display' | 'performance_max' | 'video' required
daily_budget, number required
bidding_strategy, string required

e.g. MAXIMIZE_CONVERSIONS, TARGET_ROAS, TARGET_CPA, MANUAL_CPC.

target_roas, number

Target ROAS (for TARGET_ROAS).

target_cpa, number

Target CPA (for TARGET_CPA).

start_date, string

ISO date (optional).

end_date, string

ISO date the campaign stops serving (optional), on or after start_date.

cpc_bid_ceiling, number

Highest click bid, for MAXIMIZE_CLICKS (optional).

geo_countries, string[]

Two-letter country codes to target, e.g. NL (optional).

languages, string[]

Two-letter language codes, e.g. nl (optional).

ad_group_name, string

Required for search/shopping.

ad_group_cpc_bid, number
headlines, string[]

≥3 for search/shopping RSA.

descriptions, string[]

≥2 for search/shopping RSA.

final_url, string

Landing page URL (required for RSA).

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