Thanks for a quick response!
Also thanks for the clarification, I expected something along these lines.
I still don't understand why I wouldn't have permissions to access
customers I created myself 5 minutes ago. The USER_PERMISSION_DENIED i
get is when I use --customerId parameter 7930612705.
Do I assume correctly that I should be able to query customers I am able
to see/change in the administration?
Or is it necessary to additionally set up permissions somewhere?
Matěj Humpál
Developer Lead
Follow Bubble s.r.o.
Dne 12. 8. 2021 v 9.09 Google Ads API Forum Advisor napsal(a):
Hi MH,
Thanks for reaching out to us.
Kindly note that you may receive error ‘USER_PERMISSION_DENIED’ if
you’re incorrectly setting the 'login-customer-id’ in the request or
when a user doesn't have permission to access a customer and you’re
accessing a client customer using 'login-customer-id’ in the request.
That being said, you may refer to this
<https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en>
documentation on how to specify the login-customer-id property in the
request properly.
With regards to the issue found in the logs you’ve shared, the error
OPERATION_NOT_PERMITTED_FOR_CONTEXT
<https://developers.google.com/google-ads/api/reference/rpc/v8/ContextErrorEnum.ContextError?hl=en#operation_not_permitted_for_context>
means that sometimes the operation may work for some configurations,
but for your particular configuration, it will not work.
That being said, the target customer ID from your request, 7868560570,
is a test manager account, which is why you are receiving the error,
OPERATION_NOT_PERMITTED_FOR_CONTEXT. The CampaignBudgetService
<https://developers.google.com/google-ads/api/reference/rpc/v8/CampaignBudgetService>
may only be used on a client customer account (i.e. an account that
has campaigns in it). Please retry using a client customer.
Let us know if you have any further questions.
Regards,
Google Logo
Yasar Ramjan Makandar
Google Ads API Team
ref:_00D1U1174p._5004Q2LmM8U:ref --
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
<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
<http://groups.google.com/group/adwords-api?hl=en>
---
You received this message because you are subscribed to a topic in the
Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/adwords-api/If1zxD7UBmk/unsubscribe
<https://groups.google.com/d/topic/adwords-api/If1zxD7UBmk/unsubscribe>.
To unsubscribe from this group and all its topics, send an email to
adwords-api+unsubscr...@googlegroups.com
<mailto:adwords-api+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/rOizA000000000000000000000000000000000000000000000QXPT7600ohHvqFjuRluJRp6A-xStVg%40sfdc.net
<https://groups.google.com/d/msgid/adwords-api/rOizA000000000000000000000000000000000000000000000QXPT7600ohHvqFjuRluJRp6A-xStVg%40sfdc.net?utm_medium=email&utm_source=footer>.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c961d5ae-9567-09b3-8ddf-319fcf387bbb%40followbubble.com.