From aa5f3d9b7d2a88f5eff839e8a8c22e85bae72c7c Mon Sep 17 00:00:00 2001 From: fivetran-catfritz <111930712+fivetran-catfritz@users.noreply.github.com> Date: Thu, 16 Jan 2025 18:42:56 -0600 Subject: [PATCH] Feature: Add Quickstart Model Counts to README (#130) * MagicBot/add-model-counts updates * Update README.md * Update README.md * Update README.md * Update connector to connection --------- Co-authored-by: Avinash Kunnath Co-authored-by: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com> --- CHANGELOG.md | 2 ++ README.md | 32 ++++++++++++++++++++++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3652e82..4ba665f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # dbt_ad_reporting version.version ## Documentation +- Added Quickstart model counts to README. ([#130](https://github.com/fivetran/dbt_ad_reporting/pull/130)) +- Corrected references to connectors and connections in the README. ([#130](https://github.com/fivetran/dbt_ad_reporting/pull/130)) - Updated the [DECISIONLOG](https://github.com/fivetran/dbt_ad_reporting/blob/main/DECISIONLOG.md#timezone-considerations) and [README](https://github.com/fivetran/dbt_ad_reporting/blob/main/README.md#timezone-considerations) to include details about timezone differences across ad platforms. ([#131](https://github.com/fivetran/dbt_ad_reporting/pull/131)) # dbt_ad_reporting v1.11.0 diff --git a/README.md b/README.md index 30b1654..a54f739 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,33 @@ Refer to the table below for a detailed view of final tables materialized by def > The individual platform models may have additional platform-specific metrics and fields better suited for deep-dive analyses at the platform level. + +### Materialized Models + +Each Quickstart transformation job run materializes the following model counts for each selected connector. The total model count represents all staging, intermediate, and final models, materialized as `view`, `table`, or `incremental`: + +| **Connector** | **Model Count** | +| ------------- | --------------- | +| Ad Reporting | 8 | +| [Amazon Ads](https://github.com/fivetran/dbt_amazon_ads) | 30 | +| [Apple Search Ads](https://github.com/fivetran/dbt_apple_search_ads) | 26 | +| [Facebook Ads](https://github.com/fivetran/dbt_facebook_ads) | 24 | +| [Google Ads](https://github.com/fivetran/dbt_google_ads) | 26 | +| [LinkedIn Ad Analytics](https://github.com/fivetran/dbt_linkedin) | 17 | +| [Microsoft Advertising](https://github.com/fivetran/dbt_microsoft_ads) | 29 | +| [Pinterest Ads](https://github.com/fivetran/dbt_pinterest) | 26 | +| [Reddit Ads](https://github.com/fivetran/dbt_reddit_ads) | 29 | +| [Snapchat Ads](https://github.com/fivetran/dbt_snapchat_ads) | 23 | +| [TikTok Ads](https://github.com/fivetran/dbt_tiktok_ads) | 19 | +| [Twitter Ads](https://github.com/fivetran/dbt_twitter) | 26 | + ## Timezone Considerations Timezone differences across ad platforms impact standardization due to pre-aggregated data and non-standard timezones. See the [Decision Log - Timezone Considerations](https://github.com/fivetran/dbt_ad_reporting/blob/main/DECISIONLOG.md#timezone-considerations) for details. ## How do I use the dbt package? ### Step 1: Pre-Requisites -**Connector**: Have at least one of the below supported Fivetran ad platform connectors syncing data into your warehouse. This package currently supports: +- Have at least one of the below supported Fivetran ad platform connections syncing data into your destination. This package currently supports: - [Amazon Ads](https://fivetran.com/docs/applications/amazon-ads) - [Apple Search Ads](https://fivetran.com/docs/applications/apple-search-ads) - [Facebook Ads](https://fivetran.com/docs/applications/facebook-ads) @@ -64,7 +84,7 @@ Timezone differences across ad platforms impact standardization due to pre-aggre - [Twitter Ads](https://fivetran.com/docs/applications/twitter-ads) > While you need only one of the above connectors to utilize this package, we recommend having at least two to gain the rollup benefit of this package. -- **Database support**: This package has been tested on **BigQuery**, **Snowflake**, **Redshift**, **Postgres** and **Databricks**. Ensure you are using one of these supported databases. +- This package has been tested on **BigQuery**, **Snowflake**, **Redshift**, **Postgres** and **Databricks**. Ensure you are using one of these supported databases. #### Databricks Dispatch Configuration 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. @@ -90,7 +110,7 @@ Do NOT include the individual ad platform packages in this file. The ad reportin ### Step 3: Configure Database and Schema Variables -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 `_database` variables to your `dbt_project.yml` file (see below). +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 `_database` variables to your `dbt_project.yml` file (see below). ```yml vars: @@ -234,8 +254,8 @@ models: ### (Optional) Step 6: Additional configurations
Expand/Collapse details -#### Union multiple connectors -If you have multiple ad reporting connectors in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. The package will union all of the data together and pass the unioned table into the transformations. You will be able to see which source it came from in the `source_relation` column of each model. To use this functionality, you will need to set either the `_union_schemas` OR `_union_databases` variables (cannot do both) in your root `dbt_project.yml` file. Below are the variables and examples for each connector: +#### Union multiple connections +If you have multiple ad reporting connections in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. The package will union all of the data together and pass the unioned table into the transformations. You will be able to see which source it came from in the `source_relation` column of each model. To use this functionality, you will need to set either the `_union_schemas` OR `_union_databases` variables (cannot do both) in your root `dbt_project.yml` file. Below are the variables and examples for each connection: ```yml vars: @@ -464,7 +484,7 @@ vars:
#### Change the source table references -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. This is not available for sources in which you are unioning together multiple connectors. +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. This is not available for sources in which you are unioning together multiple connections. > 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. ```yml