Skip to content

Commit

Permalink
Merge pull request #71 from fivetran/bugfix/twitter-microsoft-keyword…
Browse files Browse the repository at this point in the history
…s-search

Bugfix/twitter microsoft keywords search
  • Loading branch information
fivetran-joemarkiewicz authored Nov 30, 2022
2 parents 8c30e5d + 97ca1de commit fad212a
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 10 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# dbt_ad_reporting v1.0.4
## Feature Enhancement
- The `keyword_id` field (which is a surrogate key generated from the combination of 'account_id', 'line_item_id', 'segment', and 'placement' fields within the Twitter Ads source) has been added to the `ad_reporting__keyword_report` model for the Twitter Ads platform. ([#71](https://github.com/fivetran/dbt_ad_reporting/pull/71))

## Bugfixes
- The `not_null` test on the `ad_reporting__keyword_report` has been adjusted to be tested on the `keyword_id` as opposed to the `keyword_text`. This is needed as there may be times where keyword historical records may be removed and lose reference in an upstream join. As such, the text may be lost and the null test should be applied to the ID instead. ([#71](https://github.com/fivetran/dbt_ad_reporting/pull/71))

## Contributors
- [@clay-walker](https://github.com/clay-walker) for being instrumental in understanding and addressing this issue. ([#63](https://github.com/fivetran/dbt_ad_reporting/issues/63))

# dbt_ad_reporting v1.0.2-v1.0.3

## 🕷️ Bugfixes 🕷️
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'ad_reporting'
version: '1.0.3'
version: '1.0.4'
config-version: 2

require-dbt-version: [">=1.0.0", "<2.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'ad_reporting_integration_tests'
version: '1.0.3'
version: '1.0.4'
profile: 'integration_tests'
config-version: 2

Expand Down
6 changes: 3 additions & 3 deletions models/ad_reporting_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ models:
combination_of_columns:
- platform
- date_day
- keyword_text
- keyword_id
- keyword_match_type
- ad_group_id
- campaign_id
Expand All @@ -167,10 +167,10 @@ models:
description: '{{ doc("ad_group_name") }}'
- name: keyword_id
description: '{{ doc("keyword_id") }}'
- name: keyword_text
description: '{{ doc("keyword_text") }}'
tests:
- not_null
- name: keyword_text
description: '{{ doc("keyword_text") }}'
- name: keyword_match_type
description: '{{ doc("keyword_match_type") }}'
- name: clicks
Expand Down
2 changes: 1 addition & 1 deletion models/intermediate/int_ad_reporting__keyword_report.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ twitter_ads as (
field_mapping={
'ad_group_id': 'line_item_id',
'ad_group_name': 'line_item_name',
'keyword_id': 'null',
'keyword_id': 'keyword_id',
'keyword_text': 'keyword',
'keyword_match_type': 'null'
},
Expand Down
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ packages:
version: [">=0.2.0", "<0.3.0"]

- package: fivetran/twitter_ads
version: [">=0.5.0", "<0.6.0"]
version: [">=0.5.0", "<0.6.0"]

0 comments on commit fad212a

Please sign in to comment.