Hi, Are you running GetRefreshToken.php from the command line? All of the examples are meant to be run from the command line, as they write to stdout and (in some cases) read from stdin.
Also, if you haven't already done so, I'd recommend going through the PHP library's Using OAuth 2.0 page <https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0>. It contains step-by-step instructions on running the example and updating your configuration file. Cheers, Josh, AdWords API Team On Wednesday, September 3, 2014 5:12:18 AM UTC-4, Shukla Abhinav wrote: > > *I am trying to run my adwords but everytime I try to execute the > GetRefreshToken.php file on my server I get the following error* > > "Warning: Error parsing > ../googleads-php-lib-master/src/Google/Api/Ads/AdWords/Lib/api.properties > on line 14 in .. > /googleads-php-lib-master/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php > > on line 40 Notice: Use of undefined constant WSDL_CACHE_NONE - assumed > 'WSDL_CACHE_NONE' in .. > /googleads-php-lib-master/src/Google/Api/Ads/Common/Lib/AdsUser.php on line > 231 Log in to your AdWords account and open the following URL: > https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=529713113834-pcltkti85cv8... > > <https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=529713113834-pcltkti85cv8s6991p1lloprigi3ah46.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&access_type=offline> > After > approving the token enter the authorization code here: Your OAuth2 > Credentials are incorrect. Please see the GetRefreshToken.php example. { > "error" : "invalid_request", > "error_description" : "Missing required parameter: > code" }" > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. 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/d1f3a1c5-dfb6-46da-a965-aeff6f15fc09%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.