Version v10 is deprecated. Requests to this version will be blocked.

1,420 views
Skip to first unread message

Ítalo Magalhães

unread,
Mar 15, 2023, 2:26:22 PM3/15/23
to Google Ads API and AdWords API Forum

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

Google Ads API Forum Advisor

unread,
Mar 15, 2023, 5:52:45 PM3/15/23
to italo...@gmail.com, adwor...@googlegroups.com

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:
 

  • Open the Dashboard page (found under APIs & Services) in the Google Cloud Console.
  • Click on Google Ads API in the table.
  • On the METRICS subtab, you should see your recent requests plotted on each graph. At the bottom of the page, you’ll see the Methods table, where you can see which methods you’ve sent requests to. The method name includes a Google Ads API version, a service, and a method name, e.g., google.ads.googleads.v10.services.GoogleAdsService.Mutate. In this way, you can see all versions that you’ve used recently.
  • (Optional) Click on the time frame at the top right of the page if you need to change it.


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 Logo Google Ads API Team


ref:_00D1U1174p._5004Q2jzJHi:ref
Reply all
Reply to author
Forward
0 new messages