forked from pipeline-looker-blocks/facebookads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
insights_placement_and_device.view.lookml
259 lines (219 loc) · 5.93 KB
/
insights_placement_and_device.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
249
250
251
252
253
254
255
256
257
258
259
- view: ad_insights_by_placement_and_device
sql_table_name: looker_facebook.facebook_ads_insights_placement_and_device_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: 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_group: date_start
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.date_start
- dimension_group: date_stop
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.date_stop
- dimension: frequency
type: number
sql: ${TABLE}.frequency
- dimension: impression_device
type: string
sql: ${TABLE}.impression_device
- dimension: impressions
type: number
sql: ${TABLE}.impressions
- dimension: placement
type: string
sql: ${TABLE}.placement
- dimension: reach
type: number
sql: ${TABLE}.reach
- dimension: spend
type: number
sql: ${TABLE}.spend
- dimension: actions
type: number
sql: ${TABLE}.total_actions
## AGGREGATE MEASURES
- measure: count
type: count
drill_fields: []
- measure: total_clicks
type: sum
sql: ${TABLE}.clicks
drill_fields: [impression_device, placement]
- 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
drill_fields: [impression_device, placement]
- measure: total_spend
type: sum
sql: ${TABLE}.spend
drill_fields: [impression_device, placement]
- measure: total_actions
type: sum
sql: ${TABLE}.total_actions
drill_fields: [impression_device, placement]
###################################################################################################
## ADDITIONAL FIELDS
# - 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#b0a03a58e5208dd36f40763db0e6f40c"
#
# - 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
#
# - dimension: total_action_value
# type: number
# sql: ${TABLE}.total_action_value
#
# - dimension: website_clicks
# type: number
# sql: ${TABLE}.website_clicks
## INLINE AND UNIQUE
# - dimension: cost_per_inline_link_click
# type: number
# sql: ${TABLE}."cost_per_inline_link_click#01932ca7b21eb72c1e10d6cb906d6b36"
#
# - dimension: cost_per_inline_post_engagement
# type: number
# sql: ${TABLE}."cost_per_inline_post_engagement#b9ab6d658c7c6e740e14ecb3dc29cc24"
#
# - dimension: cost_per_unique_click
# type: number
# sql: ${TABLE}."cost_per_unique_click#36f150a496864f4cac200309ab821f20"
#
# - dimension: cost_per_unique_inline_link_click
# type: number
# sql: ${TABLE}."cost_per_unique_inline_link_click#642bc76819bf60d45bab4e4a16f2673c"
#
# - dimension: inline_link_click_ctr
# type: number
# sql: ${TABLE}."inline_link_click_ctr#bba584e0926a49cd69a4ddb7b53ac72c"
#
# - 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#de2cc78c3d04232015542fb4d5b75dce"
#
# - dimension: unique_impressions
# type: number
# sql: ${TABLE}.unique_impressions
#
# - dimension: unique_inline_link_click_ctr
# type: number
# sql: ${TABLE}."unique_inline_link_click_ctr#e963e1e4e1f43888ae87c79cf2d6bb9e"
#
# - 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#aa48a871d5a64cab44a6be0bcd25a441"
#
# - dimension: unique_social_clicks
# type: number
# sql: ${TABLE}.unique_social_clicks
#
# - dimension: unique_social_impressions
# type: number
# sql: ${TABLE}.unique_social_impressions