forked from pipeline-looker-blocks/facebookads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
insights_age_and_gender.view.lookml
248 lines (209 loc) · 5.21 KB
/
insights_age_and_gender.view.lookml
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
- view: ad_insights_by_age_and_gender
sql_table_name: looker_facebook.facebook_ads_insights_age_and_gender_x
fields:
## STANDARD FIELDS
- dimension: account_id
type: string
sql: ${TABLE}.account_id
- dimension: ad_id
type: string
sql: ${TABLE}.ad_id
- dimension: adset_id
type: string
sql: ${TABLE}.adset_id
- dimension: age
type: string
sql: ${TABLE}.age
- dimension: campaign_id
type: string
sql: ${TABLE}.campaign_id
- dimension: clicks
type: number
sql: ${TABLE}.clicks
- dimension: cpc
type: number
sql: ${TABLE}.cpc
- dimension: cpm
type: number
sql: ${TABLE}.cpm
- dimension: cpp
type: number
sql: ${TABLE}.cpp
- dimension: ctr
type: number
sql: ${TABLE}.ctr
- dimension: date_start
type: string
sql: ${TABLE}.date_start
- dimension: date_stop
type: string
sql: ${TABLE}.date_stop
- dimension: frequency
type: number
sql: ${TABLE}.frequency
- dimension: gender
type: string
sql: ${TABLE}.gender
- dimension: impressions
type: string
sql: ${TABLE}.impressions
- dimension: reach
type: number
sql: ${TABLE}.reach
- dimension: spend
type: number
sql: ${TABLE}.spend
value_format_name: usd
- dimension: total_action_value
type: number
sql: ${TABLE}.total_action_value
- dimension: total_actions
type: number
sql: ${TABLE}.total_actions
- dimension: website_clicks
type: number
sql: ${TABLE}.website_clicks
## AGGREGATED MEASURES
- measure: count
type: count
drill_fields: []
- measure: total_clicks
type: sum
sql: ${TABLE}.clicks
- measure: avg_cpc
type: avg
sql: ${TABLE}.cpc
- measure: avg_cpm
type: avg
sql: ${TABLE}.cpm
- measure: avg_cpp
type: avg
sql: ${TABLE}.cpp
- measure: avg_ctr
type: avg
sql: ${TABLE}.ctr
- measure: avg_frequency
type: avg
sql: ${TABLE}.frequency
- measure: total_impressions
type: sum
sql: ${TABLE}.impressions
- measure: total_reach
type: sum
sql: ${TABLE}.reach
- measure: total_spend
type: sum
sql: ${TABLE}.spend
#############################################################################################
## FOR MORE GRANULAR ANALYSIS
# - dimension: app_store_clicks
# type: number
# sql: ${TABLE}.app_store_clicks
#
# - dimension: canvas_avg_view_percent
# type: number
# sql: ${TABLE}.canvas_avg_view_percent
#
# - dimension: canvas_avg_view_time
# type: number
# sql: ${TABLE}.canvas_avg_view_time
#
# - dimension: cost_per_estimated_ad_recallers
# type: number
# sql: ${TABLE}.cost_per_estimated_ad_recallers
#
# - dimension: cost_per_total_action
# type: number
# sql: ${TABLE}.cost_per_total_action
#
# - dimension: deeplink_clicks
# type: number
# sql: ${TABLE}.deeplink_clicks
#
# - dimension: estimated_ad_recall_rate
# type: number
# sql: ${TABLE}.estimated_ad_recall_rate
#
# - dimension: estimated_ad_recall_rate_lower_bound
# type: number
# sql: ${TABLE}.estimated_ad_recall_rate_lower_bound
#
# - dimension: estimated_ad_recall_rate_upper_bound
# type: number
# sql: ${TABLE}.estimated_ad_recall_rate_upper_bound
#
# - dimension: social_clicks
# type: number
# sql: ${TABLE}.social_clicks
#
# - dimension: social_impressions
# type: number
# sql: ${TABLE}.social_impressions
#
# - dimension: social_reach
# type: number
# sql: ${TABLE}.social_reach
## INLINE AND UNIQUE
# - dimension: cost_per_inline_link_click
# type: number
# sql: ${TABLE}.cost_per_inline_link_click
#
# - dimension: cost_per_inline_post_engagement
# type: number
# sql: ${TABLE}.cost_per_inline_post_engagement
#
# - dimension: cost_per_unique_click
# type: number
# sql: ${TABLE}.cost_per_unique_click
#
# - dimension: cost_per_unique_inline_link_click
# type: number
# sql: ${TABLE}.cost_per_unique_inline_link_click
#
# - dimension: inline_link_click_ctr
# type: number
# sql: ${TABLE}.inline_link_click_ctr
#
# - dimension: inline_link_clicks
# type: number
# sql: ${TABLE}.inline_link_clicks
#
# - dimension: inline_post_engagement
# type: number
# sql: ${TABLE}.inline_post_engagement
#
# - dimension: total_unique_actions
# type: number
# sql: ${TABLE}.total_unique_actions
#
# - dimension: unique_clicks
# type: number
# sql: ${TABLE}.unique_clicks
#
# - dimension: unique_ctr
# type: number
# sql: ${TABLE}.unique_ctr
#
# - dimension: unique_impressions
# type: number
# sql: ${TABLE}.unique_impressions
#
# - dimension: unique_inline_link_click_ctr
# type: number
# sql: ${TABLE}.unique_inline_link_click_ctr
#
# - dimension: unique_inline_link_clicks
# type: number
# sql: ${TABLE}.unique_inline_link_clicks
#
# - dimension: unique_link_clicks_ctr
# type: number
# sql: ${TABLE}.unique_link_clicks_ctr
#
# - dimension: unique_social_clicks
# type: number
# sql: ${TABLE}.unique_social_clicks
#
# - dimension: unique_social_impressions
# type: number
# sql: ${TABLE}.unique_social_impressions