Re: Refresh token not being returned in oauth2info

2015-03-17 Thread Josh Radcliff (AdWords API Team)
Hi, Thanks, that clears things up a bit. I just tried running the GetRefreshToken.php example using my account and I was able to obtain a refresh token without issues. Could you modify your

Re: Refresh token not being returned in oauth2info

2015-03-17 Thread jody stein
Yes here is the PHP to process the code returned which used to return refresh_token an now returns just the client_id and client_secret. I am using the right paramenters, access_type=offline and tried adding prompt=consent. $user = new AdWordsUser(); $user->LogAll(); $handler = $user->GetOAuth

Re: Refresh token not being returned in oauth2info

2015-03-17 Thread Josh Radcliff (AdWords API Team)
Hi, I may be misunderstanding your question, but I think you're missing a step. After the user accepts the OAuth prompt, your redirect endpoint will receive an *authorization code* (the *https://domain.com/pro/login/googleredirect.php?code=4/xxx* request below), which it then must submit in or

Re: Refresh token not being returned in oauth2info

2015-03-16 Thread jody stein
I am running into the same problem. I have not made any changes however I am not able to add new users. The refresh token is no longer being returned. Here is the request URL I am using. https://accounts.google.com/o/oauth2/auth?prompt=consent&response_type=code&client_id=.apps.googleuser

Re: Refresh token not being returned in oauth2info

2014-06-09 Thread Rob
Hi Mike, Have you tried adding the prompt=consent flag to your request? If you've already authorized the app once before, then this flag seems to be required in order to get a refresh token on subsequent requests. https://developers.google.com/accounts/docs/OAuth2Login#re-consent On Thursday,

Re: Refresh token not being returned in oauth2info

2014-06-06 Thread Mike Swan
Hi Josh, I removed the state parameter and same result: new auth creds, able to pull data, but no refresh token included. Anything other ideas? I noticed my CC in my billing preferences expired, does this have anything to do with it? Like I said, I can pull data, just have to re-authenticat

Re: Refresh token not being returned in oauth2info

2014-06-06 Thread Josh Radcliff (AdWords API Team)
Hi Mike, This is, admittedly, a bit of a wild guess, but I noticed that when I went through the refresh token example my auth URL did *not* include a *state* parameter. Maybe give it a shot with that parameter removed? Cheers, Josh, AdWords API Team On Thursday, June 5, 2014 4:53:13 PM UTC-4,

Refresh token not being returned in oauth2info

2014-06-06 Thread Mike Swan
Hi All, I have scoured the group and the Internet (SO, etc.) and I can't find any direction. For some reason a refresh token is not being returned through the API along with the access token. My auth URL looks like this: https://accounts.google.com/o/oauth2/auth?state=10&response_type=code&c