Hi there,
I've got an ACTION_NOT_PERMITTED error when trying to create SharedSet. I
am using Python with the latest version of Google Ads lib (v17).
The user used in this requests has "Standard" access to the account where I
want to create the shared set on, which should be enough in terms of rights.
Please find below the full request/response trace:
Request made: ClientCustomerId: xxxx, Host: googleads.googleapis.com,
Method:
/google.ads.googleads.v17.services.SharedSetService/MutateSharedSets,
RequestId: hv-aC6rpg9rx-vW3YSZyHQ, IsFault: True, FaultMessage: The user
does not have permission to perform this action on the resource or call a
method.
Traceback (most recent call last):
File "/home/my-proj/app/script1.py", line 69, in <module>
main()
File "/home/my-proj/app/script1.py", line 43, in main
shared_set_resource = SharedSet(ga.credentials, client_info).create()
File "/home/my-proj/app/lib/ads.py", line 136, in create
shared_set_response = shared_set_service.mutate_shared_sets(
File
"/home/my-proj/venv/lib/python3.9/site-packages/google/ads/googleads/v17/services/services/shared_set_service/client.py",
line 513, in mutate_shared_sets
response = rpc(
File
"/home/my-proj/venv/lib/python3.9/site-packages/google/api_core/gapic_v1/method.py",
line 131, in __call__
return wrapped_func(*args, **kwargs)
File
"/home/my-proj/venv/lib/python3.9/site-packages/google/api_core/grpc_helpers.py",
line 76, in error_remapped_callable
return callable_(*args, **kwargs)
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
277, in __call__
response, ignored_call = self._with_call(
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
332, in _with_call
return call.result(), call
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
171, in result
raise self._exception
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
315, in continuation
response, call = self._thunk(new_method).with_call(
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
343, in with_call
return self._with_call(
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
332, in _with_call
return call.result(), call
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
171, in result
raise self._exception
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
315, in continuation
response, call = self._thunk(new_method).with_call(
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
343, in with_call
return self._with_call(
File
"/home/my-proj/venv/lib/python3.9/site-packages/grpc/_interceptor.py", line
329, in _with_call
call = self._interceptor.intercept_unary_unary(
File
"/home/my-proj/venv/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
line 99, in intercept_unary_unary
self._handle_grpc_failure(response)
File
"/home/my-proj/venv/lib/python3.9/site-packages/google/ads/googleads/interceptors/exception_interceptor.py",
line 71, in _handle_grpc_failure
raise self._get_error_from_response(response)
google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC
that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
debug_error_string = "UNKNOWN:Error received from peer
ipv4:142.250.184.202:443 {grpc_message:"The caller does not have
permission", grpc_status:7,
created_time:"2024-09-18T13:28:17.137407108+00:00"}"
>, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
debug_error_string = "UNKNOWN:Error received from peer
ipv4:142.250.184.202:443 {grpc_message:"The caller does not have
permission", grpc_status:7,
created_time:"2024-09-18T13:28:17.137407108+00:00"}"
>, errors {
error_code {
authorization_error: ACTION_NOT_PERMITTED
}
message: "The user does not have permission to perform this action on the
resource or call a method."
}
request_id: "hv-aC6rpg9rx-vW3YSZyHQ"
, 'hv-aC6rpg9rx-vW3YSZyHQ')
Thanks in advance !
Ionut
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 on the web visit
https://groups.google.com/d/msgid/adwords-api/06a24bfa-1aee-4368-a40f-34d7ffcd18abn%40googlegroups.com.