So i happened to figure this one out.. apparently there was nothing wrong with the code.. There was some new terms and conditions or something that needed to be accepted inside google ads api center.
once i accepted that the api started to work as expected On Sunday, April 24, 2022 at 1:20:22 AM UTC+5:30 Andy | OneIMS.com wrote: > 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 > <http://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 > <http://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/5005a5e0-f7b4-4ff1-b002-93eac7110a50n%40googlegroups.com.