Skip to content

Conversation

@fivetran-catfritz
Copy link
Contributor

@fivetran-catfritz fivetran-catfritz commented Apr 23, 2025

PR Overview

Package version introduced in this PR:

  • v0.4.0

This PR addresses the following Issue/Feature(s):

Summary of changes:

Submission Checklist

  • Alignment meeting with the reviewer (if needed)
    • Timeline and validation requirements discussed
  • Provide validation details:
    • Validation Steps: Check for unintentional effects (e.g., add/run consistency & integrity tests)
    • Testing Instructions: Confirm the change addresses the issue(s)
    • Focus Areas: Complex logic or queries that need extra attention

Changelog

  • Draft changelog for PR
  • Final changelog for release review

@fivetran-catfritz fivetran-catfritz self-assigned this Apr 23, 2025
Copy link
Contributor

@fivetran-reneeli fivetran-reneeli left a comment

Choose a reason for hiding this comment

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

Just had few comments! Can also make the README alignment and LICENSE updates

description: '{{ doc("impressions") }}'
- name: region
description: '{{ doc("region") }}'
- name: spend
Copy link
Contributor

Choose a reason for hiding this comment

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

note that spend in the src.yml is the preconverted amount so still in millis, since I noticed the definition in the doc is post converted

Copy link
Contributor

Choose a reason for hiding this comment

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

oops disregard this

Co-authored-by: Renee Li <91097070+fivetran-reneeli@users.noreply.github.com>
Copy link
Contributor

@fivetran-reneeli fivetran-reneeli left a comment

Choose a reason for hiding this comment

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

LGTM

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.

A few requests before approval

{"name": "campaign_id", "datatype": dbt.type_string()},
{"name": "clicks", "datatype": dbt.type_int()},
{"name": "country", "datatype": dbt.type_string()},
{"name": "date", "datatype": "date"},
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we still have this date field if we're doing the conditional below to alias?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like when we've done this before, we don't include the original column in the first set (ref)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was following the format of the other existing models in this package (example). Should they all be updated?

Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, let's leave for now since it doesn't seem to be causing any issues. I imagine this is some code that's just not being used. We can keep this as is to adhere to the approach used in the existing models. However, can you create a FR for us to investigate in a future update.

CHANGELOG.md Outdated

## Features
- Added the following vars to enable/disable the new sources. See the [README](https://github.com/fivetran/dbt_reddit_ads_source/blob/main/README.md#Step-4-Enable-disable-models-and-sources) for more details.
- `reddit_ads_campaign_country_report_enabled`
Copy link
Contributor

Choose a reason for hiding this comment

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

All the other ad reporting packages follow the following format for enable/disable variables:

<platform_name>__using_<table_name>

In order to ensure consistency across packages, we should update the campaign_country_conversions and campaign_country variables to be the following:

vars:
     reddit_ads__using_campaign_country_report: true
     reddit_ads__using_campaign_country_conversions_report: true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was following the format of ad_reporting__reddit_ads_enabled, but I can update.

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-catfritz fivetran-catfritz merged commit c40e6c3 into main Apr 30, 2025
8 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.

4 participants