Unable to get refresh Token

72 views
Skip to first unread message

Shukla Abhinav

unread,
Sep 8, 2014, 7:13:17 AM9/8/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  ../aw/src/Google/Api/Ads/AdWords/Lib/api.properties on line 14 in .. /aw/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" }"


I dont know where am I going wrong .Please help me with this.

Anash P. Oommen (AdWords API Team)

unread,
Sep 8, 2014, 1:55:18 PM9/8/14
to adwor...@googlegroups.com
Hi Shukla,

I believe this is related to the issue in the other thread, where you mentioned that SOAP is not enabled in your PHP environment. The issue should get addressed once that is fixed.

The instructions to setup PHP library with OAuth2 can be found at https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0.

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages