Open matheuzinoficial opened 1 year ago
At Airbyte, we seek to be clear about the project priorities and roadmap. This issue has not had any activity for 180 days, suggesting that it's not as critical as others. It's possible it has already been fixed. It is being marked as stale and will be closed in 20 days if there is no activity. To keep it open, please comment to let us know why it is important to you and if it is still reproducible on recent versions of Airbyte.
Connector Name
facebook-marketing
Connector Version
1.1.17
What step the error happened?
Other
Relevant information
I noticed some inconsistencies with Facebook Marketing data, specially in one column in the table ads_insights: the ‘actions’ table. I’m pretty familiar with the Facebook Ads Graph API, and our company uses it every single day so we are very used to it. While making some queries now in the data extracted using Airbyte we found that some actions are not being included in the array, actions with action_type “link_click” or “post_engagement” do return as expected and the values are ok too, but when it comes to action_types like “purchase” or “initiate_checkout” are not being returned. So you might be thinking now: maybe these are not supposed to appear inside the actions column, right? Wrong. When I make a request in the Graph API, to the exact same ad, in the same level (ad level) in the same time period, it returns these action_type inside the actions array.
While investigating the issue with my engineer team we ended up finding out what is causing this error for your Facebook Marketing Connector users. The error happens because data is requested from the Facebook API through Ad Report Run, which does not return detailed data when the time_increment field is equal to 1. Instead it just returns: “action_type”: “offsite_conversion.fb_pixel_custom ” which aggregates the value of all the pixel data, making it impossible to know what the value refers to. The solution would be to use the synchronous form of the request with the GET method on the same endpoint, instead of the POST and Ad Reports method.
We further realized there is a problem with the column 'cost_per_action_type' which is always null even though there were data in the 'actions' column. (By logic if one of them are not null the other should not be either).
Here is the data returned from Facebook Graph API:
and here is the data returned from BigQuery (using Airbyte Facebook Marketing connector as its source):
SQL Query:
All the requests are for the same period and level. (ad level and september 2023)
Relevant log output
No response
Contribute