-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update/ad reporting v2 #21
Conversation
This PR will actually also close out Issue #12 |
fivetran-joemarkiewicz
left a comment
•
edited by fivetran-sheringuyen
Loading
edited by fivetran-sheringuyen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-sheringuyen thanks so much for putting this PR together and taking on the mighty task of combining the creative history and this package! These updates are looking great, I do have a few comments I would like for you to address before approving the PR:
- Address the inline comments within this review
- I noticed in the end models the records can have a
null
record for clicks, but there are also records for0
. This doesn't seem to be the same forimpressions
andspend
. Should we convert thesenull
records to be0
? Or what is the difference betweennull
and0
clicks in this case? - Open a FR for us to integrate the remaining creative history models into this package. In the meantime within the FR we can point users to the creative history package to replicate the models in the meantime.
- I notice we don't have any tests or yml documentation for the creative history models. Can we port them over to ensure we are still applying the same tests we were previously.
- What is your stance on renaming the models that were moved from
dbt_facebook_ads_creative_history
tostg_
instead ofint_
?- Since I could see people using them as staging models, I wonder if it would make more sense to name them as such, but obviously keep the logic in the transformation package.
- Otherwise, what are your thoughts on making them final models that users can reference. Simply because I see these models being leveraged on their own, and it may be confusing to name them as intermediate. Thoughts?
packages.yml
Outdated
## UPDATE ON RELEASE | ||
- git: https://github.com/fivetran/dbt_facebook_ads_source.git | ||
revision: update/ad-reporting-v2 | ||
warn-unpinned: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just commenting to make sure we update on release 😄
Hey @fivetran-joemarkiewicz, I've just committed the PR fixes you've requested, let me know if you want to discuss further! Regarding your question:
I agree that people could definitely use them so I think it would make sense to create them as their own final models. With the one model (
Additionally, as per our conversation last week, I believe we spoke about keeping
in the |
packages.yml
Outdated
## PRE-RELEASE PACKAGES | ||
- git: https://github.com/fivetran/dbt_facebook_ads_source.git | ||
revision: update/ad-reporting-v2 | ||
warn-unpinned: false | ||
|
||
## RELEASE PACKAGES | ||
# - package: fivetran/facebook_ads_creative_history | ||
# version: [">=0.4.0", "<0.5.0"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will also want to cut a release for this package then to have the new source package as a dependency on the updated source package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to go!!! Thanks so much @fivetran-sheringuyen
Running comments before merge:
|
Pull Request
Are you a current Fivetran customer?
What change(s) does this PR introduce?
facebook_ads__ad_report
that reportsspend
,clicks
andimpressions
at the ad level.facebook_ads__ad_adapter
model tofacebook_ads__utm_report
to more accurately reflect what is included in the report; this report now also filters for only records that have valid URLs.README
updates for easier navigation and use of the package.dbt_facebook_ads_creative_history.stg_facebook_ads__url_tag
directly into this package via the use of theget_url_tag_query
macro as an intermediate model calledint_facebook_ads__url_tags
.facebook_ads__creative_history_prep
model toint_facebook_ads__creative_history
to conform with new styling standards.Did you update the CHANGELOG?
Does this PR introduce a breaking change?
Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)
Is this PR in response to a previously created Bug or Feature Request
How did you test the PR changes?
Select which warehouse(s) were used to test the PR
Provide an emoji that best describes your current mood
💃
Feedback
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.