Hi there, I've been following along with the Adwords API Dev series on 
youtube to help me setup my API, however, when running the getCampaigns.php 
file through terminal, I run into the following error:

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with 
message 'Client error: POST https://www.googleapis.com/oauth2/v4/token resulted 
in a 401 Unauthorized response:
{
"error": "unauthorized_client",
"error_description": "Unauthorized"
}

' in 
/Users/SeanZusi/googleads-php-lib/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 
/Users/SeanZusi/googleads-php-lib/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> 
/Users/SeanZusi/googleads-php-lib/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> 
/Users/SeanZusi/googleads-php-lib/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> 
/Users/SeanZusi/googleads-php-lib/vendor/guzzlehttp/promises/src/TaskQueue.php(47):
 
GuzzleHttp\Promise\Promise::Guzzle in 
/Users/SeanZusi/googleads-php-lib/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
 
on line 113


Not sure what the issue is, please let me know what the best way to go 
about fixing this is.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c0a0edb5-2826-43f3-b117-f194cec0bb89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... szusi
    • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... szusi
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to