Skip to content
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

Feature/conversions #7

Merged
merged 23 commits into from
Oct 24, 2024
Merged

Feature/conversions #7

merged 23 commits into from
Oct 24, 2024

Conversation

fivetran-reneeli
Copy link
Collaborator

@fivetran-reneeli fivetran-reneeli commented Oct 10, 2024

PR Overview

This PR will address the following Issue/Feature:
introduce conversion metrics

This PR will result in the following new package version:

Breaking change. Adding new fields

Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

dbt_reddit_ads_source v0.3.0

PR #7 includes the following updates:

Feature: Conversion Metrics

  • Introduces 4 new staging models to bring in conversion metrics across different grains:
    • stg_reddit_ads__account_conversions_report
    • stg_reddit_ads__ad_group_conversions_report
    • stg_reddit_ads__ad_conversions_report
    • stg_reddit_ads__campaign_conversions_report
  • These models bring in conversions (click-through conversions) and view-through conversions, in addition to total items and total value, for each day and respective grain.
  • We use the maximum attribution window when considering conversions and therefore retrieve conversions metrics from the click_through_conversion_attribution_window_month and view_through_conversion_attribution_window_month fields in the respective source tables. You may bring in additional windows and fields through the stg_<>_conversions_report models via the <>_conversions_passthrough_metrics variable. For information on how to configure these variables, refer to the README.

Under the hood

  • Added the respective seed data for the new models in addition to updating relevant documentation.
  • Added documentation explaining potential discrepancies across reporting grains.

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

  • dbt run –full-refresh && dbt test
  • [na] dbt run (if incremental models are present) && dbt test

Before marking this PR as "ready for review" the following have been applied:

  • [na] The appropriate issue has been linked, tagged, and properly assigned
  • All necessary documentation and version upgrades have been applied
  • docs were regenerated (unless this PR does not include any code or yml updates)
  • BuildKite integration tests are passing
  • Detailed validation steps have been provided below

Detailed Validation

Please share any and all of your validation steps:

If you had to summarize this PR in an emoji, which would it be?

💃

@fivetran-reneeli
Copy link
Collaborator Author

will close out issue #3 as well since this is addressed

Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fivetran-jamie generally this PR looks good. There are a few changes I would like to be addressed before this is ready for approval. Let me know if you have any questions.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fivetran-jamie fivetran-jamie merged commit 6c7f5e8 into main Oct 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add documentation on differences among aggregations across different grains
3 participants