Hi Everyone,
First off, I'd like to apologize if this is a silly question but I'm a total Adwords API newbie. I have the rails example project (google-api-ads-ruby/adwords_api/examples/adwords_on_rails/) working and modified it to include offline access in the initial request. I'm saving off the refresh token in my database for each user but I'm not sure what to do from there. After the initial access token expires, my calls to the API are failing with AdsCommon::Errors::OAuth2VerificationRequired .
Do I manually need to rescue errors from each API call to determine if the access token has expired?
Once I know the access token has expired, how do I use the refresh token to obtain a new access token?
Thanks in advance for any help!!