# Create a TikTok Ads rule audience

Create a TikTok audience from rules: website visitors of a pixel (PIXEL), people who engaged with ad groups (ENGAGEMENT), app, lead form, business account. Works on your own TikTok Ads account, connected through Get MCP Ads. The preview is free; the change costs $0.05 when you confirm it. Needs advertiser id, name, audience type and more.

Create a TikTok audience from rules: website visitors of a pixel (PIXEL), people who engaged with ad groups (ENGAGEMENT), app, lead form, business account, shop or offline activity. TikTok builds it within 48 hours. Include it with audience_ids or exclude it with excluded_audience_ids on an ad group. Local preview by default. No automatic retry; advertiser ownership is checked before applying. Agentik price: free to preview; $0.05 when the change is applied (confirm: true without validateOnly).

- Tool ID: `tiktok-ads/create-rule-audience`
- Name in the catalog: TikTok: Create rule audience
- Provider: [TikTok Ads](/providers/tiktok-ads.md)
- Capability: [TikTok Ads audiences & targeting](/tools/tiktok-ads/audiences.md)
- Price: free preview, $0.05 per applied change
- Workspace access is automatic. Connect a platform using the link and notice returned to your AI assistant; an owner or admin completes platform consent and returns to the conversation; see the [guide](/docs/getmcpads.md).
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0,
  "multipliers": [
    {
      "all": [
        {
          "field": "confirm",
          "equals": true
        },
        {
          "field": "validateOnly",
          "truthy": false
        }
      ],
      "setUsd": 0.05
    }
  ]
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "advertiserId": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Exact TikTok numeric ID as a string, never a rounded JavaScript number."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Exact audience name, 128 characters at most."
    },
    "audienceType": {
      "type": "string",
      "enum": [
        "PIXEL",
        "ENGAGEMENT",
        "APP",
        "LEAD_GENERATION",
        "BUSINESS_ACCOUNT",
        "TIKTOK_SHOP",
        "OFFLINE",
        "ENGAGEMENT_ORGANIC_VIDEO",
        "ENGAGEMENT_LIVE_VIDEO"
      ],
      "description": "Native audience_type."
    },
    "ruleSpec": {
      "type": "object",
      "properties": {
        "inclusion_rule_set": {
          "type": "object",
          "properties": {
            "operator": {
              "type": "string",
              "const": "OR",
              "description": "Rules combine with OR."
            },
            "rules": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "event_source_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,64}$"
                    },
                    "minItems": 1,
                    "maxItems": 50,
                    "description": "Pixel IDs (PIXEL), ad group IDs (ENGAGEMENT), app IDs (APP), post or live IDs, core user IDs (BUSINESS_ACCOUNT), shop or offline event set IDs. Omit for LEAD_GENERATION."
                  },
                  "retention_days": {
                    "type": "number",
                    "enum": [
                      7,
                      14,
                      30,
                      60,
                      90,
                      180
                    ],
                    "description": "Lookback window in days: 7, 14, 30, 60, 90 or 180."
                  },
                  "filter_set": {
                    "type": "object",
                    "properties": {
                      "operator": {
                        "type": "string",
                        "const": "OR"
                      },
                      "filters": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "operator": {
                              "type": "string",
                              "const": "EQ"
                            },
                            "value": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "description": "Native event, for example PAGE BROWSE or COMPLETE PAYMENT (pixel), CLICK or PLAY 6S (ad engagement)."
                            },
                            "parameter_filters": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "maxItems": 11,
                              "description": "Optional URL keyword (field URL) and pixel parameter filters: field, operator and the value TikTok documents."
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "minItems": 1,
                        "maxItems": 1
                      }
                    },
                    "required": [
                      "operator",
                      "filters"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "retention_days",
                  "filter_set"
                ],
                "additionalProperties": false
              },
              "minItems": 1,
              "maxItems": 10
            }
          },
          "required": [
            "operator",
            "rules"
          ],
          "additionalProperties": false
        },
        "exclusion_rule_set": {
          "type": "object",
          "properties": {
            "operator": {
              "type": "string",
              "const": "OR",
              "description": "Rules combine with OR."
            },
            "rules": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "event_source_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,64}$"
                    },
                    "minItems": 1,
                    "maxItems": 50,
                    "description": "Pixel IDs (PIXEL), ad group IDs (ENGAGEMENT), app IDs (APP), post or live IDs, core user IDs (BUSINESS_ACCOUNT), shop or offline event set IDs. Omit for LEAD_GENERATION."
                  },
                  "retention_days": {
                    "type": "number",
                    "enum": [
                      7,
                      14,
                      30,
                      60,
                      90,
                      180
                    ],
                    "description": "Lookback window in days: 7, 14, 30, 60, 90 or 180."
                  },
                  "filter_set": {
                    "type": "object",
                    "properties": {
                      "operator": {
                        "type": "string",
                        "const": "OR"
                      },
                      "filters": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "operator": {
                              "type": "string",
                              "const": "EQ"
                            },
                            "value": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "description": "Native event, for example PAGE BROWSE or COMPLETE PAYMENT (pixel), CLICK or PLAY 6S (ad engagement)."
                            },
                            "parameter_filters": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              "maxItems": 11,
                              "description": "Optional URL keyword (field URL) and pixel parameter filters: field, operator and the value TikTok documents."
                            }
                          },
                          "required": [
                            "field",
                            "operator",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "minItems": 1,
                        "maxItems": 1
                      }
                    },
                    "required": [
                      "operator",
                      "filters"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "retention_days",
                  "filter_set"
                ],
                "additionalProperties": false
              },
              "minItems": 1,
              "maxItems": 10
            }
          },
          "required": [
            "operator",
            "rules"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "inclusion_rule_set"
      ],
      "additionalProperties": false,
      "description": "Native rule_spec: people matching an inclusion rule, minus those matching an exclusion rule."
    },
    "isAutoRefresh": {
      "type": "boolean",
      "description": "Refresh daily with the lookback window. TikTok default: true."
    },
    "retentionInDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365,
      "description": "Fixed lifetime in days from creation, 1 to 365. Omitted: TikTok keeps the audience 365 days after its last use or change."
    },
    "identityId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Required for ENGAGEMENT_ORGANIC_VIDEO and ENGAGEMENT_LIVE_VIDEO."
    },
    "identityType": {
      "type": "string",
      "enum": [
        "TT_USER",
        "BC_AUTH_TT"
      ],
      "description": "Required for ENGAGEMENT_ORGANIC_VIDEO and ENGAGEMENT_LIVE_VIDEO."
    },
    "identityAuthorizedBcId": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Business Center ID, required with BC_AUTH_TT."
    },
    "confirm": {
      "type": "boolean",
      "description": "Apply only when true. Default is a local preview without any TikTok call. Never retry an uncertain POST automatically."
    },
    "workspace_id": {
      "type": "string",
      "description": "Authorized workspace ID from list_accounts/list_workspaces. Use the user's chosen workspace; never guess between clients. Optional when a unique account identifies it."
    },
    "reason": {
      "type": "string",
      "maxLength": 500,
      "description": "Why, in the person's words or from the evidence (e.g. CPA twice the target for 7 days). Saved with the change in the shared client journal."
    }
  },
  "required": [
    "advertiserId",
    "name",
    "audienceType",
    "ruleSpec"
  ]
}
```

## Published example

No example input is published for this tool. Ask for the inputs required by its schema.

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[REST inspection](https://api.agentik.cc/v1/tools/tiktok-ads/create-rule-audience) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

## Provider websites

- [Get MCP Ads](https://www.getmcpads.com/)

---

[HTML page](/providers/tiktok-ads/create-rule-audience) · [Agent index](/llms.txt)
