Hello Paul,

Thanks for your reply.

I've run the GetRefreshToken.php and got an URL back with the text that I 
should open it in the browser.
On that URL I got a token, so that script works perfectly.

Any other idea?

Regards,

Jur

Op donderdag 15 augustus 2013 17:33:24 UTC+2 schreef Paul Matthews (AdWords 
API Team):
>
> Can you confirm that you've both followed the instructions in the OAuth2 
> Wiki page <https://code.google.com/p/google-api-adwords-php/wiki/OAuth2>?
>
> Specifically the part about running the GetRefreshToken.php 
> example<https://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/Auth/GetRefreshToken.php>and
>  added the refresh_token to your 
> auth.ini<https://code.google.com/p/google-api-adwords-php/source/browse/src/Google/Api/Ads/AdWords/auth.ini>
> ?
>
> Regards,
>
> - Paul, AdWords API Team.
>
> On Thursday, 8 August 2013 12:22:57 UTC-4, Jur wrote:
>>
>> Hello Alex,
>>
>> I've the exact same problem.
>> Were you able to generate a refresh_token with the GetRefreshToken.php 
>> script?
>> I was able to do this, but can't get any campaign list visible without 
>> the invalid grant error.
>>
>> Did you find a solution?
>>
>> Regards,
>>
>> Jur
>>
>>
>> Op woensdag 7 augustus 2013 17:11:18 UTC+2 schreef 
>> [email protected]:
>>>
>>> Hi,
>>>
>>> i setted up a PHP script to connect to Adwords API.
>>> By using the $campaignService->get($selector) method I get always the 
>>> error "invalid_grant". 
>>> Here the Stack Trace:
>>>
>>>
>>> <https://lh3.googleusercontent.com/-0y3vXieQUiE/UgJdrOEATVI/AAAAAAAAAAM/QgXdLHEJCmQ/s1600/Bildschirmfoto+vom+2013-08-07+16%3A41%3A38.png>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> The only thing I found is that for some reason the makeRequest-method 
>>> uses as "grant_type" the value "refresh_token" although i setted the value 
>>> "authorization_code".
>>>
>>> The version I Used : v201306 
>>>
>>> Does anybody know what i'm doing wrong?
>>>
>>> P.S. When I use curl on the console I get the access to adwords.
>>>
>>> thanks,
>>> alex
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to