diff --git a/airflow/providers/google/ads/hooks/ads.py b/airflow/providers/google/ads/hooks/ads.py index d86673e023da2..3323c15683130 100644 --- a/airflow/providers/google/ads/hooks/ads.py +++ b/airflow/providers/google/ads/hooks/ads.py @@ -31,9 +31,9 @@ from airflow.providers.google.common.hooks.base_google import get_field if TYPE_CHECKING: - from google.ads.googleads.v15.services.services.customer_service import CustomerServiceClient - from google.ads.googleads.v15.services.services.google_ads_service import GoogleAdsServiceClient - from google.ads.googleads.v15.services.types.google_ads_service import GoogleAdsRow + from google.ads.googleads.v16.services.services.customer_service import CustomerServiceClient + from google.ads.googleads.v16.services.services.google_ads_service import GoogleAdsServiceClient + from google.ads.googleads.v16.services.types.google_ads_service import GoogleAdsRow from google.api_core.page_iterator import GRPCIterator @@ -99,7 +99,7 @@ class GoogleAdsHook(BaseHook): :param api_version: The Google Ads API version to use. """ - default_api_version = "v15" + default_api_version = "v16" def __init__( self, diff --git a/airflow/providers/google/provider.yaml b/airflow/providers/google/provider.yaml index 21c6ce08c5356..015f8133ee7f0 100644 --- a/airflow/providers/google/provider.yaml +++ b/airflow/providers/google/provider.yaml @@ -99,7 +99,7 @@ dependencies: - gcloud-aio-bigquery>=6.1.2 - gcloud-aio-storage>=9.0.0 - gcsfs>=2023.10.0 - - google-ads>=22.1.0 + - google-ads>=23.1.0 - google-analytics-admin # Google-api-core 2.16.0 back-compat issue: https://github.com/googleapis/python-api-core/issues/576 - google-api-core>=2.11.0,!=2.16.0 diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index 46c83a497ad61..c518ba97b757d 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -519,7 +519,7 @@ "gcloud-aio-bigquery>=6.1.2", "gcloud-aio-storage>=9.0.0", "gcsfs>=2023.10.0", - "google-ads>=22.1.0", + "google-ads>=23.1.0", "google-analytics-admin", "google-api-core>=2.11.0,!=2.16.0", "google-api-python-client>=1.6.0", diff --git a/pyproject.toml b/pyproject.toml index d862c06baf6ee..676532fda15a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -714,7 +714,7 @@ google = [ # source: airflow/providers/google/provider.yaml "gcloud-aio-bigquery>=6.1.2", "gcloud-aio-storage>=9.0.0", "gcsfs>=2023.10.0", - "google-ads>=22.1.0", + "google-ads>=23.1.0", "google-analytics-admin", "google-api-core>=2.11.0,!=2.16.0", "google-api-python-client>=1.6.0",