Re: Issues running GetRefreshToken.php

2013-09-04 Thread solanki pravin
On Wednesday, August 21, 2013 3:02:12 AM UTC+5:30, Alan Coleman wrote: > > Hello everyone, > > I'm trying to get hold of a refresh_token for my auth.ini file > > I understand from the > guidethat I > need to run GetRefreshToken.php,

Re: Issues running GetRefreshToken.php

2013-09-03 Thread Alan Coleman
Hi Ewan and Evgeniy, Okay, GetRefreshToken.php needs to be run through the command line. My fault for not reading the documentation properly! This gave me a URL and a token to use to access the final refresh token. Thanks again for taking the time to reply to my issue. On Wednesday, August 28

Re: Issues running GetRefreshToken.php

2013-08-28 Thread Alan Coleman
Hi Ewan and Evgeniy, This doesn't seem to be the simple process the Google guys are making out. I'm following this process: https://code.google.com/p/google-api-adwords-php/wiki/OAuth2 I've added the client_id and client_secret to the SetOAuth2Info method array as you suggested above. Howeve

Re: Issues running GetRefreshToken.php

2013-08-21 Thread Ewan Heming
Hi Alan, As Evgeniy mentioned, there's probably something wrong with your PHP configuration, but you could try adding the parameters to the example file instead of auth.ini. At line 85 of GetRefreshToken.php you should find the following code: $user = new AdWordsUser(); $user->

Re: Issues running GetRefreshToken.php

2013-08-21 Thread Evgeniy Bogdanov
I think that for some reason this library unable to read auth.ini and build needed data structure to get OAuth2 token. 2013/8/21 Alan Coleman > Hi Ewan, > > Here is the error I'm receiving when I run GetRefreshToken.php > > Catchable fatal error: Argument 1 passed to > OAuth2Handler::GetAutho

Re: Issues running GetRefreshToken.php

2013-08-21 Thread Alan Coleman
Hi Ewan, Here is the error I'm receiving when I run GetRefreshToken.php Catchable fatal error: Argument 1 passed to OAuth2Handler::GetAuthorizationUrl() must be of the type array, null given, called in C:\wamp\www\adwords.fbt\adwords_api_php_4.2.5\examples\AdWords\Auth\GetRefreshToken.php o

Re: Issues running GetRefreshToken.php

2013-08-21 Thread Alan Coleman
Hi Ewan, Thanks for replying, I've actually been reading the entries on your blog, great stuff. I should have noted the full error last night, it's a project I'm working on at home, duh! I'll place the full error later on. Some background. I have a development version of my web app running loc

Re: Issues running GetRefreshToken.php

2013-08-20 Thread Ewan Heming
Hi Alan, What's the error you're getting? Regards, Ewan -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You receive

Issues running GetRefreshToken.php

2013-08-20 Thread Alan Coleman
Hello everyone, I'm trying to get hold of a refresh_token for my auth.ini file I understand from the guidethat I need to run GetRefreshToken.php, however there doesn't seem to be much advice on actually *how* to run this file. At t