$ python3.6 get_ad_groups.py --customer_id
Traceback (most recent call last):
File "get_ad_groups.py", line 88, in <module>
campaign_id=args.campaign_id,
File "get_ad_groups.py", line 28, in main
ga_service = client.get_service("GoogleAdsService")
File "/usr/local/lib/python3.6/site-packages/google/ads/googleads/client.py", line 378, in get_service
options=_GRPC_CHANNEL_OPTIONS,
File "/usr/local/lib/python3.6/site-packages/google/ads/googleads/v7/services/services/google_ads_service/transports/grpc.py", line 202, in create_channel
**kwargs,
File "/usr/local/lib/python3.6/site-packages/google/api_core/grpc_helpers.py", line 311, in create_channel
default_host=default_host,
File "/usr/local/lib/python3.6/site-packages/google/api_core/grpc_helpers.py", line 238, in _create_composite_credentials
default_scopes=default_scopes
TypeError: with_scopes_if_required() got an unexpected keyword argument 'default_scopes'
Hello Prasad,
Thank you for reaching out to us.
Please note that this forum channel can only provide assistance to issues/concerns related to the AdWords API / Google Ads API.
Have you tried following this guide when configuring your API environment using the Python client library? As for the errors encountered using the Python client library, we highly recommend that you reach out to the author of the client library via this link instead.
Regards,
|
||||||
|
||||||