Hi
I'm working on a rails app with these mentioned versions :
ruby: 2.6.9
rails: 5.1.7
client library gem : google-ads-googleads version 16.0.0

after making successful authentication request and getting back the access 
token/refresh token, now i'm trying to make an api call to fetch all 
accessible customers with the code below :
*accessible_customers = 
client.service.customer.list_accessible_customers().resource_names*


but i'm getting this error instead of the list.. 


*accessible_customers = 
client.service.customer.list_accessible_customers().resource_names*

*WARN -- : CID: N/A, Host: googleads.googleapis.com:443, Method: 
/google.ads.googleads.v10.services.CustomerService/ListAccessibleCustomers, 
IsFault: yes, Request ID: lxAeZeSFwjYKUtx0Jk48jQ*

*Google::Ads::GoogleAds::Errors::GoogleAdsError: 
Google::Ads::GoogleAds::Errors::GoogleAdsError*

*from 
/Users/admin/.rvm/gems/ruby-2.6.9/gems/google-ads-googleads-16.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:67:in
 
`rescue in request_response'*

*Caused by GRPC::PermissionDenied: 7:The caller does not have permission. 
debug_error_string:{"created":"@1650742450.452686000","description":"Error 
received from peer 
ipv4:142.250.182.138:443","file":"src/core/lib/surface/call.cc","file_line":906,"grpc_message":"The
 
caller does not have permission","grpc_status":7}*

*from 
/Users/admin/.rvm/gems/ruby-2.6.9/gems/grpc-1.45.0-universal-darwin/src/ruby/lib/grpc/generic/active_call.rb:29:in
 
`check_status'*


Any insight into what might be really going on here is most appreciated

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/a9d34fcf-d0a5-4871-8807-c52475290213n%40googlegroups.com.
  • Er... Andy | OneIMS.com
    • ... Andy | OneIMS.com
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Shobha Solanki

Reply via email to