Google Ads API PHP with Laravel: LogicException

402 views
Skip to first unread message

GIM Programming

unread,
Apr 18, 2019, 4:08:10 PM4/18/19
to AdWords API and Google Ads API Forum
Hello!

I have a website app built on Laravel with latest version of Google Ads API PHP library.
Laravel has a Queue functionality which allows to queue tasks for a server to process on background and I'm trying to integrate few things. 
All I am doing is querying some data about clients with MCC account.
Running this task in synchronous mode, so just simply doing request without queue - has never produced an error with over 2000 requests in the last few days.
Problem occurs when trying to do it asynchronously, meaning launching the queue - produces LogicException:

LogicException: Missing stream url, the stream can not be opened. This may be caused by a premature call to close(). in \vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:95
Stack trace:
#0 \vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php(39): Monolog\Handler\StreamHandler->write(Array)
#1 \vendor\monolog\monolog\src\Monolog\Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#2 \vendor\monolog\monolog\src\Monolog\Logger.php(609): Monolog\Logger->addRecord(200, 'Request made: H...', Array)
#3 \vendor\googleads\google-ads-php\src\Google\Ads\GoogleAds\Lib\V1\GoogleAdsUnaryCallLogger.php(74): Monolog\Logger->log(200, 'Request made: H...', Array)
#4 \vendor\googleads\google-ads-php\src\Google\Ads\GoogleAds\Lib\V1\GoogleAdsLoggingUnaryCall.php(56): Google\Ads\GoogleAds\Lib\V1\GoogleAdsUnaryCallLogger->logSummary(Array, Array)
#5 \vendor\google\gax\src\Transport\GrpcTransport.php(242): Google\Ads\GoogleAds\Lib\V1\GoogleAdsLoggingUnaryCall->wait()

If needed, I can send the rest of the exception stack trace.
Your help would be much appreciated!

googleadsapi...@google.com

unread,
Apr 19, 2019, 1:51:18 PM4/19/19
to AdWords API and Google Ads API Forum
Hello,

The issue is more towards the php-client libraries. I recommend you to post your questions here by creating a new issue. Our client library owners are better equipped to handle this.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages