RE: 7 PERMISSION_DENIED: User doesn't have permission to access customer
Hello, Thank you for writing to us. If you are requesting OAuth credentials from a manager account and accessing a related customer account, you will need to set the login-customer-id header to the customer ID of the manager account, removing any hyphens in the Id and customer id in the request code. Could you please confirm if you are using the credentials associated with the login customer id to make API call? If yes, could you please share the email address used while generating Oauth credentials and the client customer id against which you are trying to make the API call for me to investigate this further on my end? P.S. Please use Reply privately to author option while sharing the details for investigation. Regards, Nikisha Patel, Google Ads API Team ref:_00D1U1174p._5001UOEc2P: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/ruyRP0Q2M7OY000Inikp9ZS2a3L5KWudkizA%40sfdc.net.
Re: 7 PERMISSION_DENIED: User doesn't have permission to access customer
Do you have any idea how can i fix it? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/16ac7454-30e1-4345-b48d-5f7a1f84cc87%40googlegroups.com.
Re: 7 PERMISSION_DENIED: User doesn't have permission to access customer
W dniu poniedziałek, 16 grudnia 2019 09:25:55 UTC+1 użytkownik Grzegorz Cieślik napisał: > > Hi, > I use this lib ( https://github.com/Opteo/google-ads-api) for connect > googleAds > with my service in node.js. I try connect to my account, but i have this > error message. > > Error: 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#login-customer-id > at CustomerClientLinkService. > (/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:178:23) > at Generator.throw () > at rejected > (/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:6:65) > code: { authorizationError: 2 }, > > > My code here > authorize() { const client = new GoogleAdsApi({ client_id: this.clientId, client_secret: this.clientSecret, developer_token: this.developerToken }); this.customer = client.Customer({ customer_account_id: this.customerAccountId, login_customer_id: this.loginCustomerId, refresh_token: this.refreshToken }); } Do you have any idea how can i fix it? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/40bd8d5d-520f-4ded-97bf-a3fe1fb69071%40googlegroups.com.
7 PERMISSION_DENIED: User doesn't have permission to access customer
Hi, I use this lib ( https://github.com/Opteo/google-ads-api) for connect googleAds with my service in node.js. I try connect to my account, but i have this error message. Error: 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#login-customer-id at CustomerClientLinkService. (/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:178:23) at Generator.throw () at rejected (/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:6:65) code: { authorizationError: 2 }, My code here authorize() { const client = new GoogleAdsApi({ client_id: this.clientId, client_secret: this.clientSecret, developer_token: this.developerToken }); this.customer = client.Customer({ customer_account_id: this.customerAccountId, login_customer_id: this.loginCustomerId, refresh_token: this.refreshToken }); } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c62b9477-7c3d-4552-a26c-02da030a6eaf%40googlegroups.com.