Hi, Thanks for the details. Unfortunately, I don't think that's the problem, because I used the google id of the main account for the login-customer-id and that of the customer directly, but it doesn't work. Also, I generated the refresh token through my account which was added as admin for the main ads account and the main account, but neither of them work. I work the same way as for the ads account, which works correctly. I use the google id of the MCC account in login-customer-id which has rights to the ads client account.
I also specify that with access that does not work for the google ads API. I have no problem for google adwords api and I provide MCC account google id as login-customer-id. Thank you, Le lundi 11 avril 2022 à 21:38:40 UTC+2, adsapi a écrit : > Hi Cauz, > > Thank you for providing information. > > With regards to your concern, you’ve encountered ‘USER_PERMISSION_DENIED > <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#user_permission_denied>' > > error. The ‘USER_PERMISSION_DENIED’ usually occurs due to incorrectly > setting the 'login-customer-id’ in the request or not specifying > login-customer-id in the request. Note that when a user doesn't have > permission to access a customer and you’re accessing a client customer then > the manager's customer ID must be set in the 'login-customer-id’ in the > header request. To resolve this, you will need to ensure that your OAuth2 > credentials > <https://developers.google.com/google-ads/api/docs/oauth/cloud-project> > were generated while logged in as the user / email address that has access > <https://support.google.com/google-ads/answer/1704346> to the customer ID > in your request. Also, if the said user / email address is one that has > access to the MCC / manager of the customer account, then you may specify > the MCC / manager account's ID as the login-customer-id > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>. > > Let me know if you have any question. > Thanks, > [image: Google Logo] > Nirmita > Google Ads API Team > > > ref:_00D1U1174p._5004Q2ZL4lT: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 "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/98910849-9be6-46a6-872a-29ddeab7e156n%40googlegroups.com.
