Hi,

I've followed the step by step guides to set up the AdWords API and am 
attempting my first query using a test account. I seem to be getting an 
error message that I can't get my head around. Any help is greatly 
appreciated!

C:\xampp\htdocs\googleads-php-lib-master>php GetCampaigns.php
PHP Fatal error:  Uncaught exception 'GuzzleHttp\Exception\ClientException' 
with
 message 'Client error: `POST https://www.googleapis.com/oauth2/v4/token` 
result
ed in a `400 Bad Request` response:
{
 "error": "invalid_grant",
 "error_description": "Bad Request"
}

' in 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\guzzle\src\Excep
tion\RequestException.php:111
Stack trace:
#0 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\guzzle\src\Middlew
are.php(65): 
GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr
7\Request), Object(GuzzleHttp\Psr7\Response))
#1 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\promises\src\Promi
se.php(203): 
GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\
Response))
#2 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\promises\src\Promi
se.php(156): GuzzleHttp\Promise\Promise::callHandler(1, 
Object(GuzzleHttp\Psr7\R
esponse), Array)
#3 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\promises\src\TaskQ
ueue.php(47): GuzzleH in 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzleh
ttp\guzzle\src\Exception\RequestException.php on line 111

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with 
mess
age 'Client error: `POST https://www.googleapis.com/oauth2/v4/token` 
resulted in
 a `400 Bad Request` response:
{
 "error": "invalid_grant",
 "error_description": "Bad Request"
}

' in 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\guzzle\src\Excep
tion\RequestException.php:111
Stack trace:
#0 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\guzzle\src\Middlew
are.php(65): 
GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr
7\Request), Object(GuzzleHttp\Psr7\Response))
#1 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\promises\src\Promi
se.php(203): 
GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\
Response))
#2 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\promises\src\Promi
se.php(156): GuzzleHttp\Promise\Promise::callHandler(1, 
Object(GuzzleHttp\Psr7\R
esponse), Array)
#3 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzlehttp\promises\src\TaskQ
ueue.php(47): GuzzleH in 
C:\xampp\htdocs\googleads-php-lib-master\vendor\guzzleh
ttp\guzzle\src\Exception\RequestException.php on line 111

C:\xampp\htdocs\googleads-php-lib-master>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 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/9a7c4c9e-0c72-470b-8de0-e390ee515764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to