Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion models/ad_reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ models:
- name: spend
description: The cost of the ads.

- name: ad_type
description: The type of ad.

- name: base_url
description: The base URL of the ad.

Expand All @@ -65,4 +68,4 @@ models:
description: The utm_term parameter of the ad.

- name: platform
description: The ad platform the records relate to.
description: The ad platform the records relate to.
3 changes: 2 additions & 1 deletion models/stg_google_ads.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ with base as (
cast(campaign_id as {{ dbt_utils.type_string() }}) as campaign_id,
ad_group_name,
cast(ad_group_id as {{ dbt_utils.type_string() }}) as ad_group_id,
ad_network_type_1 as ad_type,
base_url,
url_host,
url_path,
Expand All @@ -32,4 +33,4 @@ with base as (
)

select *
from fields
from fields
1 change: 1 addition & 0 deletions models/stg_linkedin_ads.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ with base as (
cast(campaign_group_id as {{ dbt_utils.type_string() }}) as campaign_id,
campaign_name as ad_group_name,
cast(campaign_id as {{ dbt_utils.type_string() }}) as ad_group_id,
type as ad_type,
base_url,
url_host,
url_path,
Expand Down
3 changes: 2 additions & 1 deletion models/stg_microsoft_ads.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ with base as (
cast(campaign_id as {{ dbt_utils.type_string() }}) as campaign_id,
ad_group_name,
cast(ad_group_id as {{ dbt_utils.type_string() }}) as ad_group_id,
type as ad_type,
base_url,
url_host,
url_path,
Expand All @@ -33,4 +34,4 @@ with base as (
)

select *
from fields
from fields