Hey Mark,

Thanks for your response. Your description of the variables helped me a 
lot. I had the mental model backwards.

I replaced *login-customer-id* with the oauth token UID, and the download 
runs as expected.

Thanks for your help!

On Tuesday, February 23, 2021 at 1:28:51 PM UTC+11 adsapiforumadvisor wrote:

> Hi Rob,
>
> Thanks for raising this to us.
>
> Given the error string (User doesn't have permission to access customer) 
> provided, I can see that you've encountered the USER_PERMISSION_DENIED 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors#user_permission_denied>
>  error 
> which signifies that the authorized customer does not have access to the 
> operating customer. That said, could you confirm if the OAuth2 credentials 
> being used was generated from a user’s email address that has an access to 
> the *login-customer-id* found in your API request header? Also, could you 
> confirm if the *login-customer-id *is correct (as the manager account ID 
> without hyphens)? If indeed the user has right access credentials to the 
> *login-customer-id*, could you provide us the details below (via *Reply 
> privately to author* option) so our team can further investigate?
>
>    - 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>
>     (with request-id 
>    
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>    ) logs 
>    - Email Address used to authenticate the API call 
>    - Customer ID of the authenticated user 
>
> As an aside, since you're using the Ruby version of the client library, 
> could you try following the configuration guide as mentioned here 
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/configuration>
> ?
>
> Regards,
> [image: Google Logo] 
> Mark Kevin Albios 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2CThqf: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/e33d51d8-bd83-4cb2-a220-2a2f2dab2661n%40googlegroups.com.

Reply via email to