# tiktok_update_pixel_settings

> Change the automatic collection settings of one pixel of this advertiser: expanded data sharing (automatic clicks and page metadata), first-party cookies…

[Documentation](https://www.getmcpads.com/docs) / [Sources](https://www.getmcpads.com/docs/sources) / [TikTok Ads](https://www.getmcpads.com/docs/sources/tiktok-ads)

Change the automatic collection settings of one pixel of this advertiser: expanded data sharing (automatic clicks and page metadata), first-party cookies and automatic advanced matching. The pixel name and its events are unchanged. Local preview by default. No automatic retry; advertiser ownership is checked before applying.

> **Warning** This tool changes the account. It is absent from the tool list on the Free plan, and it previews by default: without `confirm: true` it describes the change and applies nothing.

|  |  |
| --- | --- |
| Source | [TikTok Ads](https://www.getmcpads.com/docs/sources/tiktok-ads) |
| Kind | Write |
| Discovery | Reachable through `search_tools` and `run_tool` |
| Account parameter | `advertiserId` |
| Endpoint | https://mcp.getmcpads.com/tiktok-ads/mcp |

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `advertiserId` | string | Required | Exact TikTok numeric ID as a string, never a rounded JavaScript number. |
| `pixelId` | string | Required | pixel_id of a pixel owned by this advertiser (tiktok_get_pixels), not the pixel_code. |
| `expandedDataSharing` | boolean | Optional | False stops TikTok collecting clicks, button interactions and page metadata automatically. |
| `firstPartyCookies` | boolean | Optional | Whether the pixel stores its identifiers in first-party cookies on the website. |
| `automaticAdvancedMatching` | object | Optional | All five fields, each explicit. True lets the pixel read that information from the page and send it hashed. |
| `confirm` | boolean | Optional | Apply only when true. Default is a local preview without any TikTok call. Never retry an uncertain POST automatically. |

## Calling it

Through run_tool, since it is not announced

```json
{
  "name": "run_tool",
  "arguments": {
    "name": "tiktok_update_pixel_settings",
    "args": {
      "advertiserId": "<string>",
      "pixelId": "<string>"
    }
  }
}
```

- [TikTok Ads metrics](https://www.getmcpads.com/docs/sources/tiktok-ads/metrics): What you can ask for.
- [TikTok Ads dimensions](https://www.getmcpads.com/docs/sources/tiktok-ads/dimensions): How you can break it down.

---

This page as HTML: https://www.getmcpads.com/docs/sources/tiktok-ads/tools/tiktok_update_pixel_settings
Every page under /docs is available as Markdown: append `.md`, or send `Accept: text/markdown`.
