Google ads' php library does not work properly

76 views
Skip to first unread message

2022 Tony

unread,
May 18, 2023, 6:53:53 AM5/18/23
to Google Ads API and AdWords API Forum
My google php library can't request data through a proxy, but the python version can. I'm sure my proxy is working, is there somewhere in the php library where I forgot to set the proxy?
This error is prompted:
Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 35: OpenSSL SSL_connect: Connection was reset in connection to oauth2.googleapis.com:443  (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://oauth2.googleapis.com/token in E:\wwwroot\google-ads-php\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:210
Stack trace:
#0 E:\wwwroot\google-ads-php\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 E:\wwwroot\google-ads-php\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 E:\wwwroot\google-ads-php\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(47): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
# in E:\wwwroot\google-ads-php\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 210
Message has been deleted

Google Ads API Forum Advisor

unread,
May 19, 2023, 2:14:13 AM5/19/23
to tony20...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

Moving forward with your concern, can you confirm if you have followed the configuration guide on the PHP client library? Let us know how it goes on your end if this resolves your issue. If your issue persists after trying the suggested solution, then you may provide to us the complete API logs (request and response with the request-id) generated from your end so we can investigate further.

For how to enable PHP client library logging, you may refer to the PHP client library logging guide. You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Reference links included in this email:

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2lJCi1:ref

Google Ads API Forum Advisor

unread,
May 22, 2023, 6:47:37 AM5/22/23
to tony20...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for the updates.

It’s good to know that you have found a workaround for your issue to be resolved. However, if you have additional questions regarding this, I would suggest you reach out instead to the python client library owner via this link (https://github.com/googleads/google-ads-python/issuesby clicking the new issue button and providing details about the issue you are encountering, as they are better equipped to provide guidance on python client library implementation.

On the other hand, if you have questions that are specific to the Google Ads API (https://developers.google.com/google-ads/api/docs/start), feel free to reach out again to us, and we’ll be happy to further assist you.
 

This message is in relation to case "ref:_00D1U1174p._5004Q2lJCi1:ref"

Thanks,

 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages