-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarketing_campaigns.yaml
More file actions
351 lines (350 loc) · 9.77 KB
/
Copy pathmarketing_campaigns.yaml
File metadata and controls
351 lines (350 loc) · 9.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
name: Sales_And_Marketing_Data
tables:
- name: MARKETING_CAMPAIGN_METRICS
base_table:
database: DASH_DB_SI
schema: RETAIL
table: MARKETING_CAMPAIGN_METRICS
primary_key:
columns:
- CATEGORY
dimensions:
- name: CAMPAIGN_NAME
synonyms:
- ad_campaign
- marketing_campaign
- promo_name
- advertisement_name
- campaign_title
- promotion_name
description: The name of the marketing campaign, which can be used to identify and analyze the performance of specific promotional initiatives.
expr: CAMPAIGN_NAME
data_type: VARCHAR(16777216)
sample_values:
- Summer Fitness Campaign
- name: CATEGORY
synonyms:
- type
- classification
- group
- label
- sector
- class
- kind
- genre
description: The category of the marketing campaign, which represents the product or service being promoted, such as a specific industry or product line.
expr: CATEGORY
data_type: VARCHAR(16777216)
sample_values:
- Fitness Wear
facts:
- name: CLICKS
synonyms:
- click_throughs
- link_clicks
- ad_clicks
- button_clicks
- selections
- hits
description: The total number of times users clicked on an advertisement or promotional link as part of a marketing campaign.
expr: CLICKS
data_type: NUMBER(38,0)
sample_values:
- '614'
- '429'
- '446'
- name: IMPRESSIONS
synonyms:
- views
- ad_views
- ad_exposures
- display_count
- ad_impressions
- exposures
- ad_views_count
- views_count
description: The total number of times an ad was displayed to users during a marketing campaign.
expr: IMPRESSIONS
data_type: NUMBER(38,0)
sample_values:
- '10927'
- '7278'
- '9962'
time_dimensions:
- name: DATE
synonyms:
- day
- calendar_date
- timestamp
- datestamp
- calendar_day
- date_value
description: Date on which the marketing campaign metrics were recorded.
expr: DATE
data_type: DATE
sample_values:
- '2025-06-15'
- '2025-06-16'
- '2025-06-17'
- name: PRODUCTS
base_table:
database: DASH_DB_SI
schema: RETAIL
table: PRODUCTS
primary_key:
columns:
- PRODUCT_ID
dimensions:
- name: CATEGORY
synonyms:
- type
- classification
- group
- genre
- kind
- class
- product_type
- product_group
- product_category
- product_classification
description: 'The CATEGORY column represents the type of product being sold, which can be classified into three main categories: Fitness Wear, Casual Wear, and Accessories.'
expr: CATEGORY
data_type: VARCHAR(16777216)
sample_values:
- Fitness Wear
- Casual Wear
- Accessories
- name: PRODUCT_ID
synonyms:
- product_key
- item_id
- product_number
- item_number
- product_code
- sku
- product_identifier
description: Unique identifier for each product in the catalog.
expr: PRODUCT_ID
data_type: NUMBER(38,0)
sample_values:
- '1'
- '2'
- '3'
- name: PRODUCT_NAME
synonyms:
- item_name
- product_title
- item_title
- product_description
- product_label
- item_label
description: The name of the product being sold, such as a specific type of fitness equipment or accessory.
expr: PRODUCT_NAME
data_type: VARCHAR(16777216)
sample_values:
- Fitness Item 1
- Fitness Item 2
- Fitness Item 3
- name: SALES
base_table:
database: DASH_DB_SI
schema: RETAIL
table: SALES
dimensions:
- name: PRODUCT_ID
synonyms:
- product_code
- item_id
- product_number
- item_number
- sku
- product_key
description: Unique identifier for a product sold.
expr: PRODUCT_ID
data_type: NUMBER(38,0)
sample_values:
- '1'
- '2'
- '3'
- name: REGION
synonyms:
- area
- territory
- zone
- district
- location
- province
- state
- county
- geographic_area
- market_area
description: Geographic region where the sale was made.
expr: REGION
data_type: VARCHAR(16777216)
sample_values:
- North
- South
- East
facts:
- name: SALES_AMOUNT
synonyms:
- total_sales
- revenue
- sales_total
- sales_value
- sales_revenue
- total_revenue
- sales_figure
- sales_number
description: The total amount of sales generated from a transaction or order.
expr: SALES_AMOUNT
data_type: NUMBER(38,2)
sample_values:
- '2199.67'
- '1039.35'
- '692.70'
- name: UNITS_SOLD
synonyms:
- quantity_sold
- items_sold
- sales_volume
- units_purchased
- volume_sold
- sales_quantity
description: The total quantity of products sold.
expr: UNITS_SOLD
data_type: NUMBER(38,0)
sample_values:
- '28'
- '25'
- '26'
time_dimensions:
- name: DATE
synonyms:
- day
- calendar_date
- date_field
- calendar_day
- timestamp
- date_value
- entry_date
- record_date
- log_date
description: Date of sale, representing the calendar date when a transaction occurred.
expr: DATE
data_type: DATE
sample_values:
- '2025-05-16'
- '2025-05-17'
- '2025-05-18'
- name: SOCIAL_MEDIA
base_table:
database: DASH_DB_SI
schema: RETAIL
table: SOCIAL_MEDIA
dimensions:
- name: CATEGORY
synonyms:
- type
- classification
- group
- genre
- kind
- label
- section
- class
description: The category of social media content, representing the type of product or service being promoted, such as fitness-related clothing and accessories.
expr: CATEGORY
data_type: VARCHAR(16777216)
sample_values:
- Fitness Wear
- name: INFLUENCER
synonyms:
- social_media_personality
- online_influencer
- social_media_figure
- content_creator
- key_opinion_leader
- thought_leader
- industry_expert
- brand_ambassador
description: The name of the social media influencer promoting the product or service.
expr: INFLUENCER
data_type: VARCHAR(16777216)
sample_values:
- NovaFitStar
- name: PLATFORM
synonyms:
- channel
- medium
- site
- social_media_channel
- network
- outlet
description: The social media platform where the activity or engagement took place.
expr: PLATFORM
data_type: VARCHAR(16777216)
sample_values:
- Instagram
- Twitter
- Facebook
facts:
- name: MENTIONS
synonyms:
- citations
- references
- quotes
- allusions
- name_drops
- tags
- shoutouts
- credits
- acknowledgments
description: The number of times a brand, product, or keyword is mentioned on social media platforms.
expr: MENTIONS
data_type: NUMBER(38,0)
sample_values:
- '16'
- '6'
- '9'
time_dimensions:
- name: DATE
synonyms:
- day
- timestamp
- calendar_date
- posting_date
- publication_date
- entry_date
description: Date on which social media data was collected or posted.
expr: DATE
data_type: DATE
sample_values:
- '2025-05-16'
- '2025-05-17'
- '2025-05-19'
relationships:
- name: SALES_TO_PRODUCT
left_table: SALES
right_table: PRODUCTS
relationship_columns:
- left_column: PRODUCT_ID
right_column: PRODUCT_ID
relationship_type: many_to_one
join_type: inner
- name: MARKETING_TO_SOCIAL
left_table: SOCIAL_MEDIA
right_table: MARKETING_CAMPAIGN_METRICS
relationship_columns:
- left_column: CATEGORY
right_column: CATEGORY
relationship_type: many_to_one
join_type: inner
verified_queries:
- name: sales
question: |+
Show me the trend of sales by product category between June 2025 and August 2025
use_as_onboarding_question: false
sql: WITH monthly_sales AS (SELECT p.category, DATE_TRUNC('MONTH', s.date) AS month, SUM(s.sales_amount) AS monthly_sales FROM sales AS s INNER JOIN products AS p ON s.product_id = p.product_id WHERE s.date >= '2025-06-01' AND s.date < '2025-09-01' GROUP BY p.category, DATE_TRUNC('MONTH', s.date)) SELECT category, month, monthly_sales FROM monthly_sales ORDER BY category, month
verified_by: D User
verified_at: 1752091901