You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPFatal error: UncaughtGoogle\ApiCore\ValidationException: Failed to build request, as the provided path (google.ads.googleads.v9.services.GoogleAdsService/SearchStream) was not found in the configuration. in /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/RequestBuilder.php:80Stack trace:
#0 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/Transport/RestTransport.php(160): Google\ApiCore\RequestBuilder->build()#1 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/GapicClientTrait.php(608): Google\ApiCore\Transport\RestTransport->startServerStreamingCall()#2 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/Middleware/CredentialsWrapperMiddleware.php(61): Google\Ads\GoogleAds\V9\Services\Gapic\GoogleAdsServiceGapicClient->Google\ApiCore\{closure}()#3 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/Middleware/FixedHeaderMiddleware.php(66): Google\ApiCore\Middleware\CredentialsWrapperMiddleware->__invoke()#4 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/Middleware/RetryMiddleware.php(85): Google\ApiCore\Middleware\FixedHeaderMiddleware->__invoke()#5 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/Middleware/OptionsFilterMiddleware.php(63): Google\ApiCore\Middleware\RetryMiddleware->__invoke()#6 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/Middleware/FixedHeaderMiddleware.php(66): Google\ApiCore\Middleware\OptionsFilterMiddleware->__invoke()#7 /usr/local/google/home/pierrick/git/google-ads-php/src/Google/Ads/GoogleAds/Lib/V9/ServerStreamingGoogleAdsExceptionMiddleware.php(61): Google\ApiCore\Middleware\FixedHeaderMiddleware->__invoke()#8 /usr/local/google/home/pierrick/git/google-ads-php/src/Google/Ads/GoogleAds/Lib/V9/ServerStreamingGoogleAdsResponseMetadataCallable.php(40): Google\Ads\GoogleAds\Lib\V9\ServerStreamingGoogleAdsExceptionMiddleware->__invoke()#9 /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/GapicClientTrait.php(583): Google\Ads\GoogleAds\Lib\V9\ServerStreamingGoogleAdsResponseMetadataCallable->__invoke()#10 /usr/local/google/home/pierrick/git/google-ads-php/src/Google/Ads/GoogleAds/V9/Services/Gapic/GoogleAdsServiceGapicClient.php(523): Google\Ads\GoogleAds\V9\Services\Gapic\GoogleAdsServiceGapicClient->startCall()#11 /usr/local/google/home/pierrick/git/google-ads-php/examples/BasicOperations/GetCampaigns.php(105): Google\Ads\GoogleAds\V9\Services\Gapic\GoogleAdsServiceGapicClient->searchStream()#12 /usr/local/google/home/pierrick/git/google-ads-php/examples/BasicOperations/GetCampaigns.php(62): Google\Ads\GoogleAds\Examples\BasicOperations\GetCampaigns::runExample()#13 /usr/local/google/home/pierrick/git/google-ads-php/examples/BasicOperations/GetCampaigns.php(121): Google\Ads\GoogleAds\Examples\BasicOperations\GetCampaigns::main()#14 {main}
thrown in /usr/local/google/home/pierrick/git/google-ads-php/vendor/google/gax/src/RequestBuilder.php on line 80
This is a result of the latest version of GAX supporting REST server streaming. As this is now supported, the previous exception doesn't apply. Unfortunately, old clients still won't support REST server streaming as only the latest versions of the clients will have the appropriate configuration.
We definitely considered this issue with forwards-compatibility, butWe had hoped it wouldn't effect too many users, and couldn't think of a good way to resolve it. We will try to think of a possible solution.
Environment details
Steps to reproduce
google-ads-php
.gax-php
to1.10.0
in thecomposer.json
->withTransport('rest')
at the line number 56 of the code exampleGetCampaign
.composer update
GetCampaign
.gax-php
to1.11.3
in thecomposer.json
composer update
GetCampaign
.gax-php
, see Failed to build request, as the provided path (google.ads.googleads.v9.services.GoogleAdsService/SearchStream) was not found in the configuration googleads/google-ads-php#722.The text was updated successfully, but these errors were encountered: