update_bid_strategy

Google Ads Write

Change campaign bidding strategy

Endpoint

POST https://api.adspirer.ai/api/v1/tools/update_bid_strategy/execute

Headers

Description

Change campaign bidding strategy. **Available Strategies:** - MAXIMIZE_CLICKS: Get as many clicks as possible within budget (optional cpc_bid_ceiling = max CPC cap) - MAXIMIZE_CONVERSIONS: Get as many conversions as possible - TARGET_CPA: Set a target cost per acquisition (requires target_cpa) - TARGET_ROAS: Set a target return on ad spend (requires target_roas) - TARGET_IMPRESSION_SHARE: Bid to appear for a target share of auctions at a chosen page position (requires impression_share_location + impression_share_target_percent) **Parameters:** - campaign_id: The campaign ID (REQUIRED) - strategy: one of the strategies above (REQUIRED) - target_cpa: Required if strategy is TARGET_CPA. In dollars, e.g., 25.00 for $25 CPA - target_roas: Required if strategy is TARGET_ROAS. Multiplier, e.g., 4.0 for 400% ROAS - impression_share_location: Required if strategy is TARGET_IMPRESSION_SHARE. ABSOLUTE_TOP_OF_PAGE, TOP_OF_PAGE, or ANYWHERE_ON_PAGE - impression_share_target_percent: Required if strategy is TARGET_IMPRESSION_SHARE. 1-100, e.g., 80 for 80% - cpc_bid_ceiling: Max CPC cap. Used with MAXIMIZE_CLICKS or TARGET_IMPRESSION_SHARE. In the ACCOUNT'S currency (not cents, not USD; for 8.00 send 8). Optional — omit to keep an existing ceiling; STRONGLY recommended on TARGET_IMPRESSION_SHARE. Not accepted on other strategies - customer_id: Optional (uses connected account if omitted) **IMPORTANT:** - TARGET_CPA requires conversion tracking to be set up - TARGET_ROAS requires conversion value tracking - TARGET_IMPRESSION_SHARE is for visibility goals (Search/Display); set cpc_bid_ceiling so bids don't run away chasing the target - This changes the bidding on a LIVE campaign immediately — review the values (especially the CPC ceiling and target %) before moving on - The response shows the ceiling READ BACK from Google ("Max CPC ceiling: …"); if it says "not set", the cap did not save — do not tell the user it did. `list_campaigns` / `get_campaign_structure` also report the ceiling - Changing strategy may take 1-2 weeks to stabilize performance - Confirm with user before changing **Execution time:** 2-4 seconds **Examples:** User: "I want to target $30 CPA" Agent: Uses update_bid_strategy with strategy=TARGET_CPA, target_cpa=30.00 User: "Target absolute top of page, 80% impression share, max CPC $4" Agent: Uses update_bid_strategy with strategy=TARGET_IMPRESSION_SHARE, impression_share_location=ABSOLUTE_TOP_OF_PAGE, impression_share_target_percent=80, cpc_bid_ceiling=4.00 User: "Maximize clicks but never pay more than CA$8 a click" Agent: Uses update_bid_strategy with strategy=MAXIMIZE_CLICKS, cpc_bid_ceiling=8 (account currency is CAD, so 8 means CA$8.00)

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredThe campaign ID to update. Use list_campaigns first to get available campaign IDs.
strategystring requiredBidding strategy: MAXIMIZE_CLICKS, MAXIMIZE_CONVERSIONS, MAXIMIZE_CONVERSION_VALUE, TARGET_CPA, TARGET_ROAS, or TARGET_IMPRESSION_SHARE
target_cpanumber optionalTarget CPA in dollars (required if strategy is TARGET_CPA). Example: 25.00 for $25 CPA
target_roasnumber optionalTarget ROAS multiplier (required if strategy is TARGET_ROAS). Example: 4.0 for 400% ROAS
impression_share_locationstring optionalRequired for TARGET_IMPRESSION_SHARE. Where on the page to target: ABSOLUTE_TOP_OF_PAGE (very top / first ad), TOP_OF_PAGE (above results), or ANYWHERE_ON_PAGE.
impression_share_target_percentnumber optionalRequired for TARGET_IMPRESSION_SHARE. Impression-share target as a percent 1-100 (e.g. 80 for 80% impression share).
cpc_bid_ceilingnumber optionalMax CPC bid ceiling. Used with MAXIMIZE_CLICKS (caps what Maximize Clicks may pay per click) or TARGET_IMPRESSION_SHARE (caps bids chasing the impression-share target). In the ACCOUNT'S OWN CURRENCY as a decimal — NOT cents, NOT USD. For an 8.00 ceiling send 8, not 8000000. Optional; omit it to leave an existing ceiling unchanged. Rejected on other strategies (they have no max-CPC field). The response echoes the ceiling read back from Google so you can confirm it saved.
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "strategy": "string",
    "target_cpa": 1.0,
    "target_roas": 1.0,
    "impression_share_location": "string",
    "impression_share_target_percent": 1.0,
    "cpc_bid_ceiling": 1.0,
    "customer_id": "string"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for update_bid_strategy)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "update_bid_strategy"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "update_bid_strategy"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "update_bid_strategy",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai