Custom Categories Table

custom_categories_table

The Custom Categories table stores user-defined campaign groupings (categories and subcategories) with their AI rules and provider scopes. One row per subcategory. Learn more about Custom Categories for Campaign Organization.

📋

Table Guide

What You Can Answer With This Table

  • What categories and subcategories have I defined? — use category_name, sub_category_name
  • Which subcategories use an AI rule, and what does the rule look like? — use ai_rule, sub_category_name
  • What providers does each subcategory include or exclude? — use include_providers, exclude_providers, sub_category_name
  • When were my subcategories created? — use created_at, group by category_name, sub_category_name

Before You Query

  • This table is not time-series. No event_date filter is needed. Use created_at if you want to narrow to a creation-date range.
  • Only active subcategories are returned. Inactive subcategories are excluded by the query layer and cannot be retrieved here.
  • include_providers and exclude_providers are repeated-string arrays. Use arrayJoin (or the equivalent unnest pattern) to filter or aggregate by individual provider.

Key Relationships

TableJoin KeyWhat the Join Enables
Custom Category Mappingssub_category_idThe campaigns currently assigned to each subcategory, with their channel and campaign metadata.

When to Use a Different Table

  • For the actual campaigns assigned to each subcategory, or for performance metrics by category → use Custom Category Mappings. This table only defines categories and rules; Custom Category Mappings has the campaign assignments and joins to Ads for performance.

View the full Triple Whale Data Ontology →

Dimensions

Dimensions are immutable properties that can be used for grouping data.

Title

ID

Type

Description

AI Rule

ai_rule

string

The AI rule used to classify campaigns into subcategories.

Example values: customers aged 18-24, campaigns targeting South America, branded search ads, influencer collaborations

Category ID

category_id

string

The ID of the category (grouping dimension, e.g., Tactic, Geography, Product).

Example value: 09f58489-713a-4866-bce4-1040c9a1ee71

Category Name

category_name

string

The name of the category (grouping dimension).

Example values: Geography, Tactic, Funnel

Subcategory Created Date

created_at

date

The date the subcategory was created.

Example value: 2025-09-08

Exclude Providers

exclude_providers

repeated string

The providers excluded from the subcategory.

Example values: facebook-ads, google-ads, tiktok-ads

Include Providers

include_providers

repeated string

The providers included in the subcategory.

Example values: facebook-ads, google-ads, tiktok-ads

Subcategory ID

sub_category_id

string

The ID of the subcategory.

Example value: 46c71065-5bbb-4ab6-81ee-39078b23cca0

Subcategory Name

sub_category_name

string

The name of the subcategory (specific group within a category).

Example values: 18-24, Peru, Meta Prospecting, Google PMAX