I'm getting that error
java.lang.IllegalArgumentException: Please use the Builder and call setJsonFactory, setTransport and setClientSecrets
trying to execute the following line:
credential.setRefreshToken(token.getRefreshToken())
It's very weird because the 'setRefreshToken' method is waiting for a String and the 'token.getRefreshToken()' is returning a String.
Credential class if form package: com.google.api.client.auth.oauth2, and 'token' it's a custom object taht contains all the data related to Shopping access token and refresh token. The token object is arriving full of data (not null or with empty data)