RE: Private message regarding: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

25 views
Skip to first unread message

googleadsapi...@google.com

unread,
Mar 20, 2019, 2:27:16 PM3/20/19
to AdWords API and Google Ads API Forum
Hello Peter,

Poki replied to you privately 2 weeks ago. Looks like the login-customer-id is not set when she took a look at your logs. One option you would try is setting loginCustomerId programmatically when you construct your GoogleAdsClient as shown below:

googleAdsClient = GoogleAdsClient.newBuilder().fromPropertiesFile().
                              setLoginCustomerId(2048921294L).build();

If that works, then the issue lies with the configuration file.

@Ananth,

Glad you solved the issue. While adding the LoginCustomerId we should make sure there are no spaces and no dashes in the ID.

Regards,
Sai Teja, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages