Я новичок в публикации сообщений, хотя нашел здесь много исправлений. Надеюсь, я правильно задаю этот вопрос.
Я пытаюсь создать скрипт Python, который позволит мне получить доступ к рекламе Google. У меня установлен pip google-ads, и я могу проверить это с помощью команды pip list.
Package Version
------------------------ --------
cachetools 5.4.0
certifi 2024.7.4
charset-normalizer 3.3.2
google-ads 24.1.0
google-api-core 2.19.1
google-auth 2.32.0
google-auth-oauthlib 1.2.1
googleapis-common-protos 1.63.2
grpcio 1.64.1
grpcio-status 1.62.2
idna 3.7
oauthlib 3.2.2
pip 24.1.2
proto-plus 1.24.0
protobuf 4.25.3
pyasn1 0.6.0
pyasn1_modules 0.4.0
PyYAML 6.0.1
requests 2.32.3
requests-oauthlib 2.0.0
rsa 4.9
setuptools 70.3.0
urllib3 2.2.2
wheel 0.43.0
Я работаю в
Операционной системе: AlmaLinux 9.4 (Seafoam Ocelot)
с Python 3.9.18
Я могу также запустите «pip show google-ads» и получите ответ
Version: 24.1.0
Summary: Client library for the Google Ads API
Home-page: https://github.com/googleads/google-ads-python
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: /root/pyscripts/GA_import/lib/python3.9/site-packages
Requires: google-api-core, google-auth-oauthlib, googleapis-common-protos, grpcio, grpcio-status, proto-plus, protobuf, PyYAML
Required-by:```
If I run my script or just enter 'python' at the command line then enter
'from google.ads.google_ads.client import GoogleAdsClient'
I get back the same error
'ModuleNotFoundError: No module named 'google.ads.google_ads''
any help would be greatly appreciated. I am pretty stumped at this point.
Any additional info can and will be provided
working in a venv where google-ads is installed
Thank you
I have tried many things including running the import command from just a python prompt as seen above.
I have uninstall and reinstalled google-ads 2x
I have dumped the environment and then recreated it.
many other things
Подробнее здесь: https://stackoverflow.com/questions/787 ... google-ads