Hi Ernie, When I specify the login-customer-id to be 879-989-3196 (the parent account), I got error message: "Metrics cannot be requested for a manager account. To retrieve metrics, issue separate requests against each client account under the manager account."
I was able to use the code to access report for 986-721-2697, another child account under 879-989-3196. But the same code just does not work for 743-137-2750 and 462-748-6131, with error 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" Best, Yao On Tuesday, April 6, 2021 at 7:36:46 PM UTC-7 adsapiforumadvisor wrote: > Hi Yao, > > Thank you for posting your concern. > > Could you confirm if the specific error that you encountered is > USER_PERMISSION_DENIED > <https://developers.google.com/google-ads/api/docs/best-practices/common-errors#user_permission_denied>? > > If yes, then did you try to follow the suggestion specified in the error > message or prevention tip discussed on the document I provided? You should > specify the customer ID *879-989-3196 *in *login-customer-id *(without > hyphen) which the authenticated user has access. > > If the error persists after trying the suggestion, then please provide the > following details via *Reply privately to author* option: > > - Complete request > > <https://developers.google.com/google-ads/api/docs/concepts/field-service#request> > > and response > > <https://developers.google.com/google-ads/api/docs/concepts/field-service#response> > > logs with request ID > > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> > > generated on your end > - login user account used to generated Oauth2 credential > > <https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project> > > and has access to the MCC account > > > Regards, > [image: Google Logo] > Ernie John Blanca Tacata > Google Ads API Team > > > ref:_00D1U1174p._5004Q2EqPyA:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/1df6ed27-d746-4314-8add-d010700fd427n%40googlegroups.com.
