Google Ads: Create Sitelinks
gads_create_sitelinksAdd sitelinks — the extra links under a Search ad — and attach them to the whole account, to one campaign or to one ad group. Each sitelink needs link text of at most 25 characters and an https landing page, and may carry two description lines of at most 35 characters each — Google shows both lines or neither, so pass both or neither. Google serves at most 20 sitelinks per level, and this call is refused if the new ones would not fit. Existing sitelinks are kept: an identical sitelink already attached at the target is reported as already attached, and one that exists elsewhere in the account is linked instead of created again. Set validate_only to have Google check the request without changing anything. Read what is already there with gads_list_sitelinks.
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": {
"sitelinks": "<sitelinks>"
},
"name": "gads_create_sitelinks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Where the sitelinks serve: account for every campaign in the account, campaign for one campaign, ad_group for one ad group. Defaults to campaign. | |
| sitelinks | Yes | Sitelinks to create, at most 20 per call. | |
| ad_group_id | No | Ad group to attach them to, when level is ad_group. | |
| campaign_id | No | Campaign to attach them to, when level is campaign. | |
| customer_id | No | Google Ads account to change: customer id or exact account name. Required when you have several accounts — the stored default is never used for a change then. | |
| validate_only | No | Have Google validate the request without creating or attaching anything. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Where the sitelinks were attached. | |
| ownerId | No | Campaign or ad group they were attached to. Null at account level. | |
| sitelinks | Yes | One row per requested sitelink. | |
| countAfter | Yes | How many sitelinks the level holds now. | |
| createdCount | Yes | Number of sitelinks newly linked (created or reused). | |
| validateOnly | Yes | True when Google only validated and nothing changed. |