diff --git a/airflow/providers/google/CHANGELOG.rst b/airflow/providers/google/CHANGELOG.rst index 874a353692ea3..0560bb8ae9bde 100644 --- a/airflow/providers/google/CHANGELOG.rst +++ b/airflow/providers/google/CHANGELOG.rst @@ -27,14 +27,14 @@ Breaking changes * ``Updated GoogleAdsHook to support newer API versions after google deprecated v5. Google Ads v8 is the new default API. (#17111)`` .. warning:: The underlying google-ads library had breaking changes. - - Previously the google ads library returned data as native protobuf messages. Now it returns data as proto-plus objects that behave more like conventional Python objects. - To preserve compatibility the hook's `search()` converts the data back to native protobuf before returning it. Your existing operators *should* work as before, but due to the urgency of the v5 API being deprecated it was not tested too thoroughly. Therefore you should carefully evaluate your operator and hook functionality with this new version. + Previously the google ads library returned data as native protobuf messages. Now it returns data as proto-plus objects that behave more like conventional Python objects. - In order to use the API's new proto-plus format, you can use the `search_proto_plus()` method. + To preserve compatibility the hook's ``search()`` converts the data back to native protobuf before returning it. Your existing operators *should* work as before, but due to the urgency of the v5 API being deprecated it was not tested too thoroughly. Therefore you should carefully evaluate your operator and hook functionality with this new version. - For more information, please consult `google-ads migration document `__: + In order to use the API's new proto-plus format, you can use the ``search_proto_plus()`` method. + + For more information, please consult `google-ads migration document `__: Features diff --git a/airflow/providers/google/ads/hooks/ads.py b/airflow/providers/google/ads/hooks/ads.py index 8fead9ece21fa..7222dac4af92f 100644 --- a/airflow/providers/google/ads/hooks/ads.py +++ b/airflow/providers/google/ads/hooks/ads.py @@ -164,7 +164,6 @@ def list_accessible_customers(self) -> List[str]: @cached_property def _get_service(self) -> Resource: """Connects and authenticates with the Google Ads API using a service account""" - client = self._get_client return client.get_service("GoogleAdsService", version=self.api_version)