-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from fivetran/release/v1.0.1
release/v1.0.1
- Loading branch information
Showing
7 changed files
with
272 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dbt-snowflake~=1.0.0 | ||
dbt-bigquery~=1.0.0 | ||
dbt-redshift~=1.0.0 | ||
dbt-postgres~=1.0.0 | ||
dbt-spark~=1.0.0 | ||
dbt-spark[PyHive]~=1.0.0 | ||
dbt-snowflake>=1.0.0 | ||
dbt-bigquery>=1.0.0 | ||
dbt-redshift>=1.0.0 | ||
dbt-postgres>=1.0.0 | ||
dbt-spark>=1.0.0 | ||
dbt-spark[PyHive]>=1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
version: 2 | ||
|
||
metrics: | ||
- name: spend | ||
label: Ad spend (Fivetran) | ||
model: ref('ad_reporting__ad_report') | ||
|
||
type: sum | ||
sql: spend | ||
description: Total spend (in currency of individual platforms) | ||
|
||
timestamp: date_day | ||
time_grains: [day, week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- ad_id | ||
- ad_name | ||
- account_id | ||
- account_name | ||
|
||
- name: clicks | ||
label: Ad clicks (Fivetran) | ||
model: ref('ad_reporting__ad_report') | ||
|
||
type: sum | ||
sql: clicks | ||
description: Total clicks | ||
|
||
timestamp: date_day | ||
time_grains: [day, week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- ad_id | ||
- ad_name | ||
- account_id | ||
- account_name | ||
|
||
- name: impressions | ||
label: Ad impressions (Fivetran) | ||
model: ref('ad_reporting__ad_report') | ||
description: Total impressions | ||
|
||
type: sum | ||
sql: impressions | ||
|
||
timestamp: date_day | ||
time_grains: [day, week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- ad_id | ||
- ad_name | ||
- account_id | ||
- account_name | ||
|
||
- name: cost_per_click | ||
label: Average ad cost per click (Fivetran) | ||
description: The ratio of spend to clicks | ||
|
||
type: expression | ||
sql: "{{ metric('spend') }} / {{ metric('clicks') }}" | ||
|
||
timestamp: date_day | ||
time_grains: [day, week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- ad_id | ||
- ad_name | ||
- account_id | ||
- account_name | ||
|
||
- name: bounce_rate | ||
label: Average Ad Bounce Rate (Fivetran) | ||
description: Percentage of impressions that did not convert into clicks. | ||
|
||
type: expression | ||
sql: "({{ metric('impressions') }} - {{ metric('clicks') }}) / {{ metric('impressions') }}" | ||
|
||
timestamp: date_day | ||
time_grains: [day, week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- ad_id | ||
- ad_name | ||
- account_id | ||
- account_name | ||
|
||
- name: clickthrough_rate | ||
label: Ad Clickthrough Rate (Fivetran) | ||
description: Percentage of impressions that did convert into clicks. | ||
|
||
type: expression | ||
sql: "{{ metric('clicks') }} / {{ metric('impressions') }}" | ||
|
||
timestamp: date_day | ||
time_grains: [day, week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- ad_id | ||
- ad_name | ||
- account_id | ||
- account_name | ||
|
||
- name: active_ads | ||
label: Count of Active Ads (Fivetran) | ||
model: ref('ad_reporting__ad_report') | ||
description: Count of ads witth spend > 0. | ||
|
||
type: count_distinct | ||
sql: ad_id | ||
|
||
timestamp: date_day | ||
time_grains: [day, week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- account_id | ||
- account_name | ||
|
||
filters: | ||
- field: spend | ||
operator: '>' | ||
value: '0' | ||
|
||
- name: avg_spend_nonzero | ||
label: Average Spend, Ignore Zeros (Fivetran) | ||
model: ref('ad_reporting__ad_report') | ||
description: Average ad spend, ignores zero-spend days. | ||
|
||
type: average | ||
sql: spend | ||
|
||
timestamp: date_day | ||
time_grains: [week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- account_id | ||
- account_name | ||
|
||
filters: | ||
- field: spend | ||
operator: '>' | ||
value: '0' | ||
|
||
- name: avg_spend | ||
label: Average Spend (Fivetran) | ||
model: ref('ad_reporting__ad_report') | ||
description: Average ad spend, does not ignore zero-spend days. | ||
|
||
type: average | ||
sql: spend | ||
|
||
timestamp: date_day | ||
time_grains: [week, month] | ||
|
||
dimensions: | ||
- platform | ||
- campaign_id | ||
- campaign_name | ||
- ad_group_id | ||
- ad_group_name | ||
- account_id | ||
- account_name |
File renamed without changes.