欢迎于 5 月 14 日上午 10:00(美国东部时间)加入我们的直播,直播平台包括 Google 广告和衡量社区服务器上的
Discord ,以及
YouTube !我们将讨论 Google Ads API v24.1 中新增的功能。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
发送反馈
代理
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如果您需要通过代理连接到 Google Ads API,可以通过以下方式实现
在 CONNECTION 部分设置 proxy 属性
google_ads_php.ini
文件:
[CONNECTION]
; Optional proxy settings to be used by requests.
; If you don't have username and password, just specify host and port.
proxy = "protocol://user:pass@host:port"
例如,您可以指定 http://user:pass@localhost:8082 作为代理。
或者,您可以通过编程方式配置代理设置,
任何其他配置设置:
$googleAdsClient = (new GoogleAdsClientBuilder())
...
->withProxy('protocol://user:pass@host:port')
->build();
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-22。
需要向我们提供更多信息?
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-04-22。"],[],[]]