I\'ve successfully built an application that fetches an access and refresh token.
In my script I check if the access token is valid and if not I then use the refresh
Google now has a dedicated page in their API guide for this error where it says there are only 2 reasons for this...
The limit for each unique pair of OAuth 2.0 client and Google Analytics account is 25 refresh tokens. If the application continues to request refresh tokens for the same Client/Account pair, once the 26th token is issued, the 1st refresh token that was previously issued will become invalid.