Cant Connect to Adwords API

49 views
Skip to first unread message

Moe Shahzad

unread,
Jul 3, 2025, 11:54:11 AM7/3/25
to Google Ads API and AdWords API Forum
Hey,

I got access from Google for API access that we are using to access the Local Service Ads API. However when we use that same developer token for Google Ads API, while it authenticates we are unable to retrieve any client data from it. 

When we use that developer token to get new access token in Postman it works. It allows us to authenticate but doesnt allow us to access any client data!

This is the GET endpoint I am using:  https://googleads.googleapis.com/v19/customers/9xxxxxxxxxx
This is what Postman returns:

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/v19/customers/9xxxxxxxxx</code> was not found on this server.  <ins>That’s all we know.</ins>  I have added Adwords in the scopes when setting up Oauth and I have also added test users. Do I need a new developer token for Google Ads API or am I missing something in my API connection set up?



Moe Shahzad

unread,
Jul 3, 2025, 2:19:11 PM7/3/25
to Google Ads API and AdWords API Forum
My redirect URI is: https://oauth.pstmn.io/v1/callback
I have added Authorized Domain: oauth.pstmn.io

Google Ads API Forum Advisor

unread,
Jul 3, 2025, 4:28:24 PM7/3/25
to sch...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Could you let us know to which service the mentioned endpoint belongs to and also provide us with the complete API logs (request and response logs with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-07-03 20:27:34Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rh9xR:ref" (ADR-00316996)



Reply all
Reply to author
Forward
0 new messages