I downloaded the files from the library and tested localhost.

Library: https://github.com/googleads/google-ads-php


I have fulfilled all the requirements.
developerToken, clientId, clientSecret, refreshToken
I created "google_ads_php.ini"


examples/BasicOperations/GetCampaigns.php

It gives the following error.


Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST 
https://oauth2.googleapis.com/token` resulted in a `400 Bad Request` 
response: { "error": "invalid_grant", "error_description": "Bad Request" } 
in C:\wamp64\www\google-ads-php\vendor\guzzlehttp\guzzle\src\Exception\
RequestException.php:113 Stack trace: 
#0 
C:\wamp64\www\google-ads-php\vendor\guzzlehttp\guzzle\src\Middleware.php(65): 
GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), 
Object(GuzzleHttp\Psr7\Response)) 
#1 
C:\wamp64\www\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(203): 
GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) 

#2 
C:\wamp64\www\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(156): 
GuzzleHttp\Promise\Promise::callHandler(1, 
Object(GuzzleHttp\Psr7\Response), Array) 
#3 
C:\wamp64\www\google-ads-php\vendor\guzzlehttp\promises\src\TaskQueue.php(47): 
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() 
#4 C:\wamp64\www\google-ads-php\vendor\g in 
C:\wamp64\www\google-ads-php\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php
 
on line 113

Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ad37e8b3-b73c-4a79-9aa6-3f15814d6fec%40googlegroups.com.

Reply via email to