You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Google Ads API:PHP中gRPC通道耗尽导致searchStream()调用失败

问题:Google Ads API searchStream() 触发gRPC通道耗尽警告导致进程终止

我正在使用Google Ads API,运行官方的GetCampaigns.php示例,认证环节正常,但调用searchStream()方法获取广告系列时,出现gRPC通道耗尽警告,进程直接终止。

错误日志

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1727872579.980136   22500 channel.c:277] [Warning] Target upper bound: 1. Current size: 1.
I0000 00:00:1727872579.980178   22500 channel.c:280] [Warning] Target googleads.googleapis.com:443 will not be persisted.

进程终止代码行

进程终止于以下代码:

$stream = $googleAdsServiceClient->searchStream(
    SearchGoogleAdsStreamRequest::build($customerId, $query)
);

** More主体以Con演Joy Mostly查询托mk包括提供(按

��,我已经尝试通过设置环境变量putenv('GRPC_DEFAULT_MAX_CHANNELS=10')增加gRPC通道数量,但问题并未解决。


内容的提问来源于stack exchange,提问作者Trim Zymberi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 17:29:55