Hi Koshish,
Thank you for reaching out. This error generally occurs when the refresh token is invalid or expired. Could you please follow this guide to re-generate the refresh token and retry your request? If the error persists after re-generating your credentials, could you please share the complete request and response logs along with the client customer id and the email address used while generating the OAuth2 credentials for me to investigate further? Please use Reply privately to author option while sharing the details.
Regards,
Nikisha Patel, Google Ads API Team
Hi Koshish,
Ideally, the same credentials should work on all the three servers provided everything else (user making the call, account etc.,) is same on all the server. Could you please verify your credentials using the below cURL request and see if you are able to generate the access token? If your credentials are correct, you should be able to generate an access token for the below CURL request.
curl https://www.googleapis.com/oauth2/v4/token \
-d refresh_token=your-refresh_token \
-d client_id=your-client-id \
-d client_secret=your-client-secret \
-d grant_type=refresh_token
If your credentials are incorrect or still facing issue then you could try generating a new refresh token with the help of this guide and retry your request. If not, could you please share the complete request and response logs along with the client customer id and email address authenticating the call for me to investigate this further on my end?
P.S: Please use Reply privately to author option while sharing the details.
Regards,
Nikisha Patel, Google Ads API Team