-
Notifications
You must be signed in to change notification settings - Fork 2
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 #6 from fivetran/feature/api-v3-updates
feature/api-v3-updates
- Loading branch information
Showing
20 changed files
with
112 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
# dbt_amazon_ads v0.UPDATE.UPDATE | ||
# dbt_amazon_ads v0.2.0 | ||
[PR #6](https://github.com/fivetran/dbt_amazon_ads/pull/6) includes the following updates: | ||
## 🚨 Breaking changes | ||
- This release is labeled breaking since changes made in [dbt_amazon_ads_source](https://github.com/fivetran/dbt_amazon_ads_source) are breaking. Note that columns in this package are unchanged. | ||
- Further details are available in the [dbt_amazon_ads_source CHANGELOG](https://github.com/fivetran/dbt_amazon_ads_source/blob/main/CHANGELOG.md). | ||
## 🎉 Features | ||
- Updated documentation to reference changes in the source package. | ||
|
||
## Under the Hood: | ||
## 🚘 Under the Hood | ||
- Updated testing seed data to reflect the source seed changes. | ||
|
||
[PR #4](https://github.com/fivetran/dbt_amazon_ads/pull/4) includes the following updates: | ||
- Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. | ||
- Updated the pull request [templates](/.github). | ||
|
||
# dbt_amazon_ads v0.1.0 | ||
🎉 This is the initial release of this package! 🎉 | ||
## 📣 What does this dbt package do? | ||
- Produces modeled tables that leverage Amazon Ads data from [Fivetran's connector](https://fivetran.com/docs/applications/amazon-ads) in the format described by [this ERD](https://fivetran.com/docs/applications/amazon-ads#schemainformation) and builds off the output of our [Amazon Ads source package](https://github.com/fivetran/dbt_amazon_ads_source). | ||
- Provides insight into your ad performance across the following grains: | ||
- Account, portfolio, campaign, ad group, ad, keyword, and search term | ||
- Materializes output models designed to work simultaneously with our [multi-platform Ad Reporting package](https://github.com/fivetran/dbt_ad_reporting). | ||
- Generates a comprehensive data dictionary of your source and modeled Amazon Ads data through the [dbt docs site](https://fivetran.github.io/dbt_amazon_ads/). | ||
- Generates a comprehensive data dictionary of your source and modeled Amazon Ads data through the [dbt docs site](https://fivetran.github.io/dbt_amazon_ads/). |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,11 +1,11 @@ | ||
ad_group_id,date,_fivetran_synced,campaign_bidding_strategy,clicks,cost,cost_per_click,impressions | ||
501,2022-12-03,2022-12-13 11:35:56.905000,legacy,0,0.0,0.0,88 | ||
501,2022-12-04,2022-12-13 11:35:56.908000,legacy,0,0.0,0.0,111 | ||
501,2022-12-01,2022-12-13 11:35:56.899000,legacy,0,0.0,0.0,252 | ||
501,2022-11-25,2022-12-13 11:31:52.129000,legacy,0,0.0,0.0,289 | ||
501,2022-12-11,2022-12-13 17:20:57.420000,legacy,2,2.01,1.0050000000000000,502 | ||
501,2022-11-18,2022-12-13 11:26:56.575000,legacy,1,0.54,0.54,163 | ||
501,2022-12-02,2022-12-13 11:35:56.902000,legacy,0,0.0,0.0,116 | ||
501,2022-11-19,2022-12-13 11:26:56.577000,legacy,0,0.0,0.0,232 | ||
501,2022-11-24,2022-12-13 11:31:52.126000,legacy,1,1.45,1.45,267 | ||
501,2022-12-07,2022-12-13 17:20:57.402000,legacy,2,3.76,1.88,335 | ||
ad_group_id,date,_fivetran_synced,campaign_bidding_strategy,clicks,cost,impressions | ||
501,2022-12-03,2022-12-13 11:35:56.905000,legacy,0,0.0,88 | ||
501,2022-12-04,2022-12-13 11:35:56.908000,legacy,0,0.0,111 | ||
501,2022-12-01,2022-12-13 11:35:56.899000,legacy,0,0.0,252 | ||
501,2022-11-25,2022-12-13 11:31:52.129000,legacy,0,0.0,289 | ||
501,2022-12-11,2022-12-13 17:20:57.420000,legacy,2,2.01,502 | ||
501,2022-11-18,2022-12-13 11:26:56.575000,legacy,1,0.54,163 | ||
501,2022-12-02,2022-12-13 11:35:56.902000,legacy,0,0.0,116 | ||
501,2022-11-19,2022-12-13 11:26:56.577000,legacy,0,0.0,232 | ||
501,2022-11-24,2022-12-13 11:31:52.126000,legacy,1,1.45,267 | ||
501,2022-12-07,2022-12-13 17:20:57.402000,legacy,2,3.76,335 |
22 changes: 11 additions & 11 deletions
22
integration_tests/seeds/advertised_product_report_data.csv
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,11 +1,11 @@ | ||
ad_group_id,ad_id,campaign_id,date,_fivetran_synced,campaign_budget_amount,campaign_budget_currency_code,campaign_budget_type,click_through_rate,clicks,cost,cost_per_click,impressions | ||
501,8108,5555,2022-12-10,2022-12-13 17:17:13.167000,250.0,USD,DAILY_BUDGET,1.2048192771084300,2,2.53,1.265,166 | ||
501,8108,5555,2022-12-06,2022-12-13 17:17:13.017000,250.0,USD,DAILY_BUDGET,4.0,3,5.29,1.7633333333333300,75 | ||
421,77,2187,2022-08-20,2022-10-14 11:39:03.648000,2000.0,USD,DAILY_BUDGET,0.0,3,3.79,1.2633333333333300,1310 | ||
421,77,2187,2022-08-24,2022-10-14 11:40:58.005000,2000.0,USD,DAILY_BUDGET,0.0,3,9.34,3.1133333333333300,1262 | ||
421,77,2187,2022-08-16,2022-10-14 12:05:39.966000,2000.0,USD,DAILY_BUDGET,0.0,4,4.95,1.2375,1450 | ||
421,77,2187,2022-07-12,2022-10-14 12:07:22.930000,2000.0,USD,DAILY_BUDGET,0.0,62,172.54,2.7829032258064500,42144 | ||
421,77,2187,2022-08-19,2022-10-14 11:39:03.336000,2000.0,USD,DAILY_BUDGET,0.0,1,1.03,1.03,1359 | ||
421,77,2187,2022-08-17,2022-10-14 11:39:04.433000,2000.0,USD,DAILY_BUDGET,0.0,2,2.95,1.475,1345 | ||
421,77,2187,2022-07-13,2022-10-14 12:07:22.961000,2000.0,USD,DAILY_BUDGET,0.0,68,179.19,2.6351470588235300,60317 | ||
421,88,2187,2022-07-13,2022-10-14 12:07:22.961000,2000.0,USD,DAILY_BUDGET,0.0,26,50.25,1.9326923076923100,6111 | ||
ad_group_id,ad_id,campaign_id,date,_fivetran_synced,campaign_budget_amount,campaign_budget_currency_code,campaign_budget_type,clicks,cost,impressions, advertised_asin, advertised_sku | ||
501,8108,5555,2022-12-10,2022-12-13 17:17:13.167000,250.0,USD,DAILY_BUDGET,2,2.53,166,, | ||
501,8108,5555,2022-12-06,2022-12-13 17:17:13.017000,250.0,USD,DAILY_BUDGET,3,5.29,75,, | ||
421,77,2187,2022-08-20,2022-10-14 11:39:03.648000,2000.0,USD,DAILY_BUDGET,3,3.79,1310,, | ||
421,77,2187,2022-08-24,2022-10-14 11:40:58.005000,2000.0,USD,DAILY_BUDGET,3,9.34,1262,, | ||
421,77,2187,2022-08-16,2022-10-14 12:05:39.966000,2000.0,USD,DAILY_BUDGET,4,4.95,1450,, | ||
421,77,2187,2022-07-12,2022-10-14 12:07:22.930000,2000.0,USD,DAILY_BUDGET,62,172.54,42144,, | ||
421,77,2187,2022-08-19,2022-10-14 11:39:03.336000,2000.0,USD,DAILY_BUDGET,1,1.03,1359,, | ||
421,77,2187,2022-08-17,2022-10-14 11:39:04.433000,2000.0,USD,DAILY_BUDGET,2,2.95,1345,, | ||
421,77,2187,2022-07-13,2022-10-14 12:07:22.961000,2000.0,USD,DAILY_BUDGET,68,179.19,60317,, | ||
421,88,2187,2022-07-13,2022-10-14 12:07:22.961000,2000.0,USD,DAILY_BUDGET,26,50.25,6111,, |
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,7 +1,7 @@ | ||
id,last_updated_date,_fivetran_synced,bidding_strategy,campaign_type,creation_date,daily_budget,end_date,name,placement,portfolio_id,premium_bid_adjustment,profile_id,serving_status,start_date,state,targeting_type | ||
2187,2022-08-25 15:36:51.687000,2022-12-13 17:09:00.337000,autoForSales,sponsoredProducts,2022-07-11 22:38:16.327000,2000,,Gold Leader,,1138,false,66,CAMPAIGN_PAUSED,2022-07-11,paused,manual | ||
2187,2022-07-14 11:58:58.857000,2022-08-09 11:09:43.874000,autoForSales,sponsoredProducts,2022-07-11 22:38:16.327000,2000,,Gold Leader,,1138,false,66,CAMPAIGN_PAUSED,2022-07-11,paused,manual | ||
2187,2022-07-11 22:38:16.327000,2022-07-12 11:07:55.188000,autoForSales,sponsoredProducts,2022-07-11 22:38:16.327000,300,,Red Leader,,1138,false,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual | ||
2187,2022-07-12 21:19:35.684000,2022-07-14 11:08:04.632000,autoForSales,sponsoredProducts,2022-07-11 22:38:16.327000,2000,,Gold Leader,,1138,false,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual | ||
2187,2022-07-12 16:31:38.031000,2022-07-12 17:07:58.108000,autoForSales,sponsoredProducts,2022-07-11 22:38:16.327000,1000,,Gold Leader,,1138,true,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual | ||
2187,2022-08-09 12:31:52.823000,2022-08-25 11:14:09.762000,autoForSales,sponsoredProducts,2022-07-11 22:38:16.327000,2000,,Gold Leader,,1138,false,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual | ||
id,last_updated_date,_fivetran_synced,bidding_strategy,creation_date,budget,end_date,name,portfolio_id,profile_id,serving_status,start_date,state,targeting_type,budget_type,effective_budget | ||
2187,2022-08-25 15:36:51.687000,2022-12-13 17:09:00.337000,autoForSales,2022-07-11 22:38:16.327000,2000,,Gold Leader,1138,66,CAMPAIGN_PAUSED,2022-07-11,paused,manual,daily, | ||
2187,2022-07-14 11:58:58.857000,2022-08-09 11:09:43.874000,autoForSales,2022-07-11 22:38:16.327000,2000,,Gold Leader,1138,66,CAMPAIGN_PAUSED,2022-07-11,paused,manual,daily, | ||
2187,2022-07-11 22:38:16.327000,2022-07-12 11:07:55.188000,autoForSales,2022-07-11 22:38:16.327000,300,,Red Leader,1138,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual,daily, | ||
2187,2022-07-12 21:19:35.684000,2022-07-14 11:08:04.632000,autoForSales,2022-07-11 22:38:16.327000,2000,,Gold Leader,1138,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual,daily, | ||
2187,2022-07-12 16:31:38.031000,2022-07-12 17:07:58.108000,autoForSales,2022-07-11 22:38:16.327000,1000,,Gold Leader,1138,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual,daily, | ||
2187,2022-08-09 12:31:52.823000,2022-08-25 11:14:09.762000,autoForSales,2022-07-11 22:38:16.327000,2000,,Gold Leader,1138,66,CAMPAIGN_STATUS_ENABLED,2022-07-11,enabled,manual,daily, |
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,11 +1,11 @@ | ||
campaign_id,date,_fivetran_synced,campaign_applicable_budget_rule_id,campaign_applicable_budget_rule_name,campaign_bidding_strategy,campaign_budget_amount,campaign_budget_currency_code,campaign_budget_type,click_through_rate,clicks,cost,cost_per_click,impressions | ||
2187,2022-07-26,2022-10-14 11:54:40.980000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-07-21,2022-10-14 11:52:57.796000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-08-29,2022-10-14 11:40:45.808000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-08-31,2022-10-14 11:42:29.065000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-07-27,2022-10-14 11:54:40.980000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-08-28,2022-10-14 11:40:45.807000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-09-06,2022-10-14 11:42:29.062000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-07-11,2022-10-14 12:07:12.424000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0.0,2,1.67,0.835,1095 | ||
2187,2022-07-15,2022-10-14 12:07:12.428000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
2187,2022-07-18,2022-10-14 11:52:57.802000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,,0,0.0,0.0,0 | ||
campaign_id,date,_fivetran_synced,campaign_applicable_budget_rule_id,campaign_applicable_budget_rule_name,campaign_bidding_strategy,campaign_budget_amount,campaign_budget_currency_code,campaign_budget_type,clicks,cost,impressions,campaign_rule_based_budget_amount | ||
2187,2022-07-26,2022-10-14 11:54:40.980000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-07-21,2022-10-14 11:52:57.796000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-08-29,2022-10-14 11:40:45.808000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-08-31,2022-10-14 11:42:29.065000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-07-27,2022-10-14 11:54:40.980000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-08-28,2022-10-14 11:40:45.807000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-09-06,2022-10-14 11:42:29.062000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-07-11,2022-10-14 12:07:12.424000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET0.0,2,1.67,1095, | ||
2187,2022-07-15,2022-10-14 12:07:12.428000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,0.0,, | ||
2187,2022-07-18,2022-10-14 11:52:57.802000,,,optimizeForSales,2000.0,USD,DAILY_BUDGET,0,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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
id,last_updated_date,_fivetran_synced,ad_group_id,bid,campaign_id,creation_date,keyword_text,match_type,native_language_keyword,serving_status,state | ||
1234,2022-07-11 22:38:16.775000,2022-07-13 11:12:56.827000,421,5.0,2187,2022-07-11 22:38:16.775000,b wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled | ||
1234,2022-07-13 15:21:15.060000,2022-12-13 17:11:43.865000,421,5.5,2187,2022-07-11 22:38:16.775000,b wing parts,exact,,CAMPAIGN_PAUSED,enabled | ||
5678,2022-07-11 22:38:16.771000,2022-12-13 17:11:43.865000,421,5.0,2187,2022-07-11 22:38:16.771000,y wing parts,exact,,CAMPAIGN_PAUSED,enabled | ||
9101112,2022-07-13 15:21:15.063000,2022-07-13 17:11:54.368000,421,5.5,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled | ||
9101112,2022-07-13 19:41:32.006000,2022-12-13 17:11:43.865000,421,6.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,CAMPAIGN_PAUSED,enabled | ||
9101112,2022-07-12 08:44:49.919000,2022-07-12 11:11:08.697000,421,8.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled | ||
9101112,2022-07-12 16:31:54.290000,2022-07-12 17:10:04.567000,421,6.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled | ||
9101112,2022-07-11 22:38:16.770000,2022-07-12 05:09:30.233000,421,5.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled | ||
9101112,2022-07-12 21:16:58.353000,2022-07-13 11:12:56.827000,421,4.5,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled | ||
id,last_updated_date,_fivetran_synced,ad_group_id,bid,campaign_id,creation_date,keyword_text,match_type,native_language_keyword,serving_status,state,native_language_locale | ||
1234,2022-07-11 22:38:16.775000,2022-07-13 11:12:56.827000,421,5.0,2187,2022-07-11 22:38:16.775000,b wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled, | ||
1234,2022-07-13 15:21:15.060000,2022-12-13 17:11:43.865000,421,5.5,2187,2022-07-11 22:38:16.775000,b wing parts,exact,,CAMPAIGN_PAUSED,enabled, | ||
5678,2022-07-11 22:38:16.771000,2022-12-13 17:11:43.865000,421,5.0,2187,2022-07-11 22:38:16.771000,y wing parts,exact,,CAMPAIGN_PAUSED,enabled, | ||
9101112,2022-07-13 15:21:15.063000,2022-07-13 17:11:54.368000,421,5.5,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled, | ||
9101112,2022-07-13 19:41:32.006000,2022-12-13 17:11:43.865000,421,6.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,CAMPAIGN_PAUSED,enabled, | ||
9101112,2022-07-12 08:44:49.919000,2022-07-12 11:11:08.697000,421,8.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled, | ||
9101112,2022-07-12 16:31:54.290000,2022-07-12 17:10:04.567000,421,6.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled, | ||
9101112,2022-07-11 22:38:16.770000,2022-07-12 05:09:30.233000,421,5.0,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled, | ||
9101112,2022-07-12 21:16:58.353000,2022-07-13 11:12:56.827000,421,4.5,2187,2022-07-11 22:38:16.770000,x wing parts,exact,,TARGETING_CLAUSE_STATUS_LIVE,enabled, |
Oops, something went wrong.