> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adsmcp.si/llms.txt
> Use this file to discover all available pages before exploring further.

# remove_sitelinks

> Unlink sitelink extensions from a campaign.

> [!WARNING]
>
> **Change — approval required.** Calling this tool does not change your ad account. ADSMCP checks the arguments and stages the change as a pending action. It runs only after a person approves it on the dashboard [Approvals](https://adsmcp.si/dashboard/approvals) page. Over MCP or REST you can view (`list_pending_actions`) or reject (`manage_action`) it, never approve it. `execution_mode` and similar arguments do not skip the queue.
>
> **Delete confirmation.** Pass `confirm_delete: true`. Without it the call is refused and nothing is staged. With it the delete is staged and still needs approval; once approved it cannot be undone.
>
> A change that fails when it runs is not retried automatically. It shows on the dashboard Execution Queue.

Unlink sitelink extensions from a campaign. Reads the campaign's asset links (get\_google\_campaign\_asset\_links), keeps only SITELINK links, and unlinks each one with remove\_google\_asset\_link. Pass asset\_ids to unlink only those assets; each is checked to be a SITELINK link on the campaign first and is skipped otherwise. The assets stay in the Asset Library. Reads at most 100 of the campaign's links per call; if that many come back the result is marked truncated and the tool should be run again. Returns one result per link; one failure does not stop the others.

**Platform:** Google Ads · **Type:** Change

## How to call it

* **MCP:** on `https://mcp.adsmcp.si/mcp`, run it through the `google_ads_write` tool with `{"action": "execute", "tool_name": "remove_sitelinks", "arguments": { ... }}`, or call `remove_sitelinks` by name. `search_tools` finds it and `get_tool_schema` returns its arguments; `https://mcp.adsmcp.si/mcp/flat` lists every tool by name.
* **REST:** `POST https://mcp.adsmcp.si/api/v1/tools/remove_sitelinks/execute` with `Authorization: Bearer sk_live_...` and a JSON body `{"platform": "google", "arguments": { ... }}`. The arguments are listed below; they are exactly the tool's input schema.


## OpenAPI

````yaml api-reference/openapi.json POST /api/v1/tools/remove_sitelinks/execute
openapi: 3.1.0
info:
  title: ADSMCP REST API
  version: 0.1.0
  description: >-
    ADSMCP REST API: every public ADSMCP tool as POST
    /api/v1/tools/{name}/execute. Generated from the ADSMCP code (the service
    serves the same document at GET /api/v1/openapi.json). Changes to ad
    accounts are staged for approval by a person on the ADSMCP dashboard;
    nothing in this API can approve them.
servers:
  - url: https://mcp.adsmcp.si
    description: ADSMCP MCP and REST service
security: []
paths:
  /api/v1/tools/remove_sitelinks/execute:
    post:
      tags:
        - google
      summary: >-
        Unlink sitelink extensions from a campaign. Reads the campaign's asset
        links (get_google_campaign_asset_links), keeps only SITELINK links, and
        unlinks each one with remove_google_asset_link. Pass asset_ids to unlink
        only those assets; each is checked to be a SITELINK link on the campaign
        first and is skipped otherwise. The assets stay in the Asset Library.
        Reads at most 100 of the campaign's links per call; if that many come
        back the result is marked truncated and the tool should be run again.
        Returns one result per link; one failure does not stop the others.
      description: >-
        Unlink sitelink extensions from a campaign. Reads the campaign's asset
        links (get_google_campaign_asset_links), keeps only SITELINK links, and
        unlinks each one with remove_google_asset_link. Pass asset_ids to unlink
        only those assets; each is checked to be a SITELINK link on the campaign
        first and is skipped otherwise. The assets stay in the Asset Library.
        Reads at most 100 of the campaign's links per call; if that many come
        back the result is marked truncated and the tool should be run again.
        Returns one result per link; one failure does not stop the others. Use
        this when you intend that change. Write tools create paused objects or
        wait for approval, and a failed spend-affecting call is not retried
        automatically.
      operationId: execute_remove_sitelinks
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
          description: Bearer token
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                platform:
                  type: string
                  default: google
                arguments:
                  type: object
                  properties:
                    account_id:
                      type: string
                      description: Google Ads customer id.
                    login_customer_id:
                      type: string
                      description: >-
                        Manager (MCC) customer id, when the account is accessed
                        through one.
                    campaign_id:
                      type: string
                      description: Campaign to unlink from.
                    asset_ids:
                      type: array
                      items:
                        type: string
                      description: >-
                        Only unlink these asset ids (must be SITELINK links on
                        the campaign).
                    execution_mode:
                      type: string
                      enum:
                        - paused
                        - approval_required
                      description: Passed unchanged to every write call this tool makes.
                    confirm_delete:
                      type: boolean
                      description: >-
                        Required: must be true. Deleting cannot be undone once
                        approved, so a call without it is refused and nothing is
                        staged. With it the delete is staged for dashboard
                        approval like any other write.
                  required:
                    - account_id
                    - campaign_id
                  additionalProperties: false
              additionalProperties: false
      responses:
        '200':
          description: Tool execution result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecuteToolResponse'
        '400':
          description: Invalid JSON input.
        '401':
          description: Authentication error.
      security:
        - bearerAuth: []
components:
  schemas:
    ExecuteToolResponse:
      type: object
      properties:
        ok:
          type: boolean
        platform:
          type: string
        tool:
          type: string
        data: {}
        error:
          anyOf:
            - type: 'null'
            - $ref: '#/components/schemas/ErrorResponse'
        mcp_response: {}
      required:
        - ok
        - platform
        - tool
        - error
        - mcp_response
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        code: {}
        message:
          type: string
        details: {}
      required:
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.