Closed ekawakami97 closed 1 year ago
Hi @ekawakami97 thanks so much for opening this issue!
I have one quick question before we proceed further into the investigation (especially as I don't have much experience with the Google Ads Manager). When you query the raw data Fivetran syncs for this account do you see null
records as well? I want to confirm if this is a package issue or a source issue.
Hi @fivetran-joemarkiewicz, on the raw data synced from fivetran both accounts have valid account IDs
Thanks for the update @ekawakami97. To try and investigate a bit closer I am curious what you queried to see that both accounts are valid in the source. Would you be able to query the source ad_stats
table within your google schema to see if both of these accounts are reflected there. The ad_reporting final model for Google pulls from the ad_stats
table primarily.
If the accounts are both included within that table I would be curious what is happening. However, if they are not, then that may be the culprit.
@fivetran-joemarkiewicz I can check the ad_stats table :) This is what I queried and it gave me valid customer_ids for both the accounts
SELECT
distinct customer_id
FROM `fivetran-data-culture-big-vv9p.google_ads_mcc.ad_stats`
LIMIT 1000
Hi @ekawakami97 thank you so much for sharing this info and sorry for the delay in my response.
I am currently looking into this issue and hope to get back to you later this week with more details! Thank you for your patience and I apologize for the strange behavior you are seeing here.
Hi all,
This issue should be resolved within the latest release of the package. As such, I will close out this issue.
Please feel free to reopen if you are still experiencing the issue following an upgrade or if there is more to discuss.
Is there an existing issue for this?
Describe the issue
We recently connected our Google Ads manager account with multiple Google Ads accounts to our dbt project. We just changed the
dbt_project.yml
file and added the linegoogle_ads_schema: google_ads_mcc
since the source schema was named differently. After running the project, we saw that our project updated to have both of the accounts and had all the same values as our google ads account (spend, clicks, impressions, etc), however, our second google ads account we recently added has a null value for the account_id.When running the command below, we get the following output.
Relevant error log or model output
No response
Expected behavior
The expected output is for both of the account_ids to have the valid account IDs that appear on our Google Ads account. Currently we are hardcoding the account ID into our models as a temporary fix.
dbt Project configurations
Package versions
What database are you using dbt with?
bigquery
dbt Version
Additional Context
No response
Are you willing to open a PR to help address this issue?