I am writing an app which automatically imports cost data for adwords campaigns. This is something that runs in a Rails app and is triggered by a cron job. A user is not logged into the app in order for it to be triggered.
I have created an application-based client id and with it, generated an access token and refresh token.
Does this access token last or do I need to have something in my system refresh the token? If so, are there any examples of how to do this without an actual user clicking and pasting stuff? I'm certain this is a problem that others have solved already and I my head is starting to hurt trying to figure it out.
Thanks,
Eric