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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/7115cdd5-b2b5-42c4-b0c6-1e59801ed68e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.