Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@
"purchase_per_landing_page_view",
"purchase_roas",
"purchases_per_link_click",
"qualifying_question_qualify_answer_rate",
"quality_ranking",
"reach",
"result_rate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: e7778cfc-e97c-4458-9ecb-b4f2bba8946c
dockerImageTag: 5.3.0
dockerImageTag: 5.3.1
dockerRepository: airbyte/source-facebook-marketing
documentationUrl: https://docs.airbyte.com/integrations/sources/facebook-marketing
externalDocumentationUrls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "5.3.0"
version = "5.3.1"
name = "source-facebook-marketing"
description = "Source implementation for Facebook Marketing."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,6 @@
"description": "Return on ad spend for purchases",
"$ref": "ads_action_stats.json"
},
"qualifying_question_qualify_answer_rate": {
"description": "Rate of qualifying question answer qualification",
"type": ["null", "number"]
},
"quality_ranking": {
"description": "Ranking based on quality",
"type": ["null", "string"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Those fields were removed as there were causing `Tried accessing nonexisting field on node type` error from Meta
# For more information, see https://github.com/airbytehq/airbyte/pull/38860
_REMOVED_FIELDS = ["conversion_lead_rate", "cost_per_conversion_lead", "adset_start"]
_REMOVED_FIELDS = ["conversion_lead_rate", "cost_per_conversion_lead", "adset_start", "qualifying_question_qualify_answer_rate"]
adjusted_ads_insights_fields = {key: value for key, value in AdsInsights.Field.__dict__.items() if key not in _REMOVED_FIELDS}
ValidFields = Enum("ValidEnums", adjusted_ads_insights_fields)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ def fields(self, **kwargs) -> List[str]:
removable_keys = list(self.breakdowns if self.breakdowns else [])
# Having this field in syncs seem to have caused data inaccuracy where fields like `spend` had the wrong values
removable_keys.append("wish_bid")
# Meta rejects the whole insights request with error #100 when this field is requested
removable_keys.append("qualifying_question_qualify_answer_rate")
for removable_key in removable_keys:
try:
self._fields.remove(removable_key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
"outbound_clicks",
"outbound_clicks_ctr",
"purchase_roas",
"qualifying_question_qualify_answer_rate",
"quality_ranking",
"reach",
"social_spend",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,23 @@ def test_fields(self, api, some_config):
assert "account_currency" in fields
assert "actions" in fields

def test_fields_excludes_fields_rejected_by_api(self, api, some_config):
stream = AdsInsights(
api=api,
account_ids=some_config["account_ids"],
start_date=datetime(2010, 1, 1),
end_date=datetime(2011, 1, 1),
insights_lookback_window=28,
)
stream.configured_json_schema = {
"properties": {
"account_id": {"type": ["null", "string"]},
"qualifying_question_qualify_answer_rate": {"type": ["null", "number"]},
}
}

assert stream.fields() == ["account_id"]

def test_fields_custom(self, api, some_config):
stream = AdsInsights(
api=api,
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/facebook-marketing.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ If you use Airbyte Cloud and your organization restricts access to specific IPs,

| Version | Date | Pull Request | Subject |
|:-----------|:-----------|:---------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 5.3.1 | 2026-11-19 | | Stop requesting the `qualifying_question_qualify_answer_rate` insights field, which Meta now rejects with error #100 |
| 5.3.0 | 2026-06-01 | [59655](https://github.com/airbytehq/airbyte/pull/59655) | Add `attribution_spec` field to `ad_sets` stream |
| 5.2.12 | 2026-05-27 | [78451](https://github.com/airbytehq/airbyte/pull/78451) | Promoted release candidate to GA |
| 5.2.12-rc.1 | 2026-05-20 | [75457](https://github.com/airbytehq/airbyte/pull/75457) | Bump facebook-business SDK from v23 to v25 to support Marketing API v25.0 before v23.0 sunset on June 9, 2026 |
Expand Down
Loading