Hello, I'm new to using Google Ads API, I'm trying to configure to be able 
to access reports via Google Ads API in Python.
- I use the same Gmail Account for Google Account Manager
- I have created a google cloud platform account with the same google ads 
account
- I have got the developer_token, client_id, client_secret and 
refresh_token which I have stored in my .Yaml file.
- then I tried to access the API with the aim of getting account 
information with the sample code provided here 
https://developers.google.com/google-ads/api/docs/samples/get-account-information
-after that I get an error response like the following:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated 
with:
        status = StatusCode.PERMISSION_DENIED
        details = "Request had insufficient authentication scopes."
        debug_error_string = 
"{"created":"@1635229473.190000000","description":"Error received from peer 
ipv4:142.251.10.95:443","file":"src/core/lib/surface/call.cc"," 
file_line":1070,"grpc_message":"Request had insufficient authentication 
scopes.","grpc_status":7}"
>

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "Test_API.py", line 64, in <module>
    main(googleads_client, args.customer_id)
  File "Test_API.py", line 32, in main
    customer = customer_service.get_customer(resource_name=resource_name)
  File 
"C:\Users\Juan\miniconda3\envs\quick_p1\lib\site-packages\google\ads\googleads\v8\services\services\customer_service\client.py",
 
line 434, in get_customer
    response = rpc(
  File 
"C:\Users\Juan\miniconda3\envs\quick_p1\lib\site-packages\google\api_core\gapic_v1\method.py",
 
line 142, in __call__
    return wrapped_func(*args, **kwargs)
  File 
"C:\Users\Juan\miniconda3\envs\quick_p1\lib\site-packages\google\api_core\grpc_helpers.py",
 
line 68, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.PermissionDenied: 403 Request had insufficient 
authentication scopes.

What causes "403 Request had insufficient authentication scopes." ? how to 
i fixed?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a9afbe23-d7b2-4179-8c2a-84ed00c3acb6n%40googlegroups.com.
  • Er... Traktor Quick
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Traktor Quick
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to