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.
-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?