Skip to content
Merged
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# dbt_ad_reporting v2.6.1

[PR #180](https://github.com/fivetran/dbt_ad_reporting/pull/180) includes the following updates:

## Bug Fixes
- Fixes macro argument types

# dbt_ad_reporting v2.6.0

[PR #176](https://github.com/fivetran/dbt_ad_reporting/pull/176) includes the following updates:
Expand Down
11 changes: 7 additions & 4 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'ad_reporting'
version: '2.6.0'
version: '2.6.1'

config-version: 2

Expand All @@ -17,8 +17,11 @@ vars:

models:
ad_reporting:
+materialized: table
+schema: ad_reporting
+materialized: table
+schema: ad_reporting
intermediate:
+materialized: ephemeral
+schema: int_ad_reporting
+schema: int_ad_reporting

flags:
validate_macro_args: true
3 changes: 2 additions & 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: '2.6.0'
version: '2.6.1'
profile: 'integration_tests'
config-version: 2

Expand Down Expand Up @@ -984,3 +984,4 @@ seeds:
flags:
send_anonymous_usage_stats: False
use_colors: True
validate_macro_args: True
18 changes: 9 additions & 9 deletions macros/macros_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
macros:
- name: get_date_from_timestamp
description: This macro takes a column of type timestamp or forces the column into a timestamp (depending on the data warehouse) and extracts the date in the format of e.g. 2022-01-01.
arguments:
arguments:
- name: column
type: string
description: Specifies the column of type timestamp to extract the date from.
Expand All @@ -12,12 +12,12 @@ macros:
description: This macro evaluates all `ad_reporting__<platform>_enabled` variables in the user's `dbt_project.yml` and returns a list of packages that are enabled.
arguments:
- name: exclude
type: list
type: optional[list[string]]
description: This argument is optional and is the list of platforms to exclude in the enabled package evaluation.
- name: include
type: list
type: optional[list[string]]
description: This argument is optional and is the list of platforms to include in the enabled package evaluation.

- name: get_query
description: This macro compiles the final query with all aliasing and casting incorporated.
arguments:
Expand All @@ -33,20 +33,20 @@ macros:
description: >
A dictionary that specifies any column name overriding as necessary since standard names in Ad Reporting may map to a different name as it appears natively within each platform. Each key will have exactly one corresponding string value; if a value is NULL then it will map to the string 'null'.
- name: relation
description: >
description: >
This is a reference to the upstream model that the query will be selecting from; an example argument would look like this: relation=ref('tiktok_ads__advertiser_report').

- name: is_enabled
description: This macro takes in a list of packages and determines if there is at least one package, if there is, it returns True, else false.
arguments:
- name: enabled_packages
type: list
type: list[string]
description: List of packages enabled where each package name is a string.

- name: union_ctes
description: This macro allows for the unioning (union all) of specified CTEs.
arguments:
- name: ctes
type: list
type: optional[list[string]]
description: List of strings for CTE names