Skip to content

Commit

Permalink
Additional changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasi938 committed Jan 3, 2024
1 parent 7acb82f commit 9c19438
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tap_instagram/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def _metrics_for_media_type(media_type: str, media_product_type: str):
]
else: # media_product_type is "AD" or "FEED"
metrics = [
"engagement",
"total_interactions",
"impressions",
"reach",
"saved",
Expand All @@ -482,11 +482,11 @@ def _metrics_for_media_type(media_type: str, media_product_type: str):
return metrics
elif media_type == "CAROUSEL_ALBUM":
return [
"carousel_album_engagement",
"carousel_album_impressions",
"carousel_album_reach",
"carousel_album_saved",
"carousel_album_video_views",
"total_interactions",
"impressions",
"reach",
"saved",
"video_views",
]
else:
raise ValueError(
Expand Down Expand Up @@ -629,16 +629,16 @@ def _metrics_for_media_type(media_type: str, media_product_type: str):
if media_type in ("IMAGE", "VIDEO"):
if media_product_type == "STORY":
return [
"exits",
# "exits",
"impressions",
"reach",
"replies",
"taps_forward",
"taps_back",
# "taps_forward",
# "taps_back",
]
else: # media_product_type is "AD" or "FEED"
metrics = [
"engagement",
"total_interactions",
"impressions",
"reach",
"saved",
Expand All @@ -648,11 +648,11 @@ def _metrics_for_media_type(media_type: str, media_product_type: str):
return metrics
elif media_type == "CAROUSEL_ALBUM":
return [
"carousel_album_engagement",
"carousel_album_impressions",
"carousel_album_reach",
"carousel_album_saved",
"carousel_album_video_views",
"total_interactions",
"impressions",
"reach",
"saved",
"video_views",
]
else:
raise ValueError(
Expand Down

0 comments on commit 9c19438

Please sign in to comment.