Error : The caller does not have permission (Request ID: lxAeZeSFwjYKUtx0Jk48jQ)

926 views
Skip to first unread message

Andy | OneIMS.com

unread,
Apr 23, 2022, 3:50:22 PM4/23/22
to Google Ads API and AdWords API Forum
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

Andy | OneIMS.com

unread,
Apr 24, 2022, 5:24:10 PM4/24/22
to Google Ads API and AdWords API Forum
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

Google Ads API Forum Advisor

unread,
Apr 25, 2022, 12:16:22 AM4/25/22
to an...@oneims.com, adwor...@googlegroups.com
Hi Andy,

Thank you for the update.

We are glad to hear that. If you have concerns about the Google Ads API/ AdWords API, please feel free to add those here and provide more details to it so our team can provide support to you.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2a6DTO:ref

Shobha Solanki

unread,
Apr 30, 2022, 10:27:28 AM4/30/22
to Google Ads API and AdWords API Forum

Can you please help where are these terms and conditions as we are also facing the same issue.. Can you please please help

Google Ads API Forum Advisor

unread,
May 2, 2022, 11:52:55 PM5/2/22
to shobha....@gmail.com, adwor...@googlegroups.com
Hi All,

Thank you for the reply.

Upon checking on this thread, it seems that the concern is about the terms and conditions that needed to be accepted inside the Google Ads API center.

With this, please note that terms and Conditions must be accepted in the API Center where your developer token is found. You would need to login as the MCC / manager account that is associated to your developer token in order to complete the terms and conditions. This must be done to run API calls for both production and test accounts.

Should you require further assistance, you may reach out to the Google Ads Product Support team, via this link, as they should be better equipped to provide guidance on how to navigate the UI to accept the terms and conditions.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2a6DTO:ref
Reply all
Reply to author
Forward
0 new messages