Hi,
When executing php examples/BasicOperations/GetCampaigns.php
getting an error
PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client 
error: POST https://oauth2.googleapis.com/token resulted in a 401 
Unauthorized response:
{
"error": "unauthorized_client",
"error_description": "Unauthorized"
}
in 
/home/buzzyears/Downloads/google-ads-php/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 
/home/buzzyears/Downloads/google-ads-php/vendor/guzzlehttp/guzzle/src/Middleware.php(66):
 
GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), 
Object(GuzzleHttp\Psr7\Response))
#1 <https://github.com/googleads/googleads-php-lib/issues/1> 
/home/buzzyears/Downloads/google-ads-php/vendor/guzzlehttp/promises/src/Promise.php(203):
 
GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response))
#2 <https://github.com/googleads/googleads-php-lib/issues/2> 
/home/buzzyears/Downloads/google-ads-php/vendor/guzzlehttp/promises/src/Promise.php(156):
 
GuzzleHttp\Promise\Promise::callHandler(1, 
Object(GuzzleHttp\Psr7\Response), Array)
#3 <https://github.com/googleads/googleads-php-lib/issues/3> 
/home/buzzyears/Downloads/google-ads-php/vendor/guzzlehttp/promises/src/TaskQueue.php(47):
 
GuzzleHttp\Promise\Promise::Guz in 
/home/buzzyears/Downloads/google-ads-php/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
 
on line 11

Please suggest the correct solution

Thanks
Brijesh

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/65bf9be6-d018-4105-b348-ebb145e4c138%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • PHP Fat... Brijesh Kumar
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to