This really looks like you haven't updated properly the google-ads library.

Have a look at the change log in order to properly select the version:
https://github.com/googleads/google-ads-python/blob/main/ChangeLog

Please check your local version (you may run this in your virtual env: python3 
-c "from google.ads.googleads import VERSION; print(VERSION)" ).
You may have different version in your requirements.txt and in your virtual 
environment.

I hope it helps.

On Wednesday, February 12, 2025 at 7:46:00 AM UTC+1 Aakash Gupta wrote:

> Hi, 
> I use python library for Google Ads, i was using v16, which go deprecated, 
> while trying to upgrade to v18, it shows this error
>
> There was an error importing the \"google.ads.googleads.v18\" module. 
> Please check that \"v18\" is a valid API version. Here are the current API 
> versions supported by this library: v16, v15. error occured.
>
> Tried things like upgrading the requirements.txt multiple times, but it 
> wont budge.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/f7c1189e-66ba-4a82-a58c-b905c9e5642dn%40googlegroups.com.
  • v1... 'Aakash Gupta' via Google Ads API and AdWords API Forum
    • ... Viktor Zeman
    • ... Zorion
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to