Hi Xiaozhe,
Thank you for reaching out to the Google Ads API Support Team.
The customer ID is the account number of the Google Ads account you want to manage with the API, usually in the form 123-456-7890. You can check this link <https://developers.google.com/google-ads/api/docs/first-call/overview> from our documentation under Client customer ID for reference.
Additionally, you can use this code example <https://developers.google.com/google-ads/api/docs/account-management/listing-accounts#php> as it illustrates the use of the CustomerService.ListAccessibleCustomers method <https://developers.google.com/google-ads/api/reference/rpc/v14/CustomerService#listaccessiblecustomers>. Kindly note that it will only include accounts where your authenticated user has been added with admin or other rights in the account.
If you have any clarifications regarding the Google Ads API, just let us know.
![]() |
Google Ads API Team |
嗨晓哲,
感谢您联系 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/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”
有关,谢谢,
谷歌广告 API 团队
Hi,
Thank you for the reply.
For our team to further check this and provide appropriate recommendations to you, could you please provide us with the complete API logs (request, response, and request ID) generated on your end?
Note that logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check this specific guideline to enable PHP: https://developers.google.com/google-ads/api/docs/client-libs/php/logging
You may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.