Hi,
Thank you for reaching out to the Google Ads API support team.
After reviewing your concern, I understand that you want to generate a refresh token automatically on the server. The below approach might address your concern.
Also, please check out Choose a user type and publishing status documentation; it will explain how to prevent the refresh token expiration by publishing status to 'In Production'.
I hope this helps. Kindly get back to us if you have any queries related to the Google Ads API.
![]() |
Google Ads API Team |
![]() |
Google Ads API Team |