propose_write
ads

Bidding in Google Ads. create_portfolio: a portfolio bidding strategy (target ROAS, target CPA, maximize conversion valu

Changed on

Bidding in Google Ads. create_portfolio: a portfolio bidding strategy (target ROAS, target CPA, maximize conversion value, maximize conversions, target spend, target impression share) with its targets. update_portfolio: its name or targets (Google id: SELECT bidding_strategy.id FROM bidding_strategy); a new target applies to every campaign on it, so the card counts each of their budgets. campaign_strategy: a campaign's own strategy (Magistry campaign id), declared through Magistry's control plane like its status and budget, so an agent holding the field is named instead of overwritten. Target spend, maximize clicks and target impression share need a cpc_bid_ceiling. Targets are in the account currency (ROAS as a ratio: 4 = 400%).

post/api/v1/tools/ads_google_bidding_strategy

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_portfolio' | 'update_portfolio' | 'campaign_strategy' required
name, string
bidding_strategy_id, string
campaign_id, string uuid
strategy, 'MAXIMIZE_CONVERSIONS' | 'MAXIMIZE_CONVERSION_VALUE' | 'TARGET_CPA' | 'TARGET_ROAS' | 'TARGET_SPEND' | 'TARGET_IMPRESSION_SHARE' | 'MANUAL_CPC' | 'MAXIMIZE_CLICKS'
target_roas, number
target_cpa, number
target_impression_share, number

A fraction: 0.9 = 90%.

impression_share_location, 'ANYWHERE_ON_PAGE' | 'TOP_OF_PAGE' | 'ABSOLUTE_TOP_OF_PAGE'
cpc_bid_ceiling, number
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