Hey, We noticed that we are missing some Facebook...
# replication-troubleshooting
p
Hey, We noticed that we are missing some Facebook Ads - Purchases (for 7 day click 1 day view attribution) since July 29th. It is affecting all the data we have using this metric. We created a custom connector using the Facebook Ads API, and the data is accurate, so we assume it's a connector issue. We also created a new connector to check if it would update the data, but the issue is still there. Is anyone else suffering from this issue? ๐Ÿ˜“ Thanks!
๐Ÿ™ 1
a
@Pablo Morales We are suffering from the same issue as well. Can you link to the Airbyte ticket that you created for this?
p
Hi @Adi Matheswaran, I created several tickets, and they are slowly replying to them... but feel free to share this thread and the github issue (link). Let us know if they give you a solution. Thanks!
v
Hi @Pablo Morales, We are facing the same issue, with the same starting date. Airbyte has confirmed there havenโ€™t been any recent updates to the Facebook Marketing Connector that would directly impact these metrics (purchases).
e
Hey guys, We are also facing the same issues with the purchases. Have you been able to find a workaround?
p
Hi @evris! Not yet. Airbyte support sent me this email yesterday:
a
I'd also love to solve this, we're only getting purchase data wrong, all other data is okay
should we email as well to escalate the issue?
p
Yes, the more we reach them, the more priority they will give to this issue.
Hi @evris @Abyssus Erigo @Viktor Lantos @Adi Matheswaran ! Have you received a solution for this? This issue has been going on for a month, and we are just tired of waiting. Thanks!
e
We received an email from the airbyte team saying that the issue has been moved to high priority but sadly no resolution yet.
๐Ÿ˜ฎโ€๐Ÿ’จ 1
There is also an issue for this on GitHub with not much activity.
p
I don't understand how the people didn't notice this. It is causing us a big issue.
Okay, I'm rerunning the connector, and it seems like they fixed it. You have to refresh the schema first. I'm still extracting the data, but looks good at first sight.
a
did it work??
p
I think so. Check this query with your dataset:
WITH
ad_data_rn AS (
SELECT
ad_id,
date_start AS date,
date_stop,
campaign_name AS campaign,
adset_name AS ad_group,
ad_name,
spend,
clicks,
impressions,
actions,
action_values,
ROW_NUMBER() OVER (
PARTITION BY ad_id, date_start
ORDER BY _airbyte_extracted_at DESC
) AS rn
FROM YOUR-DATASET
QUALIFY rn = 1
),
ad_data_keys AS (
SELECT
ad_id,
date,
date_stop,
campaign,
ad_group,
ad_name,
SUM(spend) AS spend,
SUM(clicks) AS clicks,
SUM(impressions) AS impressions
FROM ad_data_rn
GROUP BY 1, 2, 3, 4, 5, 6
),
ad_date_actions AS (
SELECT
ad_id,
date,
date_stop,
campaign,
ad_group,
ad_name,
MAX(spend) AS spend,
MAX(clicks) AS clicks,
MAX(impressions) AS impressions,
SUM(CAST(JSON_VALUE(actions, "$.7d_click") AS FLOAT64)) AS day7_click_conversions,
SUM(CAST(JSON_VALUE(actions, "$.1d_click") AS FLOAT64)) AS day1_click_conversions,
SUM(CAST(JSON_VALUE(actions, "$.1d_view") AS FLOAT64)) AS day1_view_conversions
FROM ad_data_rn
CROSS JOIN UNNEST(JSON_EXTRACT_ARRAY(actions)) AS actions
WHERE (JSON_VALUE(actions, "$.action_type") = "offsite_conversion.fb_pixel_purchase")
GROUP BY 1, 2, 3, 4, 5, 6
),
ad_date_conversions AS (
SELECT
ad_id,
date,
date_stop,
campaign,
ad_group,
ad_name,
MAX(spend) AS spend,
MAX(clicks) AS clicks,
MAX(impressions) AS impressions,
SUM(CAST(JSON_VALUE(action_values, "$.7d_click") AS FLOAT64)) AS day7_click_revenue,
SUM(CAST(JSON_VALUE(action_values, "$.1d_click") AS FLOAT64)) AS day1_click_revenue,
SUM(CAST(JSON_VALUE(action_values, "$.1d_view") AS FLOAT64)) AS day1_view_revenue
FROM ad_data_rn
CROSS JOIN UNNEST(JSON_EXTRACT_ARRAY(action_values)) AS action_values
WHERE (JSON_VALUE(action_values, "$.action_type") = "offsite_conversion.fb_pixel_purchase")
GROUP BY 1, 2, 3, 4, 5, 6
)
SELECT
ad_data_keys.date,
SUM(ad_data_keys.spend) AS spend,
SUM(COALESCE(day7_click_conversions, 0)) + SUM(COALESCE(day1_view_conversions, 0)) AS platform_orders,
SUM(COALESCE(day7_click_revenue, 0)) + SUM(COALESCE(day1_view_revenue, 0)) AS platform_revenue
FROM ad_data_keys
LEFT JOIN ad_date_actions AS ada USING (ad_id, date, date_stop, campaign, ad_group, ad_name)
LEFT JOIN ad_date_conversions AS adc USING (ad_id, date, date_stop, campaign, ad_group, ad_name)
GROUP BY ALL
ORDER BY 1 DESC
e
I'm having the same issue here. Can anyone else confirm if this have been fixed?
p
Did you refresh the schema? Try that first
g
I'm still running into the same issue. I updated to the latest version and refreshed the schema. However, the conversions in my custom reports are still too low.
v
Still the same issue here as well. I refreshed the schema and it didn't solve the issue.
m
the issue is still ongoing for me
a
@Pablo Morales What do you mean by refresh the schema? Can you explain
v
Hi all, has anyone found workarounds? Did the schema refresh work for anyone else? I'm still facing the same issue.
m
nope its not fixed and airbyte cloud support is not very helpful either. i switched some of my pipelines over to fivetran because airbyte is way too unreliable with bad customer support
v
Thanks for letting me know, we are also working on switching this connector to Fivetran tbh
e
We are switching as well. This is a very critical issue and I am amazed that it's been going on almost 2 months with no fix.
m
for us this wasnt the only one as the tiktok connector also simultaneously broke and we historically had multiple inconsistencies/issues after each connector update. they dont seem to be doing a great job at testing/uat before getting something in front of their clients
๐Ÿ‘ 2
plus1 1
a
we are swithing too this is ridiculous tbh
plus1 1
extremely dissapointed by everything including how support handles it
plus1 1
s
This is still unresolved for the Facebook Marketing connector? I believe I am also seeing missing/inconsistent conversion data in actions and conversions fields which is critical for performance reporting https://github.com/airbytehq/airbyte/issues/64554
plus1 1