Hi,
Thank you for reaching out to Google Ads API Forum.
Please see responses to your questions below.
A) Is there a way to get a refresh token without user input/verification? If yes, how? If no, why not(asking academically)?
- Generating a refresh token requires a user input since refresh token is generated when a user authorizes an app to access the Google Ads API on their behalf.
B) Assuming I change my project's status to "In Production", how long would my refresh tokens last then? Would my project be visible to everyone with a Google Account? What exactly would change in the visibility of the project for outsiders?
-As stated here , save refresh tokens in secure long-term storage and continue to use them as long as they remain valid. Limits apply to the number of refresh tokens that are issued per client-user combination, and per user across all clients, and these limits are different. If your application requests enough refresh tokens to go over one of the limits, older refresh tokens stop working. You may also refer to this guide (https://developers.google.com/identity/protocols/oauth2#expiration) for more information about refresh token expiration. Additionally, kindly check this documentation (https://developers.google.com/google-ads/api/docs/oauth/cloud-project#choose_a_user_type_and_publishing_status) for the key attributes and limitations of each combination of setting the user type and publishing status.
I hope this helps.
![]() |
Google Ads API Team |