php fatal error

200 views
Skip to first unread message

FMore

unread,
Jan 31, 2022, 7:24:59 AM1/31/22
to Google Ads API and AdWords API Forum
Hi

I am upgrading from googleAdWords API to googleAds API. I am getting a fatal error in the example code of class GetKeywordStats.php:

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Google\ApiCore\Transport\Grpc\ServerStreamingCallWrapper::__construct() must be an instance of Grpc\ServerStreamingCall, instance of Google\Ads\GoogleAds\Lib\V9\GoogleAdsLoggingServerStreamingCall given, called in /var/www/vendor/google/gax/src/Transport/GrpcTransport.php on line 208 and defined in /var/www/vendor/google/gax/src/Transport/Grpc/ServerStreamingCallWrapper.php:49 Stack trace: #0 /var/www/vendor/google/gax/src/Transport/GrpcTransport.php(208): Google\ApiCore\Transport\Grpc\ServerStreamingCallWrapper->__construct() #1 /var/www/vendor/google/gax/src/GapicClientTrait.php(608): Google\ApiCore\Transport\GrpcTransport->startServerStreamingCall() #2 /var/www/vendor/google/gax/src/Middleware/CredentialsWrapperMiddleware.php(61): Google\Ads\GoogleAds\V9\Services\Gapic\GoogleAdsServiceGapicClient->Google\ApiCore{closure}() #3 /var/www/vendor/google/gax/src/Middleware/FixedHeaderMiddleware.php(66): Google\A in /var/www/vendor/google/gax/src/Transport/Grpc/ServerStreamingCallWrapper.php on line 49


I had installed Grpc extension in PHP following this link:

https://cloud.google.com/php/grpc

What could be?

Thanks

Google Ads API Forum Advisor

unread,
Jan 31, 2022, 3:34:00 PM1/31/22
to filipem...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to the Google Ads API support team.

With regards to your concern,I would recommend reaching out to their PHP Client Library owner on using this PHP issue tracker.

Thanks,
Google Logo
Nirmita Patel
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W2rV9:ref
Reply all
Reply to author
Forward
0 new messages