Hi all,
I have a problem trying to refresh the access token (OAuth2.0). I'm using the googleads-php-lib and everything is fine with the authorization process, request for tokens and I get access to the AdWords API.
The problem appears when I try to refresh the access token after about an hour. If I try to use:
$handler = $user->GetOAuth2Handler();
$new = $handler->RefreshAccessToken( $user->GetOAuth2Info() );
All I get is "An error has occured: { "error" : "invalid_grant" }"
I have checked the $user->GetOAuth2Info() data and it is the correct data (client_id, client_secret, refresh_token, timestamp, expires_in). Have anyone any ideea why do I get that error instead of the refreshed access_token?
thanks,
Nelu