-
Notifications
You must be signed in to change notification settings - Fork 12
/
facebook_ads.view.lkml
115 lines (97 loc) · 1.76 KB
/
facebook_ads.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
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
view: facebook_ads {
sql_table_name: facebook_ads.ads ;;
dimension: id {
primary_key: yes
type: string
sql: ${TABLE}.id ;;
}
dimension: account_id {
type: string
sql: ${TABLE}.account_id ;;
}
dimension: adset_id {
type: string
sql: ${TABLE}.adset_id ;;
}
dimension: bid_amount {
type: number
sql: ${TABLE}.bid_amount ;;
}
dimension: bid_type {
type: string
sql: ${TABLE}.bid_type ;;
}
dimension: campaign_id {
type: string
# hidden: yes
sql: ${TABLE}.campaign_id ;;
}
dimension: name {
type: string
sql: ${TABLE}.name ;;
}
dimension_group: received {
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.received_at ;;
}
dimension: status {
type: string
sql: ${TABLE}.status ;;
}
dimension: url_parameters {
type: string
sql: ${TABLE}.url_parameters ;;
}
dimension: utm_campaign {
type: string
sql: ${TABLE}.utm_campaign ;;
}
dimension: utm_content {
type: string
sql: ${TABLE}.utm_content ;;
}
dimension: utm_medium {
type: string
sql: ${TABLE}.utm_medium ;;
}
dimension: utm_source {
type: string
sql: ${TABLE}.utm_source ;;
}
dimension: utm_term {
type: string
sql: ${TABLE}.utm_term ;;
}
dimension_group: uuid_ts {
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.uuid_ts ;;
}
measure: count {
type: count
drill_fields: [id, name, campaigns.name]
}
measure: campaign_count {
view_label: "Campaigns"
type: count_distinct
sql: ${campaign_id} ;;
drill_fields: [campaigns.name]
}
}