Hi @Xiaoming,
I've the same issue.
I'm trying to use java library and for debug this issue I tried to use also 
oauth-doctor.
I've set (I think correcty, modifing the ads.properties file and adding 
also the *login-customer-id*), but the on java I' ve the error:

*Caused by: io.grpc.StatusRuntimeException: PERMISSION_DENIED: The caller 
does not have permission*

and trying to debug using oauth-doctor this output:

C:\xampp\htdocs\google-ads-doctor-master\google-ads-doctor-master\oauthdoctor\bin\windows\amd64>oauthdoctor.exe
 
-language java -oauthtype installed_app
2020/10/21 23:11:20 Client library language: java
2020/10/21 23:11:20 Google Ads API client library config file: 
C:\Users\mitsu\ads.properties
2020/10/21 23:11:20 Config keys and values:
2020/10/21 23:11:20     ClientID = ******************* (hidden)
2020/10/21 23:11:20     ClientSecret = ******************* (hidden)
2020/10/21 23:11:20     DevToken = ******************* (hidden)
2020/10/21 23:11:20     RefreshToken = ******************* (hidden)
2020/10/21 23:11:20     *LoginCustomerID = 6650*******
2020/10/21 23:11:20     PrivateKeyPath = <empty>
2020/10/21 23:11:20     DelegatedAccount = <empty>
2020/10/21 23:11:20 
*Please enter a Google Ads account ID:7189*******
2020/10/21 23:11:35 ERROR: Your credentials are invalid but we cannot 
determine the exact error. Please verify your developer token, client ID, 
client secret and refresh token.
2020/10/21 23:11:35 Attempting to regenerate refresh token...
2020/10/21 23:11:35 Visit the URL for the auth dialog:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=696260777485-3ek3fp1tb9j4gc0nsq2elcukjhfibf4h.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&state=state
2020/10/21 23:11:35 You are running Windows, so to properly copy and paste 
the URL into the command prompt:
1) Ensure that 'Quick Edit' mode is ON for your Command Prompt
2) Hold down the shift key
3) Highlight the URL
4) Right click on the highlighted area
Copy the code here to continue:
Enter Code >> 4/1AfDhmrgzylRug7it1uqBiDU5R7pUD_QWjY4qBOBq9fJtYQ04r_oqUC0ovTU
*2020/10/21 23:12:18 ERROR: OAuth test failed*.

...where as* login-customer-id*, I insert *the Manager Acount ID*, while 
the *Google Ads Account ID, is an test account managed by the Manager*.
Please can you help me where I wrong the steps?
Thanks and Regards
Il giorno mercoledì 9 settembre 2020 alle 20:18:37 UTC+2 adsapiforumadvisor 
ha scritto:

> Hi Abby,
>
> Thank you for reaching out. The error USER_PERMISSION_DENIED 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=zh-tw#user_permission_denied>
>  
> usually occurs when there is no link between the manager account 
> authenticated in the request and the client account specified in the 
> headers. If you are using the Google Ads API you need to include the 
> login-customer-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>
>  
> in the header as mentioned in this blog post 
> <https://ads-developers.googleblog.com/2019/01/new-required-header-for-google-ads-api.html>.
>  
> If the issue persists, could you please share the complete request and 
> response logs along with the loginCustomerId and clientCustomerId and the 
> email you used to generate the OAuth2 credentials via the *Reply 
> privately to author* option for me to further investigate?
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
>
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q24ZvGe: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/6dd92495-5522-4fab-a1e6-fade42abb661n%40googlegroups.com.

Reply via email to