Skip to content

Commit

Permalink
Add basic null validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aphethean1 committed Sep 12, 2024
1 parent c615228 commit 25bea9d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion models/googleads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ models:
- name: googleads_vw_campaign_performance_gender_and_device
description: Google ads campaign performance by gender and device
- name: googleads_vw_campaign_performance_location
description: Google ads campaign performance by locaion
description: Google ads campaign performance by location
- name: googleads_vw_campaign_performance
description: Google ads overall campaign performance
27 changes: 27 additions & 0 deletions models/googleads_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,33 @@ sources:
description: Google ads source table created by Matatika's tap-googleads
schema: "{{ env_var('DBT_SOURCE_SCHEMA') }}"
tables:
tables:
- name: stream_campaign
description: Source table for campaigns.
columns:
- name: campaign__id
description: Campaign primary key
tests:
- not_null
- name: campaign__name
description: A non unique campaign name
tests:
- not_null
- name: customer_id
description: Customer linked to the campaign
tests:
- not_null
- name: stream_adgroups
description: Source table for ad groups.
columns:
- name: ad_group__id
description: Ad group primary key
tests:
- not_null
- name: ad_group__name
description: A non unique ad group name
tests:
- not_null
- name: stream_adgroupsperformance
description: Source table of Google Ads ad group performance
- name: stream_campaign_performance_by_age_range_and_device
Expand Down

0 comments on commit 25bea9d

Please sign in to comment.