Skip to content

Commit 9ac3079

Browse files
Merge pull request #49 from fivetran/add_currency_field
add currency field
2 parents 6b3b0f1 + 0520cc5 commit 9ac3079

14 files changed

+48
-21
lines changed

CHANGELOG.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
# dbt_google_ads v0.UPDATE.UPDATE
1+
# dbt_google_ads v0.9.2
22

3-
## Under the Hood:
3+
## 🎉 Features 🎉
4+
- Added the column `currency_code` to the following models ([PR #49](https://github.com/fivetran/dbt_google_ads/pull/49)):
5+
- `google_ads__ad_group_report`
6+
- `google_ads__ad_report`
7+
- `google_ads__campaign_report`
8+
- `google_ads__keyword_report`
9+
- `google_ads__url_report`
10+
11+
## Under the Hood:
12+
13+
- Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. ([PR #46](https://github.com/fivetran/dbt_google_ads/pull/46))
14+
- Updated the pull request [templates](/.github). ([PR #46](https://github.com/fivetran/dbt_google_ads/pull/46))
15+
16+
## Contributors
17+
- [@asmundu](https://github.com/asmundu) ([PR #36](https://github.com/fivetran/dbt_google_ads/pull/36))
418

5-
- Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job.
6-
- Updated the pull request [templates](/.github).
719
# dbt_google_ads v0.9.1
820
## Bug fixes
921
- Adjusted keyword report to leverage the stats ids as opposed to the history ids to have more accurate reporting. ([PR #41](https://github.com/fivetran/dbt_google_ads/pull/41))

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'google_ads'
2-
version: '0.9.1'
2+
version: '0.9.2'
33

44
config-version: 2
55
require-dbt-version: [">=1.3.0", "<2.0.0"]

docs/catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/run_results.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

integration_tests/ci/sample.profiles.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ integration_tests:
1515
pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}"
1616
dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}"
1717
port: 5439
18-
schema: google_ads_integration_tests_30
18+
schema: google_ads_integration_tests_31
1919
threads: 8
2020
bigquery:
2121
type: bigquery
2222
method: service-account-json
2323
project: 'dbt-package-testing'
24-
schema: google_ads_integration_tests_30
24+
schema: google_ads_integration_tests_31
2525
threads: 8
2626
keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}"
2727
snowflake:
@@ -32,7 +32,7 @@ integration_tests:
3232
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
3333
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
3434
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
35-
schema: google_ads_integration_tests_30
35+
schema: google_ads_integration_tests_31
3636
threads: 8
3737
postgres:
3838
type: postgres
@@ -41,13 +41,13 @@ integration_tests:
4141
pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}"
4242
dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}"
4343
port: 5432
44-
schema: google_ads_integration_tests_30
44+
schema: google_ads_integration_tests_31
4545
threads: 8
4646
databricks:
4747
catalog: null
4848
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
4949
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
50-
schema: google_ads_integration_tests_30
50+
schema: google_ads_integration_tests_31
5151
threads: 2
5252
token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}"
5353
type: databricks

integration_tests/dbt_project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: 'google_ads_integration_tests'
2-
version: '0.9.1'
2+
version: '0.9.2'
33

44
profile: 'integration_tests'
55
config-version: 2
66

77
vars:
8-
google_ads_schema: google_ads_integration_tests_30
8+
google_ads_schema: google_ads_integration_tests_31
99
google_ads_ad_stats_identifier: "ad_stats_data"
1010
google_ads_ad_history_identifier: "ad_history_data"
1111
google_ads_ad_group_history_identifier: "ad_group_history_data"

models/google_ads.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ models:
1919
description: "{{ doc('account_descriptive_name') }}"
2020
- name: account_id
2121
description: "{{ doc('external_customer_id') }}"
22+
- name: currency_code
23+
description: The currency which the account uses.
2224
- name: campaign_name
2325
description: "{{ doc('campaign_name') }}"
2426
- name: campaign_id
@@ -100,6 +102,8 @@ models:
100102
description: "{{ doc('account_descriptive_name') }}"
101103
- name: account_id
102104
description: "{{ doc('external_customer_id') }}"
105+
- name: currency_code
106+
description: The currency which the account uses.
103107
- name: campaign_name
104108
description: "{{ doc('campaign_name') }}"
105109
- name: campaign_id
@@ -136,6 +140,8 @@ models:
136140
description: "{{ doc('account_descriptive_name') }}"
137141
- name: account_id
138142
description: "{{ doc('external_customer_id') }}"
143+
- name: currency_code
144+
description: The currency which the account uses.
139145
- name: campaign_name
140146
description: "{{ doc('campaign_name') }}"
141147
- name: campaign_id
@@ -179,6 +185,8 @@ models:
179185
description: "{{ doc('account_descriptive_name') }}"
180186
- name: account_id
181187
description: "{{ doc('external_customer_id') }}"
188+
- name: currency_code
189+
description: The currency which the account uses.
182190
- name: campaign_name
183191
description: "{{ doc('campaign_name') }}"
184192
- name: campaign_id
@@ -213,6 +221,8 @@ models:
213221
description: "{{ doc('account_descriptive_name') }}"
214222
- name: account_id
215223
description: "{{ doc('external_customer_id') }}"
224+
- name: currency_code
225+
description: The currency which the account uses.
216226
- name: campaign_name
217227
description: "{{ doc('campaign_name') }}"
218228
- name: campaign_id

models/google_ads__ad_group_report.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ fields as (
3333
stats.date_day,
3434
accounts.account_name,
3535
accounts.account_id,
36+
accounts.currency_code,
3637
campaigns.campaign_name,
3738
campaigns.campaign_id,
3839
ad_groups.ad_group_name,
@@ -52,7 +53,7 @@ fields as (
5253
on ad_groups.campaign_id = campaigns.campaign_id
5354
left join accounts
5455
on campaigns.account_id = accounts.account_id
55-
{{ dbt_utils.group_by(9) }}
56+
{{ dbt_utils.group_by(10) }}
5657
)
5758

5859
select *

0 commit comments

Comments
 (0)