propose_write
ads

Conversion actions and goals in Google Ads. create_action: a conversion action (a category such as purchase, lead or sig

Changed on

Conversion actions and goals in Google Ads. create_action: a conversion action (a category such as purchase, lead or signup; a type such as webpage or uploaded clicks), secondary unless primary_for_goal. update_action: rename, make primary or secondary, hide, its counting, value or lookback (Google id from GAQL: SELECT conversion_action.id FROM conversion_action). account_goal: whether a category+origin (e.g. purchase + website) is biddable account-wide. campaign_goal: the same for one campaign (Magistry campaign id). What Smart Bidding optimises toward changes with a primary or biddable flip, so Google Ads asks a member of the store to approve every such write, however it is sent. Moves no budget.

post/api/v1/tools/ads_google_conversion_goals

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
action, 'create_action' | 'update_action' | 'account_goal' | 'campaign_goal' required
conversion_action_id, string
campaign_id, string uuid
name, string
category, string

ConversionActionCategory, e.g. PURCHASE.

origin, string

ConversionOrigin, e.g. WEBSITE.

type, string

ConversionActionType, e.g. WEBPAGE.

biddable, boolean
primary_for_goal, boolean
hidden, boolean

update_action: true hides the action, false shows it again.

counting_type, 'ONE_PER_CLICK' | 'MANY_PER_CLICK'
default_value, number
currency_code, string
always_use_default_value, boolean
click_through_lookback_window_days, integer
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