since yesterday my code was working fine and it's fetching the AdsAccount Details through the Service of "GetCustomer()". but today onwards its stop working and throwing the Below error,Google.Ads.GoogleAds.Lib.GoogleAdsExceptionHResult=0x80131500Message=Status(StatusCode=PermissionDenied, Detail="The caller does not have permission")Source=Google.Api.Gax.GrpcI have already added the "LoginCustomerId" in my config file. but still, it's not sorted out.My TestManager CustomerID: 2349150893
Developer token:XXXXXXXXXXXXXXXXXXX
since yesterday my code was working fine and it's fetching the AdsAccount Details through the Service of "GetCustomer()". but today onwards its stop working and throwing the Below error,Google.Ads.GoogleAds.Lib.GoogleAdsExceptionHResult=0x80131500Message=Status(StatusCode=PermissionDenied, Detail="The caller does not have permission")Source=Google.Api.Gax.GrpcI have already added the "LoginCustomerId" in my config file. but still, it's not sorted out.My TestManager CustomerID: 2349150893
Developer token:XXXXXXXXXXXXXXXXXXX
since yesterday my code was working fine and it's fetching the AdsAccount Details through the Service of "GetCustomer()". but today onwards its stop working and throwing the Below error,Google.Ads.GoogleAds.Lib.GoogleAdsExceptionHResult=0x80131500Message=Status(StatusCode=PermissionDenied, Detail="The caller does not have permission")Source=Google.Api.Gax.GrpcI have already added the "LoginCustomerId" in my config file. but still, it's not sorted out.My TestManager CustomerID: 2349150893
Developer token:XXXXXXXXXXXXXXXXXXX
Me too. I am wondering if there is a fault Googles end as a few of us are seeing this
On Wednesday, 13 February 2019 11:47:25 UTC, Ananth Sakthivel wrote:
since yesterday my code was working fine and it's fetching the AdsAccount Details through the Service of "GetCustomer()". but today onwards its stop working and throwing the Below error,Google.Ads.GoogleAds.Lib.GoogleAdsExceptionHResult=0x80131500Message=Status(StatusCode=PermissionDenied, Detail="The caller does not have permission")Source=Google.Api.Gax.GrpcI have already added the "LoginCustomerId" in my config file. but still, it's not sorted out.My TestManager CustomerID: 2349150893Developer token:XXXXXXXXXXXXXXXXXXX
please have a look on my code below, also I attached the screenshot of my errors.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/30e348db-7610-43e4-8d74-a3d83b65e11d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/15d48362-942c-481e-8fc3-2da0ce7493d4%40googlegroups.com.
since yesterday my code was working fine and it's fetching the AdsAccount Details through the Service of "GetCustomer()". but today onwards its stop working and throwing the Below error,
Hello,
I am using this 'Get Account Hierarchy' script: https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy
What I want is to see the full account hierarchy of accounts to which I have access with my authenticated email address. This script should show me 1) direct access accounts 2) manager accounts 3) sub manager accounts. The above script successfully shows me accounts to which I have direct access. However, it throws the below error on manager accounts:
"
Request made: ClientCustomerId: 3351472384, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v6.services.GoogleAdsService/Search, RequestId: yd0tvbMgYRXSdHe0a4GL1g, IsFault: True, FaultMessage: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid
Request with ID 'yd0tvbMgYRXSdHe0a4GL1g' failed with status 'PERMISSION_DENIED' and includes the following errors:
Error with message 'User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid'.
An exception has occurred, use %tb to see the full traceback.
"
I'm not clear on why the error message is that I "don't have permission to access customer." even though I can access this customer via the Google Ads online UI. I understand that I could, instead of using the above script as it is written, I could make a new google-ads.yaml file per manager account and get the sub-accounts that way. But that would be cumbersome. Is there not a way to get all the account hierarchy with the above script?
Hi Austin,
Thank you for reaching out. This code example would go through the account hierarchy and print them out. If you don’t specify the managerId, then the direct accounts under the authenticated manager would be fetched first to build the hierarchy. Otherwise, if you specify the managerId to query on then you have to specify the loginCustomerId as well. You could read through the comments in the code to better understand how the code works.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||
Hi Lewis,
Thank you for reaching out. It’s very likely you didn’t set the 'login-customer-id' in the configuration file. Please do so and try it again.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||