|
3 | 3 | href="https://github.com/fivetran/dbt_github/blob/main/LICENSE">
|
4 | 4 | <img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /></a>
|
5 | 5 | <a alt="dbt-core">
|
6 |
| - <img src="https://img.shields.io/badge/dbt_Core™_version->=1.0.0_<2.0.0-orange.svg" /></a> |
| 6 | + <img src="https://img.shields.io/badge/dbt_Core™_version->=1.3.0_<2.0.0-orange.svg" /></a> |
7 | 7 | <a alt="Maintained?">
|
8 | 8 | <img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" /></a>
|
9 | 9 | <a alt="PRs">
|
@@ -53,16 +53,25 @@ Refer to the table below for a detailed view of final models materialized by def
|
53 | 53 | - [TikTok Ads](https://fivetran.com/docs/applications/tiktok-ads)
|
54 | 54 | - [Twitter Ads](https://fivetran.com/docs/applications/twitter-ads)
|
55 | 55 | - **Database support**: This package has been tested on **BigQuery**, **Snowflake**, **Redshift**, **Postgres** and **Databricks**. Ensure you are using one of these supported databases.
|
56 |
| -- **dbt Version**: This dbt package requires you have a functional dbt project that utilizes a dbt version within the respective range `>=1.0.0, <2.0.0`. |
57 |
| -- For Facebook Ads compatibility, please ensure that you have configured the necessary pre-built reports. Please refer to the [Facebook Ads package](https://github.com/fivetran/dbt_facebook_ads/tree/main#step-1-prerequisites) for more information. |
| 56 | + |
| 57 | +### Databricks Dispatch Configuration |
| 58 | +If you are using a Databricks destination with this package you will need to add the below (or a variation of the below) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` as well as the `calogica/dbt_expectations` then the `google_ads_source` packages respectively. |
| 59 | +```yml |
| 60 | +dispatch: |
| 61 | + - macro_namespace: dbt_utils |
| 62 | + search_order: ['spark_utils', 'dbt_utils'] |
| 63 | + |
| 64 | + - macro_namespace: dbt_expectations |
| 65 | + search_order: ['google_ads_source', 'dbt_expectations'] |
| 66 | +``` |
58 | 67 |
|
59 | 68 | ## Step 2: Installing the Package
|
60 | 69 | Include the following github package version in your `packages.yml`
|
61 | 70 | > Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages.
|
62 | 71 | ```yaml
|
63 | 72 | packages:
|
64 | 73 | - package: fivetran/ad_reporting
|
65 |
| - version: [">=1.0.0", "<1.1.0"] |
| 74 | + version: [">=1.1.0", "<1.2.0"] |
66 | 75 | ```
|
67 | 76 | ## Step 3: Configure Database and Schema Variables
|
68 | 77 | By default, this package looks for your ad platform data in your target database. If this is not where your app platform data is stored, add the relevant `<connector>_database` variables to your `dbt_project.yml` file (see below).
|
@@ -188,6 +197,14 @@ models:
|
188 | 197 | <details><summary>Expand for details</summary>
|
189 | 198 | <br>
|
190 | 199 |
|
| 200 | +## Disabling null URL filtering from URL reports |
| 201 | +The default behavior for the `ad_reporting__url_report` end model is to filter out records having null URL fields, however, you are able to turn off this filter if needed. To turn off the filter, include the below in your `dbt_project.yml` file. This variable will affect ALL Fivetran platform packages enabled in Ad Reporting, therefore either all URL reports will have null URLs filtered, or all URL reports will have null URLs included. |
| 202 | + |
| 203 | +```yml |
| 204 | +vars: |
| 205 | + ad_reporting__url_report__using_null_filter: False # Default is True. |
| 206 | +``` |
| 207 | + |
191 | 208 | ### Change the source table references
|
192 | 209 | If an individual source table has a different name than the package expects, add the table name as it appears in your destination to the respective variable:
|
193 | 210 | > IMPORTANT: See the Apple Store [`dbt_project.yml`](https://github.com/fivetran/dbt_apple_store_source/blob/main/dbt_project.yml) and Google Play [`dbt_project.yml`](https://github.com/fivetran/dbt_google_play_source/blob/main/dbt_project.yml) variable declarations to see the expected names.
|
|
0 commit comments