ryan_bell
12/09/2024, 4:36 PMconversions
and conversion_values
, but neither end up populating with anything other than null
, when I know that this shouldn’t be the case because I can see conversions being tracked through Facebook’s reporting in the UI.
For some extra context, up until now I’ve been using a custom-written version of this tap that’s been used at my company for the last few years (you can find that here), but it’s been having a lot of issues with rate limiting and it seemed like an easier fix to just use the Meltano-recommended version of the tap. In the version we’ve been using, I can get conversion-related data by navigating the actions
and action_values
columns and finding the appropriate key connected to purchases (offsite_conversion.fb_pixel_purchase
). But when I look at the actions
dict in the MeltanoLabs version, it doesn’t have anything that would tell me what values are being displayed. I’ll post some screenshots of what I’m seeing in the thread, but for now, here’s the meltano.yml setup I’m using with this tap:
- name: tap-facebook
namespace: tap_facebook
label: Facebook
pip_url: git+<https://github.com/MeltanoLabs/tap-facebook.git>
capabilities:
- catalog
- discover
- state
config:
account_id: '********'
access_token: $TAP_FACEBOOK_ACCESS_TOKEN
api_version: v20.0
start_date: '2024-12-01'
select:
- adsinsights_default.*
ryan_bell
12/09/2024, 4:38 PM[{"value": "18542", "1d_view": "17176", "7d_click": "1366"}]
Action_values:
[{"value": "1950.75", "7d_click": "1950.75"}]
Nick Mitchum
02/12/2025, 8:08 PM{
"1d_click": 14,
"1d_view": 2,
"28d_click": 20,
"28d_view": 3,
"7d_click": 17,
"7d_view": 2,
"action_type": "offsite_conversion.fb_pixel_add_to_wishlist",
"value": 19
},
but only get
[{"value":"261599","1d_view":"98707","7d_click":"162892"}]
These are from different data sets. pay not attention to the numbersEdgar Ramírez (Arch.dev)
02/12/2025, 8:18 PMinsight_reports_list
?Nick Mitchum
02/12/2025, 8:19 PMinsight_reports_list:
- name: "product_id"
breakdowns: [ "product_id" ]
- name: "action_type"
breakdowns: [ "action_type" ]
Nick Mitchum
02/12/2025, 8:19 PMNick Mitchum
02/12/2025, 8:20 PMEdgar Ramírez (Arch.dev)
02/12/2025, 8:24 PMaction_attribution_windows_view
or action_attribution_windows_click
?
https://github.com/MeltanoLabs/tap-facebook/blob/77d0b0139d131ab7f632e82f8a08df65596b7851/tap_facebook/tap.py#L127-L146Nick Mitchum
02/12/2025, 8:24 PMNick Mitchum
02/13/2025, 3:07 PM"action_breakdowns": self._report_definition["action_breakdowns"],
//after hardcode
"action_breakdowns": ["action_type"],
ad_insights.py line:292
So here's the actual issue.
When any insights report is ran there is no field in the action_breakdowns "params" by hard coding "action_type" the data comes back as expected.
so when using the below the params the result of the params is: action_breakdowns: []
"action_breakdowns": self._report_definition["action_breakdowns"],
The docs say that action_breakdowns: "action_type" is the default. The docs are wrong.
also a side note adding action_breakdowns: ["action_type"] to the tap-extractor does not work as expected. I would bet somewhere along the line it is being filtered out
Not sure why this is happening but it is. I am going to correct this in my fork since i already have to use my fork due to the insight_reports_list being incorrectly being configured. https://github.com/MeltanoLabs/tap-facebook/issues/285
There you go.Nick Mitchum
02/13/2025, 3:18 PM