Breakdowns fields should not be included in the "fields" list #285
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
I am using tap-facebook(meltano variant) and trying to include a breakdown of "product_id". Unfortunately this also adds "product_id" to the field list which will cause a failure on a POST request(which is what is used in the tap.
I have tested CURL statements to confirm this behavior. GET works with "product_id" as breakdown and in field. POST works with breakdown = "product_id" and not in field list.
I believe a POST needs to be made due to the nature of how the report is delivered and processed.
Suggested solution in the ad_insights.py
` def get_records(
self,
context: Context | None,
) -> t.Iterable[dict | tuple[dict, dict | None]]:
self._initialize_client()
`
The text was updated successfully, but these errors were encountered: