add_sitelink_extension
Create a sitelink extension with display text and final URL, optionally attaching it to a campaign or ad group to provide additional links in ads.
Instructions
Create a sitelink extension and optionally attach it to a campaign or ad group.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"display_text": "<display_text>",
"final_url": "<final_url>"
},
"name": "add_sitelink_extension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Campaign or ad group id to associate it with (omit to create unattached). | |
| final_url | Yes | Landing page URL for the sitelink. | |
| description1 | No | First description line shown under the link (max 35 chars). Microsoft requires both description lines together, so pass description1 and description2 as a pair or omit both. | |
| description2 | No | Second description line (max 35 chars); see description1. | |
| display_text | Yes | Sitelink link text (max 25 chars). | |
| association_type | No | "Campaign" or "AdGroup" (default "Campaign"). | Campaign |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| ids | No | ||
| message | Yes | ||
| partial_errors | No |