-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgoogle_ads_group.view.lkml
137 lines (134 loc) · 4.65 KB
/
google_ads_group.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#####################################################################
# Owners: cesarenrique@, ivanantonio@, edherivan@
# Contact Method: Gchat/e-mail
# Created Date:
# Purpose: Created from Google Ads Transfer, specifically from Ads Group table.
#####################################################################
view: google_ads_group {
sql_table_name: `@{PROJECT_ID}.@{GADS_DATASET_NAME}.ads_AdGroup_@{GADS_CUSTOMER_ID}` ;;
dimension_group: _data {
type: time
timeframes: [raw, date, week, month, quarter, year]
convert_tz: no
datatype: date
sql: ${TABLE}._DATA_DATE ;;
}
dimension_group: _latest {
type: time
timeframes: [raw, date, week, month, quarter, year]
convert_tz: no
datatype: date
sql: ${TABLE}._LATEST_DATE ;;
}
dimension: ad_group_ad_rotation_mode {
description: "The ad rotation mode of the ad group."
type: string
sql: ${TABLE}.ad_group_ad_rotation_mode ;;
}
dimension: ad_group_cpc_bid_micros {
description: "The maximum CPC (cost-per-click) bid."
type: number
sql: ${TABLE}.ad_group_cpc_bid_micros ;;
}
dimension: ad_group_cpm_bid_micros {
description: "The maximum CPM (cost-per-thousand viewable impressions) bid."
type: number
sql: ${TABLE}.ad_group_cpm_bid_micros ;;
}
dimension: ad_group_cpv_bid_micros {
description: "The CPV (cost-per-view) bid."
type: number
sql: ${TABLE}.ad_group_cpv_bid_micros ;;
}
dimension: ad_group_display_custom_bid_dimension {
description: "Allows advertisers to specify a targeting dimension on which to place absolute bids. This is only applicable for campaigns that target only the display network and not search."
type: string
sql: ${TABLE}.ad_group_display_custom_bid_dimension ;;
}
dimension: ad_group_effective_target_cpa_micros {
description: "The effective target CPA (cost-per-acquisition)."
type: number
sql: ${TABLE}.ad_group_effective_target_cpa_micros ;;
}
dimension: ad_group_effective_target_cpa_source {
description: "Source of the effective target CPA. "
type: string
sql: ${TABLE}.ad_group_effective_target_cpa_source ;;
}
dimension: ad_group_effective_target_roas {
description: "The effective target ROAS (return-on-ad-spend)."
type: number
sql: ${TABLE}.ad_group_effective_target_roas ;;
}
dimension: ad_group_effective_target_roas_source {
description: "Source of the effective target ROAS. This field is read-only."
type: string
sql: ${TABLE}.ad_group_effective_target_roas_source ;;
}
dimension: ad_group_id {
description: "The ID of the ad group."
type: string
sql: CAST(${TABLE}.ad_group_id AS STRING);;
}
dimension: ad_group_name {
description: "The name of the ad group. "
type: string
sql: ${TABLE}.ad_group_name ;;
}
dimension: ad_group_status {
description: "The status of the ad group."
type: string
sql: ${TABLE}.ad_group_status ;;
}
dimension: ad_group_tracking_url_template {
description: "The URL template for constructing a tracking URL."
type: string
sql: ${TABLE}.ad_group_tracking_url_template ;;
}
dimension: ad_group_type {
description: "The type of the ad group."
type: string
sql: ${TABLE}.ad_group_type ;;
}
dimension: ad_group_url_custom_parameters {
description: "The list of mappings used to substitute custom parameter tags in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`."
type: string
sql: ${TABLE}.ad_group_url_custom_parameters ;;
}
dimension: campaign_bidding_strategy {
description: "Portfolio bidding strategy used by campaign. "
type: string
sql: ${TABLE}.campaign_bidding_strategy ;;
}
dimension: campaign_bidding_strategy_type {
description: "The type of bidding strategy. "
type: string
sql: ${TABLE}.campaign_bidding_strategy_type ;;
}
dimension: campaign_id {
description: "The ID of the campaign."
type: number
sql: ${TABLE}.campaign_id ;;
}
dimension: campaign_manual_cpc_enhanced_cpc_enabled {
description: "Whether bids are to be enhanced based on conversion optimizer data."
type: yesno
sql: ${TABLE}.campaign_manual_cpc_enhanced_cpc_enabled ;;
}
dimension: campaign_percent_cpc_enhanced_cpc_enabled {
description: "Adjusts the bid for each auction upward or downward, depending on the likelihood of a conversion."
type: yesno
sql: ${TABLE}.campaign_percent_cpc_enhanced_cpc_enabled ;;
}
dimension: customer_id {
description: "The ID of the customer."
primary_key: yes
type: number
sql: ${TABLE}.customer_id ;;
}
measure: count {
description: "Count of records."
type: count
drill_fields: [ad_group_name]
}
}