Hi Florent, All of the scripts in the *examples* folder are meant to be run from the command line, as they write to stdout and sometimes read from stdin. For example, the *GetRefreshToken.php* script will write a URL you'll need to use to get a code which you'll then have to enter at a subsequent prompt.
Cheers, Josh, AdWords API Team On Monday, June 16, 2014 6:00:56 PM UTC-4, f.de...@webmarketing-booster.com wrote: > > Hello, > > I'm currently trying to use the Adwords API PHP but I have trouble > connecting. I downloaded the Seller GoogleAds-php-lib > > I followed the guide for authentication via OAuth 2.0. I modified the file > auth.ini indicating my developerToken my userAgent my client_id and my > client_secret > > When I execute the GetRefreshToken.php file via my browser with the > following URL: > http://localhost/site_web/googleads/examples/AdWords/Auth/GetRefreshToken.php > > I have the following return: > Log in to your AdWords account and open the Following URL: > https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=XXXXXX-fn3lphn8rmm7uksvdrhjoimuc0j1bd9h.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline > > After Approving the authorization token enter the code here: OAuth2 Your > Credentials are incorrect. Please see the example GetRefreshToken.php. > {"Error": "invalid_request", "error_description": "Missing required > parameter: code"} > > Following the url above, I get the authorization code well. But then where > do you copy? > > Thanks in advance > > Florent > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.