I have a daily Python script that pulls data from the Google Ads API. I had the v20.0.0 of the google ads library installed. On October 28, it started failing with this error:
Error with message " Version v2 is deprecated. Requests to this version will be blocked."
I assume this is because of this setup line:
ga_service = client.get_service('GoogleAdsService', version='v2')
But when I change that to v3
(just a guess, since the error message doesn't tell me what versions are accepted), I get this when I run the script:
ValueError: Specified Google Ads API version "v3" does not exist. Valid API versions are: "v2", "v1"
I ran pip install --upgrade googleads
, which got me up to v25.0.0
, but still got the same errors. I then uninstalled and re-installed googleads
, but still get the same errors.
I haven't been able to find a migration guide in Google's documentation. Does anyone know how to update the package and script to get it running again?