diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py index eb4b8260a703..869107426c2a 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py @@ -49,9 +49,6 @@ class Throttle: def ads_insights_throttle(self) -> Throttle: return self._ads_insights_throttle - def set_ads_insights_throttle(self, ads_insights_throttle): - self._ads_insights_throttle = ads_insights_throttle - @staticmethod def _parse_call_rate_header(headers): usage = 0 @@ -133,7 +130,6 @@ def _handle_call_rate_limit(self, response, params): sleep(sleep_time.total_seconds()) logger.warning("resetting session after sleep") api = MyFacebookAdsApi.init(access_token=MyFacebookAdsApi._access_token, crash_log=False) - api.set_ads_insights_throttle(self._ads_insights_throttle) FacebookAdsApi.set_default_api(api) def _update_insights_throttle_limit(self, response: FacebookResponse):