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
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
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!