-
Notifications
You must be signed in to change notification settings - Fork 7
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
v5 API support #26
v5 API support #26
Conversation
I think the reason buildkite is failing is because we don't have the new data, therefore I haven't replaced the seed data used for integration testing. Which means on the joins to advertiser_id (which is the ad_account_id in source tables), are null |
holding off on docs regen til PR is complete |
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-reneeli I just have a few comments to be applied before this is good to go.
Additionally, I wanted to get your thoughts on possibly leveraging the advertiser_id
(what is ad_account_id
in the source) in the transform model joins. For example, in the pin_promotion_report we currently bring in the advertiser details via a connections from the pin_promotion_report -> campaigns -> advertiser.
In theory, we could leverage this new advertiser_id
brought in from the source to perform the joins for the advertiser table. However, I am a bit wary to do this as we do not currently have data to fully validate. Therefore, I am a bit hesitant to make this update although it may be more optimized. What are your thoughts?
CHANGELOG.md
Outdated
|---|---|---| | ||
| [pinterest_ads__advertiser_report](https://fivetran.github.io/dbt_pinterest/#!/model/model.pinterest.pinterest_ads__advertiser_report) | `billing_type`, `status` | | | ||
|
||
- In the v5 upgrade, `advertiser_id` has been replaced by `ad_account_id`. However, to keep our Pinterest Ads package standard with our other ad packages, we have kept it as `advertiser_id`. |
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.
Same comment from the source. I think this should be reworded to be more in line with the updates applied.
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.
updated!
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.
Same small note from the source package review about updating this to be more in line with the actual updates.
packages.yml
Outdated
revision: feature/pinterest_v5_API_support | ||
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.
Reminder to switch before merge and release.
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-reneeli in addition to updating this before merging I realized the README has not been updated with this package new version as well as the dependency matrix needs to be updated to point to the new source package range. Please update those before merging or kicking off the release process.
Hey @fivetran-joemarkiewicz I think I see what you mean-- now that While we don't have the data to test this, I think this makes the more logical sense, so I'm happy with making the change |
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-reneeli thanks for working through these updates! This almost looks good to go! I have one remaining comment here, as well as a final comment where I didn't realize the README wasn't updated to point to the new version of the package and also update the dependency matrix. Please update those before kicking off the release process.
As those are small changes, I am comfortable approving this PR!
packages.yml
Outdated
revision: feature/pinterest_v5_API_support | ||
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.
@fivetran-reneeli in addition to updating this before merging I realized the README has not been updated with this package new version as well as the dependency matrix needs to be updated to point to the new source package range. Please update those before merging or kicking off the release process.
Co-authored-by: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com>
PR Overview
This PR will address the following Issue/Feature:
fivetran/dbt_pinterest_source#24
This PR will result in the following new package version: v0.8.0
Removal of deprecated fields
Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:
billing_type
,status
advertiser_id
has been replaced byad_account_id
. However, to keep our Pinterest Ads package standard with our other ad packages, we have kept it asadvertiser_id
.PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as "ready for review" the following have been applied:
Detailed Validation
Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review":
dbt run and review github docs to ensure fields have been removed
Standard Updates
Please acknowledge that your PR contains the following standard updates:
dbt Docs
Please acknowledge that after the above were all completed the below were applied to your branch:
If you had to summarize this PR in an emoji, which would it be?
💃