Draft sitelinks
draft_sitelinksDraft sitelink extensions for a campaign and preview them before applying. Validates each destination URL, blocks unreachable links, and returns a plan_id for confirmation.
Instructions
Draft sitelink extensions for a campaign — returns a PREVIEW.
Sitelinks appear as additional links below your ad, increasing click area and directing users to specific pages. Every final_url is fetched and an unreachable URL (HTTP 4xx/5xx) blocks the draft. Google recommends at least 4 sitelinks per campaign; fewer than 2 may not show. Returns a preview with a plan_id and any warnings; nothing changes until confirm_and_apply applies it.
Google Ads API: https://developers.google.com/google-ads/api/docs/start
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sitelinks | Yes | List of dicts (at least one), each with link_text (str, required, max 25 chars) — the clickable text shown; final_url (str, required) — destination URL for this sitelink; description1 (str, optional, max 35 chars) — first description line; description2 (str, optional, max 35 chars) — second description line. | |
| campaign_id | Yes | Numeric ID of the campaign to attach sitelinks to. | |
| customer_id | No | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||