update_extension_asset

Google Ads Write

Edit an existing Google Ads sitelink, callout, structured snippet or call asset in place: change a sitelink's final URL, link text, description lines, mobile URL or tracking template; a callout's text

Endpoint

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

Headers

Description

Edit an existing Google Ads sitelink, callout, structured snippet or call asset in place: change a sitelink's final URL, link text, description lines, mobile URL or tracking template; a callout's text; a snippet's values; a call asset's phone number or country. Only the fields you name in `changes` are sent to Google; everything else on the asset stays as it is. The asset keeps its id and history. **Shared assets:** one asset can be used in several places (the account, several campaigns, ad groups). An edit changes it EVERYWHERE it is used. When it is used in more than one place, the first call changes nothing and returns the list of places; tell the user, and call again with confirm_all_links=true only if they agree. **Cannot be edited (refused before anything is sent):** business name and image / logo assets (add a new one, then remove the old link) and assets Google created automatically. **Parameters:** - asset_id (REQUIRED): from list_campaign_extensions ("asset <id>") or list_call_assets - field_type (REQUIRED): SITELINK, CALLOUT, STRUCTURED_SNIPPET or CALL - changes (REQUIRED): e.g. {"final_urls": ["https://example.com/new-page"]} - confirm_all_links: true only after the user agreed to change every place the asset is used - dry_run: true = Google checks the edit (validate-only) and nothing is changed - customer_id: Optional Google Ads customer ID After the edit the stored values are read back from Google; the call fails if they differ from what was sent. **Example:** User: "Change the Pricing sitelink to https://example.com/plans" Agent: 1. list_campaign_extensions → find the Pricing sitelink's asset id 2. update_extension_asset(asset_id=<id>, field_type="SITELINK", changes={"final_urls": ["https://example.com/plans"]})

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
asset_idstring requiredThe asset to edit: its numeric id or resource name (customers/<id>/assets/<id>). Get it from list_campaign_extensions (shown as 'asset <id>' on every line) or list_call_assets.
field_typestring requiredWhat kind of asset it is: SITELINK, CALLOUT, STRUCTURED_SNIPPET or CALL.
changesobject requiredOnly the fields to change. SITELINK: link_text (max 25), description1 and description2 (max 35 each; the asset must end up with both or neither), final_urls (list of full URLs; replaces the whole list; final_url accepted for one URL), final_mobile_urls, tracking_url_template. CALLOUT: callout_text (max 25). STRUCTURED_SNIPPET: values (3 to 10, max 25 each; replaces the whole list). CALL: phone_number, country_code (2 letters). Over-length text is refused, never cut short.
confirm_all_linksboolean optionalSet true ONLY after the user agreed to change the asset everywhere it is used. When the asset is used in more than one place (account, several campaigns or ad groups), the first call returns the list of places and changes nothing until this is true.
dry_runboolean optionalOptional. true = test mode: Google checks the edit (validate-only) and NOTHING is changed.
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

{
  "arguments": {
    "asset_id": "string",
    "field_type": "string",
    "changes": {},
    "confirm_all_links": false,
    "dry_run": false,
    "customer_id": "string"
  }
}

Example responses

200 — Success

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

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_extension_asset"
}

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_extension_asset",
  "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