Unable to get refresh Token

257 views
Skip to first unread message

Shukla Abhinav

unread,
Sep 3, 2014, 5:12:18 AM9/3/14
to adwor...@googlegroups.com

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... 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" }"

Josh Radcliff (AdWords API Team)

unread,
Sep 3, 2014, 12:18:44 PM9/3/14
to adwor...@googlegroups.com
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. It contains step-by-step instructions on running the example and updating your configuration file.

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages