Hi,

I'm using PHP and followed the step by step guide, but am getting the 
following error message when trying to make my first call using the 
GetCampaigns.php script on a test account i've set up.

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>


Any ideas?


Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f7424458-5f01-4095-8497-c8c672d65e99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Issues With Mak... Eliot Shiner

Reply via email to