Fivetran's ad reporting dbt package. Combine your Facebook, Google, Pinterest, LinkedIn, Twitter, Snapchat, Microsoft, TikTok, Reddit, Amazon, and Apple Search advertising metrics using this package.
- [ ] BigQuery
- [ ] Redshift
- [X] Snowflake
- [ ] Postgres
- [ ] Databricks
- [ ] Other (provide details below)
**Additional context**
In the get_ad_stats_columns macro in google_ads_source package a lot of columns didn't have an alias specified properly and instead used the staging column name as the alias name which didn't match with the source fields.
Example: AD_ID = ID in the source table
Data Error:
![image](https://user-images.githubusercontent.com/94551079/144096074-dd0105bd-3228-4356-b8c4-ff8e5bf5a370.png)
Original get_ad_stats_columns macro:
![image](https://user-images.githubusercontent.com/94551079/144096519-a21a8830-41e9-4ef5-8e3f-5973860775b3.png)
What is needs to be corrected:
![image](https://user-images.githubusercontent.com/94551079/144096347-ad25c016-f6fd-4e64-ab14-16d262b2f910.png)
**Screenshots**
Please indicate the level of urgency
Medium/High. Performing a POC
Are you interested in contributing to this package?
[x] Yes, I can do this and open a PR for your review.
[ ] Possibly, but I'm not quite sure how to do this. I'd be happy to do a live coding session with someone to get this fixed.
[ ] No, I'd prefer if someone else fixed this. I don't have the time and/or don't know what the root cause of the problem is.
Are you a current Fivetran customer? Chris Soule, Data Architect Interworks
Describe the bug In the Ad_Reporting model there was no Account, AdGroup, or Campaign data in the table even though it is in the source.
Steps to reproduce
Expected behavior Account, AdGroup, or Campaign data carried forward to the final Ad_Reporting model
Project variables configuration
Package Version
Warehouse
- [ ] BigQuery - [ ] Redshift - [X] Snowflake - [ ] Postgres - [ ] Databricks - [ ] Other (provide details below) **Additional context** In the get_ad_stats_columns macro in google_ads_source package a lot of columns didn't have an alias specified properly and instead used the staging column name as the alias name which didn't match with the source fields. Example: AD_ID = ID in the source table Data Error: ![image](https://user-images.githubusercontent.com/94551079/144096074-dd0105bd-3228-4356-b8c4-ff8e5bf5a370.png) Original get_ad_stats_columns macro: ![image](https://user-images.githubusercontent.com/94551079/144096519-a21a8830-41e9-4ef5-8e3f-5973860775b3.png) What is needs to be corrected: ![image](https://user-images.githubusercontent.com/94551079/144096347-ad25c016-f6fd-4e64-ab14-16d262b2f910.png) **Screenshots**Please indicate the level of urgency Medium/High. Performing a POC
Are you interested in contributing to this package?