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
POST https://api.adspirer.ai/api/v1/tools/update_extension_asset/execute
Authorization: Bearer sk_live_... — your Adspirer API key (required)Content-Type: application/json (required)Idempotency-Key: <uuid> — recommended for write operations to make retries safeAll tool arguments are wrapped in an arguments object.
| Field | Type | Description |
|---|---|---|
asset_id | string required | The 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_type | string required | What kind of asset it is: SITELINK, CALLOUT, STRUCTURED_SNIPPET or CALL. |
changes | object required | Only 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_links | boolean optional | Set 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_run | boolean optional | Optional. true = test mode: Google checks the edit (validate-only) and NOTHING is changed. |
customer_id | string optional | Google Ads customer ID. Required for multi-account users. Get from get_connections_status. |
{
"arguments": {
"asset_id": "string",
"field_type": "string",
"changes": {},
"confirm_all_links": false,
"dry_run": false,
"customer_id": "string"
}
}
{
"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"
}
{
"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"
}
{
"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"
}
}
Interactive: Swagger UI
Machine-readable: OpenAPI 3.1 spec · llms-full.txt
More tools: Google Ads · All tools
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai