fivetran / dbt_ad_reporting

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.
https://fivetran.github.io/dbt_ad_reporting/#!/overview
Apache License 2.0
142 stars 56 forks source link

[Bug] Error in int_ad_reporting__url_report.sql #80

Closed bruceconklin closed 1 year ago

bruceconklin commented 1 year ago

Is there an existing issue for this?

Describe the issue

In this intermediate model: https://github.com/fivetran/dbt_ad_reporting/blob/v1.2.0/models/intermediate/int_ad_reporting__url_report.sql

Snapchat_ads contains a series of field mappings that are set to null. This is preventing these fields from populating in the model output. `snapchat_ads as (

{{ get_query(
    platform='snapchat_ads', 
    report_type='url', 
    field_mapping={
            'account_id': 'ad_account_id',
            'account_name': 'ad_account_name',
            'campaign_id': 'null',
            'campaign_name': 'null',
            'ad_group_id': 'null',
            'ad_group_name': 'null',
            'clicks':'swipes'
        },
    relation=ref('snapchat_ads__url_report')
) }}

), `

I believe this is an error as other mappings do not contain null values.

Relevant error log or model output

No response

Expected behavior

I expect these to map to the correct field in the source table

dbt Project configurations

N/A

Package versions

N/A

What database are you using dbt with?

other (mention it in "Additional Context")

dbt Version

N/A

Additional Context

No response

Are you willing to open a PR to help address this issue?

dumkydewilde commented 1 year ago

Thanks for filing this @bruceconklin. This also relates to these columns not being available in the snapchat_ads package. I've created a PR to add those columns there, so they can also be used in the ad_reporting package.

fivetran-joemarkiewicz commented 1 year ago

Thanks for opening this @bruceconklin and for chiming in @dumkydewilde!

I chatted with @dumkydewilde in the snapchat ads PR and will move forward with reviewing and integrating these PRs. Stay tuned as we work through these.

fivetran-joemarkiewicz commented 1 year ago

@bruceconklin and @dumkydewilde I just wanted to provide an update that I have reviewed and approved the two mentioned PRs! I am kicking off our internal release process. You can most likely expect these to be merged and released by early next week.

fivetran-joemarkiewicz commented 1 year ago

FYI the above mentioned PRs have been approved and merged into the latest release of the Snapchat and Ad reporting packages.

As such, I will close out this issue. Please feel free to reopen if the issue still persists on your end.