Hi,
Thank you for reaching out to the Google Ads API support team.
Kindly note that the “401 Unauthorized” error might happen if you were not creating the token precisely the correct way. Could you confirm if you tried following the instructions discussed in this document?
If not, please go through all the steps mentioned in the suggested documentation. Also, you can refer to this troubleshooting documentation to know the troubleshooting steps that you have to follow when you get an "unauthorized" error.
However, your issue remains unresolved, please get back to us the complete API logs (request and response with request-id and request header) generated at your end so that we can check from our end and assist you further. For this, you have to enable logging if you are using a client library.
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 the Reply privately to the author option or a direct private reply to this email.
![]() |
Google Ads API Team |