Skip to content

Commit

Permalink
Feature: Add Quickstart Model Counts to README (#130)
Browse files Browse the repository at this point in the history
* MagicBot/add-model-counts updates

* Update README.md

* Update README.md

* Update README.md

* Update connector to connection

---------

Co-authored-by: Avinash Kunnath <[email protected]>
Co-authored-by: Avinash Kunnath <[email protected]>
  • Loading branch information
3 people authored Jan 17, 2025
1 parent a82f473 commit aa5f3d9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
32 changes: 26 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<!--section-end-->

## 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)
Expand All @@ -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.
Expand All @@ -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 `<connector>_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 `<connection>_database` variables to your `dbt_project.yml` file (see below).

```yml
vars:
Expand Down Expand Up @@ -234,8 +254,8 @@ models:
### (Optional) Step 6: Additional configurations
<details open><summary>Expand/Collapse details</summary>

#### 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 `<package_name>_union_schemas` OR `<package_name>_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 `<package_name>_union_schemas` OR `<package_name>_union_databases` variables (cannot do both) in your root `dbt_project.yml` file. Below are the variables and examples for each connection:

```yml
vars:
Expand Down Expand Up @@ -464,7 +484,7 @@ vars:
</details>

#### 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
Expand Down

0 comments on commit aa5f3d9

Please sign in to comment.