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 GuideWhat 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 bycategory_name,sub_category_nameBefore You Query
- This table is not time-series. No
event_datefilter is needed. Usecreated_atif 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_providersandexclude_providersare repeated-string arrays. UsearrayJoin(or the equivalent unnest pattern) to filter or aggregate by individual provider.Key Relationships
Table Join Key What the Join Enables Custom Category Mappings sub_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.
Dimensions
Dimensions are immutable properties that can be used for grouping data.
Title | ID | Type | Description |
|---|---|---|---|
AI Rule |
| string | The AI rule used to classify campaigns into subcategories. Example values: |
Category ID |
| string | The ID of the category (grouping dimension, e.g., Tactic, Geography, Product). Example value: |
Category Name |
| string | The name of the category (grouping dimension). Example values: |
Subcategory Created Date |
| date | The date the subcategory was created. Example value: |
Exclude Providers |
| repeated string | The providers excluded from the subcategory. Example values: |
Include Providers |
| repeated string | The providers included in the subcategory. Example values: |
Subcategory ID |
| string | The ID of the subcategory. Example value: |
Subcategory Name |
| string | The name of the subcategory (specific group within a category). Example values: |
Updated about 7 hours ago