Hi again, Knack has helped me get the library working on my local machine. I now get error messages. I now have this error, despite seemingly following the OAuth instructions and get the refresh token etc.
"# php GetCampaigns.php PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in a `401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" } in C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\guzzle\src\Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\promises\src\Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #3 C:\xampp\htdocs\performance-leads\adwords-exampl in C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113 Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in a `401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" } in C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\guzzle\src\Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\promises\src\Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #3 C:\xampp\htdocs\performance-leads\adwords-exampl in C:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113 ainzclan@DESKTOP-4D4ICSK c:\xampp\htdocs\performance-leads\adwords-examples-30.0.0\examples\AdWords\v201708\BasicOperations" Any ideas what I am doing wrong? Thanks, Neil On Thursday, 21 September 2017 16:27:02 UTC+1, Shwetha Vastrad (AdWords API Team) wrote: > > Hi, > > Could you try out the suggestions in this post > <https://github.com/googleads/googleads-php-lib/issues/97#issuecomment-171217993> > to > run the examples in a browser? Could you also try out the examples without > any modification from the command line and let me know if logs are > generated? Since you have set the log level to INFO, for successful API > requests, only a one-line summary is logged. Could you change the logging > level to DEBUG and send over any log files generated when you run the > GetCampaigns.php example? I would also suggest that you create a post on > the library's issue tracker so the library owners can help you out. > > Regards, > Shwetha, AdWords API Team. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c94303c2-e4d3-4cfc-87b3-5fb043b276fd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.