-
Notifications
You must be signed in to change notification settings - Fork 20
/
src_google_ads.yml
272 lines (259 loc) · 12.2 KB
/
src_google_ads.yml
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
version: 2
sources:
- name: google_ads # This source will only be used if you are using a single google_ads source connector. If multiple sources are being unioned, their tables will be directly referenced via adapter.get_relation.
schema: "{{ var('google_ads_schema', 'google_ads') }}"
database: "{% if target.type != 'spark' %}{{ var('google_ads_database', target.database) }}{% endif %}"
loader: Fivetran
loaded_at_field: _fivetran_synced
freshness:
warn_after: {count: 48, period: hour}
error_after: {count: 168, period: hour}
config:
enabled: "{{ var('ad_reporting__google_ads_enabled', true) }}"
tables:
- name: ad_stats
description: Each record represents the daily performance of an ad in Google Ads broken down to the ad network, device type, and ad group criterion.
identifier: "{{ var('google_ads_ad_stats_identifier', 'ad_stats') }}"
columns:
- name: customer_id
description: "{{ doc('external_customer_id') }}"
- name: date
description: "{{ doc('date') }}"
- name: ad_group
description: "{{ doc('ad_group_id') }}"
- name: ad_id
description: "{{ doc('ad_id') }}"
- name: campaign_id
description: "{{ doc('campaign_id') }}"
- name: ad_network_type
description: "{{ doc('ad_network_type') }}"
- name: device
description: "{{ doc('device') }}"
- name: keyword_ad_group_criterion
description: The ad group which the keyword criterion resides.
- name: clicks
description: "{{ doc('clicks') }}"
- name: cost_micros
description: "{{ doc('cost') }}"
- name: impressions
description: "{{ doc('impressions') }}"
- name: conversions
description: "{{ doc('conversions') }}"
- name: conversions_value
description: "{{ doc('conversions_value') }}"
- name: view_through_conversions
description: "{{ doc('view_through_conversions') }}"
- name: ad_history
description: Each record represents a version of an ad in Google Ads.
identifier: "{{ var('google_ads_ad_history_identifier', 'ad_history') }}"
columns:
- name: ad_group_id
description: "{{ doc('ad_group_id') }}"
- name: id
description: "{{ doc('ad_id') }}"
- name: updated_at
description: "{{ doc('updated_at') }}"
- name: display_url
description: The display url of the ad that is being served.
- name: type
description: "{{ doc('ad_type') }}"
- name: status
description: "{{ doc('ad_status') }}"
- name: final_urls
description: A list of urls that are used for the ad.
- name: _fivetran_active
description: Boolean representing whether the state of the record is currently active.
- name: ad_group_history
description: Each record represents a version of an ad group in Google Ads.
identifier: "{{ var('google_ads_ad_group_history_identifier', 'ad_group_history') }}"
columns:
- name: id
description: "{{ doc('ad_group_id') }}"
- name: updated_at
description: "{{ doc('updated_at') }}"
- name: type
description: "{{ doc('ad_group_type') }}"
- name: campaign_id
description: "{{ doc('campaign_id') }}"
- name: campaign_name
description: "{{ doc('campaign_name') }}"
- name: name
description: "{{ doc('ad_group_name') }}"
- name: status
description: "{{ doc('ad_group_status') }}"
- name: _fivetran_active
description: Boolean representing whether the state of the record is currently active.
- name: campaign_history
description: Each record represents a version of a campaign in Google Ads.
identifier: "{{ var('google_ads_campaign_history_identifier', 'campaign_history') }}"
columns:
- name: id
description: "{{ doc('campaign_id') }}"
- name: updated_at
description: "{{ doc('updated_at') }}"
- name: ad_network_type
description: "{{ doc('ad_network_type') }}"
- name: advertising_channel_type
description: The type of advertising channel being used by the campaign.
- name: advertising_channel_subtype
description: The advertising channel subtype that is being used by the campaign.
- name: start_date
description: The start date of the campaign.
- name: end_date
description: The end date of the campaign.
- name: serving_status
description: Status of the ads and how they are currently being served.
- name: status
description: General status of the campaign.
- name: tracking_url_template
description: The tracking url template being used throughout the campaign ads.
- name: device
description: "{{ doc('device') }}"
- name: name
description: "{{ doc('campaign_name') }}"
- name: customer_id
description: "{{ doc('external_customer_id') }}"
- name: _fivetran_active
description: Boolean representing whether the state of the record is currently active.
- name: account_history
description: Each record represents a historical version of an account in Google Ads.
identifier: "{{ var('google_ads_account_history_identifier', 'account_history') }}"
columns:
- name: id
description: "{{ doc('account_id') }}"
- name: currency_code
description: The currency of the spend reported.
- name: auto_tagging_enabled
description: Boolean indicating if auto tagging is enabled on the account ads.
- name: time_zone
description: The time zone of the account ads.
- name: descriptive_name
description: "{{ doc('account_descriptive_name') }}"
- name: updated_at
description: "{{ doc('updated_at') }}"
- name: _fivetran_active
description: Boolean representing whether the state of the record is currently active.
- name: ad_group_criterion_history
description: Each record represents a historical version of an ad group criterion in Google Ads.
identifier: "{{ var('google_ads_ad_group_criterion_history_identifier', 'ad_group_criterion_history') }}"
columns:
- name: id
description: Unique identifier of the ad group criterion.
- name: ad_group_id
description: "{{ doc('ad_group_id') }}"
- name: base_campaign_id
description: "{{ doc('campaign_id') }}"
- name: updated_at
description: "{{ doc('updated_at') }}"
- name: type
description: The type of ad group criterion.
- name: status
description: The current status of the ad group criterion.
- name: keyword_match_type
description: The match type which dictate how closely the keyword needs to match with the user’s search query so that the ad can be considered for the auction.
- name: keyword_text
description: The text used within the keyword criterion that is being matched against.
- name: _fivetran_active
description: Boolean representing whether the state of the record is currently active.
- name: ad_group_stats
description: Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.
identifier: "{{ var('google_ads_ad_group_stats_identifier', 'ad_group_stats') }}"
columns:
- name: customer_id
description: "{{ doc('external_customer_id') }}"
- name: date
description: "{{ doc('date') }}"
- name: id
description: "{{ doc('ad_group_id') }}"
- name: ad_network_type
description: "{{ doc('ad_network_type') }}"
- name: device
description: "{{ doc('device') }}"
- name: campaign_id
description: "{{ doc('campaign_id') }}"
- name: clicks
description: "{{ doc('clicks') }}"
- name: cost_micros
description: "{{ doc('cost') }}"
- name: impressions
description: "{{ doc('impressions') }}"
- name: conversions
description: "{{ doc('conversions') }}"
- name: conversions_value
description: "{{ doc('conversions_value') }}"
- name: view_through_conversions
description: "{{ doc('view_through_conversions') }}"
- name: campaign_stats
description: Each record represents the daily performance of a campaign in Google Ads broken down to the ad network and device type.
identifier: "{{ var('google_ads_campaign_stats_identifier', 'campaign_stats') }}"
columns:
- name: customer_id
description: "{{ doc('external_customer_id') }}"
- name: date
description: "{{ doc('date') }}"
- name: id
description: "{{ doc('campaign_id') }}"
- name: clicks
description: "{{ doc('clicks') }}"
- name: cost_micros
description: "{{ doc('cost') }}"
- name: impressions
description: "{{ doc('impressions') }}"
- name: conversions
description: "{{ doc('conversions') }}"
- name: conversions_value
description: "{{ doc('conversions_value') }}"
- name: view_through_conversions
description: "{{ doc('view_through_conversions') }}"
- name: keyword_stats
description: Each record represents the daily performance of a keyword in Google Ads.
identifier: "{{ var('google_ads_keyword_stats_identifier', 'keyword_stats') }}"
columns:
- name: customer_id
description: "{{ doc('external_customer_id') }}"
- name: date
description: "{{ doc('date') }}"
- name: ad_group_id
description: "{{ doc('ad_group_id') }}"
- name: _fivetran_id
description: The unique ID of the keyword record.
- name: campaign_id
description: "{{ doc('campaign_id') }}"
- name: ad_group_criterion_criterion_id
description: Reference to the ad group criterion used for the keyword.
- name: clicks
description: "{{ doc('clicks') }}"
- name: cost_micros
description: "{{ doc('cost') }}"
- name: impressions
description: "{{ doc('impressions') }}"
- name: conversions
description: "{{ doc('conversions') }}"
- name: conversions_value
description: "{{ doc('conversions_value') }}"
- name: view_through_conversions
description: "{{ doc('view_through_conversions') }}"
- name: account_stats
description: Each record represents the daily performance of an account in Google Ads broken down to the ad network and device type.
identifier: "{{ var('google_ads_account_stats_identifier', 'account_stats') }}"
columns:
- name: customer_id
description: "{{ doc('external_customer_id') }}"
- name: date
description: "{{ doc('date') }}"
- name: ad_network_type
description: "{{ doc('ad_network_type') }}"
- name: device
description: "{{ doc('device') }}"
- name: clicks
description: "{{ doc('clicks') }}"
- name: cost_micros
description: "{{ doc('cost') }}"
- name: impressions
description: "{{ doc('impressions') }}"
- name: conversions
description: "{{ doc('conversions') }}"
- name: conversions_value
description: "{{ doc('conversions_value') }}"
- name: view_through_conversions
description: "{{ doc('view_through_conversions') }}"