Skip to content

Commit

Permalink
documentation/basic-ad-update
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-joemarkiewicz committed Nov 2, 2023
1 parent 3af5d05 commit 13a54d7
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/add-2nd-reviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: '2nd reviewer'
on:
pull_request_review:
types: [submitted]

jobs:
auto_assign_reviewer:
if: github.event.review.state == 'approved'
uses: fivetran/dbt_package_automations/.github/workflows/add-2nd-reviewer.yml
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'auto release'
on:
pull_request:
types:
- closed
branches:
- main

jobs:
call-workflow-passing-data:
if: github.event.pull_request.merged
uses: fivetran/dbt_package_automations/.github/workflows/auto-release.yml
secrets: inherit
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# dbt_facebook_ads_source v0.7.1

[PR #31](https://github.com/fivetran/dbt_facebook_ads_source/pull/31) includes the following updates:
## Documentation Updates
- The prerequisite steps for generating the `basic_ad` pre-built report have been modified to reflect the current state of the Facebook Ads connector.
- Adds the [DECISIONLOG](DECISIONLOG.md) to clarify why there exist differences among aggregations across different grains.

# dbt_facebook_ads v0.7.0
[PR #34](https://github.com/fivetran/dbt_facebook_ads/pull/34) includes the following updates:
## Feature update 🎉
Expand Down
7 changes: 6 additions & 1 deletion DECISIONLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ Currently, your UTM report will only include:
For source history tables that provide a `updated_at` field, the most recent record in the respective history tables are calculated using `updated_at`; otherwise, we use `_fivetran_synced` as a proxy field to calculate the most recent record.

## Passing Through Metrics Not Available
Please note that additional pass through metrics are only available for the source models as additional metrics such as `cpc`, `cpm` and `ctr` are already aggregated metrics that should not be rolled up into higher levels of reporting.
Please note that additional pass through metrics are only available for the source models as additional metrics such as `cpc`, `cpm` and `ctr` are already aggregated metrics that should not be rolled up into higher levels of reporting.

## Why don't metrics add up across different grains (Ex. ad level vs campaign level)?
Not all ads are served at the ad level. In other words, there are some ads that are served only at the ad group, campaign, etc. levels. The implications are that since not ads are included in the ad-level report, their associated spend, for example, won't be included at that grain. Therefore your spend totals may differ across the ad grain and another grain.

This is a reason why we have broken out the ad reporting packages into separate hierarchical end models (Ad, Ad Group, Campaign, and more). Because if we only used ad-level reports, we could be missing data.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,10 @@ To use this dbt package, you must have the following:

- At least one Fivetran Facebook Ads connector syncing data into your destination.
- A **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL**, or **Databricks** destination.
- You will need to configure your Facebook Ads connector to pull the `BASIC_AD` pre-built report. Follow the below steps in the Fivetran UI to do so:
1. Navigate to the connector setup form (**Setup** -> **Edit connection details** for pre-existing connectors)
2. Click **Add table**
3. Select **Pre-built Report**
4. Set the table name to `basic_ad`
5. Select `BASIC_AD` as the corresponding pre-built report
6. Select a daily aggregation period
7. Click **Ok** and **Save & test**!
- You will need to configure your Facebook Ads connector to pull the `basic_ad` pre-built report. This pre-built report should be enabled in your connector by default. However, to confirm this pre-built report is actively syncing you may perform the following steps:
1. Navigate to the connector schema tab.
2. Search for `basic_ad` and confirm it is selected.
3. If not selected, do so and sync. If already selected you are ready to run the models!

### 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` packages respectively.
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'facebook_ads'
version: '0.7.0'
version: '0.7.1'
config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]
models:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'facebook_ads_integration_tests'
version: '0.7.0'
version: '0.7.1'
profile: 'integration_tests'
config-version: 2

Expand Down

0 comments on commit 13a54d7

Please sign in to comment.