I'm trying to make a call to the Google ADS API through the ga_service.search_stream(my_query) method using the client.get_service("GoogleAdsService"). However i'm getting the error: " Version v10 is deprecated. Requests to this version will be blocked."
I run the print(google.ads.googleads.VERSION) code and I get the response that the installed version is v16.0.0 however I passed the version to GoogleAdsClient like this: GoogleAdsClient.load_from_storage("my_file.yaml", version=" v16")
In response I got the following error: Specified Google Ads API version "v16" does not exist. Valid API versions are: "v10", "v9"
I made the same call to the method GoogleAdsClient.load_from_storage("my_file.yaml", version=" v10") and GoogleAdsClient.load_from_storage("my_file.yaml", version=" v9")
I made the same call to the method GoogleAdsClient.load_from_storage("my_file.yaml", version=" v10") and got response: Version v10 is deprecated. Requests to this version will be blocked."
When I run GoogleAdsClient.load_from_storage("my_file.yaml", version=" v9") I get the response: google.api_core.exceptions.MethodNotImplemented: 501 GRPC target method can't be resolved
Can you help me? This issue may be associated with settings on the GoogleAds platform?
My code is:
https://github.com/magalha7/googleAds/blob/d2a00d2e8c4a3c4552d71544f02bca5d43bfdb07/google_ads.py
Hi Ítalo,
Thanks for reaching out to the Google Ads API Team. I hope you are doing well today.
Moving forward to concern, please note that Google Ads API version 10 already sunset last February 1, 2023.
You can use the Google Cloud Console to view a list of methods and services to which your project has recently submitted requests See guidelines below:
Please note that after the sunset, all v10 API requests will begin to fail. We highly recommend to please migrate to a newer version (v13) to ensure your API access is unaffected, using the upgrade guide.
For additional information, please see Deprecation and Sunset, and Release Notes for the functionality and changes added in v13.
Have a great day.
Regards,
![]() |
Google Ads API Team |