Custom Category Mappings Table
custom_category_mappings_table
The Custom Category Mappings table assigns individual campaigns to user-defined categories and subcategories. One row per active campaign-to-subcategory mapping. Learn more about Custom Categories for Campaign Organization.
Table GuideWhat You Can Answer With This Table
- Which campaigns are assigned to a given subcategory? — use
campaign_id,campaign_name,provider_id, filter bysub_category_id- How are mappings distributed across categories or subcategories? — group by
category_idorsub_category_id- Which channels are most represented in my custom groupings? — group by
provider_id,category_id- What campaign-to-subcategory mappings were created recently? — use
created_at,campaign_id,sub_category_idBefore You Query
- This table is not time-series. No
event_datefilter is needed. Usecreated_atif you want to narrow to when the mapping was created.- Only active mappings are returned. Inactive mappings are excluded by the query layer and cannot be retrieved here.
- A single campaign can appear in multiple rows when it is mapped under more than one category (e.g., one row for
Geographyand another forTactic).Key Relationships
Table Join Key What the Join Enables Custom Categories sub_category_idCategory and subcategory names, AI rule definitions, and provider scopes for each mapped subcategory. Ads campaign_idCampaign-level ad-platform performance (spend, clicks, conversions), so you can analyze metrics by your custom categories. When to Use a Different Table
- For the category and subcategory definitions, AI rules, and provider scopes themselves → use Custom Categories. This table only carries the campaign-level assignments.
Dimensions
Dimensions are immutable properties that can be used for grouping data.
Title | ID | Type | Description |
|---|---|---|---|
Campaign ID |
| string | The ID of the campaign. Example value: |
Campaign Name |
| string | The name of the campaign. Example values: |
Category ID |
| string | The ID of the category (grouping dimension, e.g., Tactic, Geography, Product). Example value: |
Mapping Created Date |
| date | The date the campaign was mapped to the subcategory. Example value: |
Channel |
| string | The channel or platform where the campaign runs. Example values: |
Subcategory ID |
| string | The ID of the subcategory assigned to the campaign. Example value: |
Updated about 7 hours ago