Hi , I am in China, and when I execute this code, it cannot return normally. Its error response is execution timeout. Perhaps I should set up a proxy? But I have already set up a proxy in 'google_ads_php.ini', but it doesn't seem to be taking effect.
my config "google_ads_php.ini" file contents. [LOGGING] ; Optional logging settings. ; logFilePath = "path/to/your/file.log" ; logLevel = "INFO" [CONNECTION] ; Optional proxy settings to be used by requests. ; If you don't have username and password, just specify host and port. proxy = "http://x.xxxxx.xxx.xxx:7890" And I also used it in my code. $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile(base_path() . '/google_ads_php.ini')->build(); $googleAdsClient = (new GoogleAdsClientBuilder())->fromFile(base_path() . '/google_ads_php.ini') ->withOAuth2Credential($oAuth2Credential) ->usingGapicV2Source(true) ->build(); And this a dump Google\Ads\GoogleAds\Lib\V14\GoogleAdsClient {#371 ▼ // app\Http\Controllers\GoogleRelationController.php:30 -developerToken: " xxxxfIlxxTPxxxxxxxxx" -loginCustomerId: null -linkedCustomerId: null - endpoint: null -oAuth2Credential: Google\Auth\Credentials\ UserRefreshCredentials {#361 ▶} -logger: Monolog\Logger {#368 ▶} -logLevel: "info" -proxy: "http://xxx.xxx.xxx.xxx:7890" -transport: null - grpcChannelIsSecure: true -useGapicV2Source: true -grpcChannelCredential: null -unaryMiddlewares: [] -streamingMiddlewares: [] -grpcInterceptors: [] } When I execute here, it will timeout and it doesn't seem to be using proxy $customerServiceClient = $googleAdsClient->getCustomerServiceClient(); // Issues a request for listing all accessible customers. $accessibleCustomers = $customerServiceClient->listAccessibleCustomers(new ListAccessibleCustomersRequest()); Error Message : Curl Maximum execution time of 60 seconds exceeded 在2023年8月17日星期四 UTC+8 16:37:57<Google Ads API Forum Advisor> 写道: 嗨晓哲, 感谢您联系 Google Ads API 支持团队。 客户 ID 是您要通过 API 管理的 Google Ads 帐号的帐号,通常采用 *123-456-7890* 格式。您可以从*客户客户 ID* 下的文档查看此链接 <https://developers.google.com/google-ads/api/docs/first-call/overview <https://developers.google.com/google-ads/api/docs/first-call/overview>> 以供参考。 此外,您可以使用此代码示例 < https://developers.google.com/google-ads/api/docs/account-management/listing-accounts#php> 因为它说明了 *CustomerService.ListAccessibleCustomers* 方法<的使用 https://developers.google.com/google-ads/api/reference/rpc/v14/CustomerService#listaccessiblecustomers >.请注意,它仅包括已将经过身份验证的用户添加到帐户中具有管理员或其他权限的帐户。 如果您对 Google Ads API 有任何说明,请告诉我们。 此消息与案例“ref:_00D1U1174p._5004Q2ntGLT:ref” 有关,谢谢, [image: 谷歌标志] 谷歌广告 API 团队 -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/7f43f013-2ce0-4df6-bdce-b3de6a641a39n%40googlegroups.com.
