Skip to content

Commit 15e391d

Browse files
Merge pull request #32 from fivetran/release/v0.5.1
Release/v0.5.1
2 parents f58becc + 2afd3aa commit 15e391d

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# dbt_ad_reporting v0.5.1
2+
## Feature Additions
3+
- Added the `account_name` and `account_id` to the `stg_snapchat_ads` model. This will allow for the relevant Snapchat Ads account information to flow downstream into the final `ad_reporting` model. ([#30](https://github.com/fivetran/dbt_ad_reporting/pull/30))
4+
5+
## Under the Hood
6+
- Cast the `account_id` and `external_account_id` as strings within the `stg_google_ads` model.
7+
8+
# Contributors
9+
- @csoule-shaker ([#30](https://github.com/fivetran/dbt_ad_reporting/pull/30))
10+
- @csoule1622 ([#30](https://github.com/fivetran/dbt_ad_reporting/pull/30))
11+
12+
# dbt_ad_reporting v0.1.0 -> v0.5.0
13+
Refer to the relevant release notes on the Github repository for specific details for the previous releases. Thank you!

dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'ad_reporting'
2-
version: '0.5.0'
2+
version: '0.5.1'
33
config-version: 2
44

55
require-dbt-version: [">=0.20.0"]

integration_tests/dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'ad_reporting_integration_tests'
2-
version: '0.5.0'
2+
version: '0.5.1'
33
profile: 'integration_tests'
44
config-version: 2
55

models/stg_google_ads.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ with base as (
1111
'Google Ads' as platform,
1212
cast(date_day as date) as date_day,
1313
account_name,
14-
{% if var('api_source','adwords') == 'google_ads' %} account_id {% else %} external_customer_id as account_id {% endif %} ,
14+
{% if var('api_source','adwords') == 'google_ads' %} cast(account_id as {{ dbt_utils.type_string() }}) as account_id {% else %} cast(external_customer_id as {{ dbt_utils.type_string() }}) as account_id {% endif %} ,
1515
campaign_name,
1616
cast(campaign_id as {{ dbt_utils.type_string() }}) as campaign_id,
1717
ad_group_name,

models/stg_snapchat_ads.sql

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ with base as (
88
), fields as (
99

1010
select
11+
ad_account_name as account_name,
12+
cast(ad_account_id as {{ dbt_utils.type_string() }}) as account_id,
1113
cast(date_day as date) as date_day,
1214
base_url,
1315
url_host,
@@ -26,7 +28,7 @@ with base as (
2628
sum(coalesce(impressions, 0)) as impressions,
2729
sum(coalesce(spend, 0)) as spend
2830
from base
29-
{{ dbt_utils.group_by(14) }}
31+
{{ dbt_utils.group_by(16) }}
3032

3133

3234
)

0 commit comments

Comments
 (0)