This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
account.view.lkml
89 lines (79 loc) · 1.55 KB
/
account.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
explore: account_fb_adapter {
persist_with: facebook_ads_etl_datagroup
hidden: yes
}
view: account_fb_adapter {
sql_table_name: (
SELECT
'1' as id,
'Facebook' as name,
'ACTIVE' as account_status,
CURRENT_DATE as created_time,
'USD' as currency,
0 as min_campaign_group_spend_cap,
0 as min_daily_budget,
0 as timezone_id,
'NA' as timezone_name,
0 as timezone_offset_hours_utc
) ;;
dimension: id {
hidden: yes
}
dimension: account_status {
hidden: yes
type: string
}
dimension: status_active {
hidden: yes
type: yesno
sql: ${account_status} = 'ACTIVE' ;;
}
dimension_group: created {
hidden: yes
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}.created_time ;;
}
dimension: currency {
hidden: yes
type: string
sql: ${TABLE}.currency ;;
}
dimension: min_campaign_group_spend_cap {
hidden: yes
type: number
sql: ${TABLE}.min_campaign_group_spend_cap ;;
}
dimension: min_daily_budget {
hidden: yes
type: number
sql: ${TABLE}.min_daily_budget ;;
}
dimension: name {
type: string
hidden: yes
}
dimension: timezone_id {
hidden: yes
type: number
sql: ${TABLE}.timezone_id ;;
}
dimension: timezone_name {
hidden: yes
type: string
sql: ${TABLE}.timezone_name ;;
}
dimension: timezone_offset_hours_utc {
hidden: yes
type: number
sql: ${TABLE}.timezone_offset_hours_utc ;;
}
}