forked from pipeline-looker-blocks/facebookads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathads.view.lookml
67 lines (55 loc) · 1.37 KB
/
ads.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
- view: ads
sql_table_name: looker_facebook.facebook_ads_x
fields:
# API documentation here: https://developers.facebook.com/docs/marketing-api/reference/adgroup
- dimension: id
primary_key: true
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_info__actions
# description:
# type: number
# sql: ${TABLE}.bid_info__actions
#
# - dimension: bid_info__clicks
# description:
# type: number
# sql: ${TABLE}.bid_info__clicks
#
# - dimension: bid_info__reach
# description:
# type: number
# sql: ${TABLE}.bid_info__reach
#
# - dimension: bid_type
# description:
# type: string
# sql: ${TABLE}.bid_type
- dimension: campaign_id
type: string
sql: ${TABLE}.campaign_id
- dimension_group: created
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.created_time
- dimension: effective_status
type: string
sql: ${TABLE}.effective_status
- dimension: name
type: string
sql: ${TABLE}.name
- dimension: targeting__age_max
type: number
sql: ${TABLE}.targeting__age_max
- dimension: targeting__age_min
type: number
sql: ${TABLE}.targeting__age_min
- measure: count
type: count
drill_fields: [id, name]