Authentication problems when migrating API AdWords to API ADS

108 views
Skip to first unread message

Victor P

unread,
Mar 21, 2022, 9:50:27 AM3/21/22
to Google Ads API and AdWords API Forum

Hi,

I'm looking at migrating to API ads, but I'm having problems with authentication. The system with the ADWords API is working correctly, but when making the first call to API ADS launches the following error ( using the same refresh token ):

{ "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https:\/\/developers.google.com\/identity\/sign-in\/web\/devconsole-project.", "code": 16, "status": "UNAUTHENTICATED", "details": [ { "@type": "google.ads.googleads.v10.errors.googleadsfailure-bin", "data": "<Unknown Binary Data>" }, { "@type": "grpc-status-details-bin", "data": "<Unknown Binary Data>" }, { "@type": "request-id", "data": "5MsWzvm0tz3aO-C4UATbpA" } ] }

Captura2.JPG

We do not understand why we can not make SearchStream queries (in red) but if we obtain access queries AccessibleCustomers (in blue):

 Captura.jpg

Can someone know where the problem can be?

Thank you very much!

Google Ads API Forum Advisor

unread,
Mar 22, 2022, 3:18:50 AM3/22/22
to vpa...@reexporta.com, adwor...@googlegroups.com
Hi Victor,

Thank you for providing more details to your concern.

Please check if your API environment was completely set up based on this document. If the error persists even though the API environment is completely set up, then please provide the user account / email address that you've used in authentication and the complete request and response logs with request ID and request header generated on your end to further investigate.

If you haven't enabled the logging of the API transactions for the specific client library that you are using, then please refer to the specific guide below:
Java - https://developers.google.com/google-ads/api/docs/client-libs/java/logging
.Net - https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging
PHP - https://developers.google.com/google-ads/api/docs/client-libs/php/logging
Python - https://developers.google.com/google-ads/api/docs/client-libs/python/logging
Ruby - https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging
Perl - https://developers.google.com/google-ads/api/docs/client-libs/perl/logging

You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


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