Skip to content

Commit

Permalink
馃悰 Source Instagram: remove metrics from video feed (#33989)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Jan 8, 2024
1 parent 88db70c commit 1359d7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 6acf6b55-4f1e-4fca-944e-1a3caef8aba8
dockerImageTag: 3.0.0
dockerImageTag: 3.0.1
dockerRepository: airbyte/source-instagram
githubIssueLabel: source-instagram
icon: instagram.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ def _get_insights(self, item, account_id) -> Optional[MutableMapping[str, Any]]:
"""Get insights for specific media"""
if item.get("media_product_type") == "REELS":
metrics = self.REELS_METRICS
elif item.get("media_type") == "VIDEO" and item.get("media_product_type") == "FEED":
metrics = ["impressions", "reach", "saved", "video_views", "video_views"]
elif item.get("media_type") == "VIDEO":
metrics = self.MEDIA_METRICS + ["video_views"]
elif item.get("media_type") == "CAROUSEL_ALBUM":
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/instagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Instagram limits the number of requests that can be made at a time. See Facebook

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|
| 3.0.1 | 2024-01-08 | [33989](https://github.com/airbytehq/airbyte/pull/33989) | Remove metrics from video feed |
| 3.0.0 | 2024-01-05 | [33930](https://github.com/airbytehq/airbyte/pull/33930) | Upgrade to API v18.0 |
| 2.0.1 | 2024-01-03 | [33889](https://github.com/airbytehq/airbyte/pull/33889) | Change requested metrics for stream `media_insights` |
| 2.0.0 | 2023-11-17 | [32500](https://github.com/airbytehq/airbyte/pull/32500) | Add primary keys for UserLifetimeInsights and UserInsights; add airbyte_type to timestamp fields |
Expand Down

0 comments on commit 1359d7b

Please sign in to comment.