-
Notifications
You must be signed in to change notification settings - Fork 8
/
google_ad_cost_per_dou.view.lkml
39 lines (34 loc) · 1.14 KB
/
google_ad_cost_per_dou.view.lkml
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
view: google_ad_cost_per_dou {
derived_table: {
sql: SELECT
ad_cost_breakdowns.campaign_name AS ad_cost_breakdowns_campaign_name,
SUM(ad_cost_breakdowns.campaign_spend_in_micros) AS ad_cost_breakdowns_measure_campaign_spend_in_micros,
SUM(ad_cost_breakdowns.dous) AS ad_cost_breakdowns_measure_dous
FROM `moz-fx-data-shared-prod.fenix_derived.google_ads_campaign_cost_breakdowns_v1` AS ad_cost_breakdowns
GROUP BY
1
ORDER BY
2 DESC
LIMIT 500
;;
}
measure: count {
type: count
drill_fields: [detail*]
}
dimension: ad_cost_breakdowns_campaign_name {
type: string
sql: ${TABLE}.ad_cost_breakdowns_campaign_name ;;
}
dimension: ad_cost_breakdowns_measure_campaign_spend_in_micros {
type: number
sql: ${TABLE}.ad_cost_breakdowns_measure_campaign_spend_in_micros ;;
}
dimension: ad_cost_breakdowns_measure_dous {
type: number
sql: ${TABLE}.ad_cost_breakdowns_measure_dous ;;
}
set: detail {
fields: [ad_cost_breakdowns_campaign_name, ad_cost_breakdowns_measure_campaign_spend_in_micros, ad_cost_breakdowns_measure_dous]
}
}