Skip to content

Commit a6b160b

Browse files
authored
Merge branch 'gvillafanetapia/source-fb-marketing-learningstage-attrspec' into master
2 parents 7df0d0b + e5b49e8 commit a6b160b

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

airbyte-integrations/connectors/source-facebook-marketing/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: e7778cfc-e97c-4458-9ecb-b4f2bba8946c
13-
dockerImageTag: 4.0.0
13+
dockerImageTag: 4.1.0
1414
dockerRepository: airbyte/source-facebook-marketing
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/facebook-marketing
1616
githubIssueLabel: source-facebook-marketing

airbyte-integrations/connectors/source-facebook-marketing/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "4.0.0"
6+
version = "4.1.0"
77
name = "source-facebook-marketing"
88
description = "Source implementation for Facebook Marketing."
99
authors = [ "Airbyte <[email protected]>",]

airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/schemas/ad_sets.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,23 @@
187187
}
188188
}
189189
}
190+
},
191+
"attribution_spec": {
192+
"description": "Conversion attribution spec used for attributing conversions for optimization. Supported window lengths differ by optimization goal and campaign objective.",
193+
"type": ["null", "array"],
194+
"items": {
195+
"type": "object",
196+
"properties": {
197+
"event_type": {
198+
"description": "The type of conversion event to which the attribution applies.",
199+
"type": "string"
200+
},
201+
"window_days": {
202+
"description": "The attribution window in days. Common values: 1, 7, or 28 depending on the event type.",
203+
"type": "integer"
204+
}
205+
}
206+
}
190207
}
191208
}
192209
}

airbyte-integrations/connectors/source-facebook-marketing/unit_tests/integration/test_include_deleted.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def test_ad_sets_stream(self, http_mocker: HttpMocker):
176176
"bid_constraints",
177177
"adlabels",
178178
"learning_stage_info",
179+
"attribution_spec",
179180
]
180181

181182
http_mocker.get(

airbyte-integrations/connectors/source-facebook-marketing/unit_tests/resource/http/response/ad_sets.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@
4040
"conversions": 12,
4141
"last_sig_edit_ts": 1734947501,
4242
"attribution_windows": ["7d_click", "1d_view"]
43-
}
43+
},
44+
"attribution_spec": [
45+
{
46+
"event_type": "OFFSITE_CONVERSIONS",
47+
"window_days": 7
48+
}
49+
]
4450
}
4551
]
4652
}

docs/integrations/sources/facebook-marketing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ This response indicates that the Facebook Graph API requires you to reduce the f
356356

357357
| Version | Date | Pull Request | Subject |
358358
|:--------|:-----------|:---------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
359+
| 4.1.0 | 2025-05-29 | [59655](https://github.com/airbytehq/airbyte/pull/59655) | Add `attribution_spec` field to `ad_sets` stream |
359360
| 4.0.0 | 2025-08-25 | [65533](https://github.com/airbytehq/airbyte/pull/65533) | Migrate to Marketing API v23 |
360361
| 3.5.12 | 2025-08-23 | [65288](https://github.com/airbytehq/airbyte/pull/65288) | Update dependencies |
361362
| 3.5.11 | 2025-08-19 | [64911](https://github.com/airbytehq/airbyte/pull/64911) | Allow overriding action breakdowns for default Ads Insights stream. |

0 commit comments

Comments
 (0)