我正在使用 Google Ads REST API 检索客户列表并将其显示给用户。我想将这些客户与元数据一起显示,例如帐户名称、是否是经理帐户等。
我已经使用
https://googleads.googleapis.com/v15/customers:listAccessibleCustomers
获得了可访问客户的列表。但是,我找不到使用客户 ID 检索 customer object 本身的适当文档。
我尝试使用
https://googleads.googleapis.com/v15/customers/{customerID}/operations/get
端点,但这总是返回 404 资源未找到错误。
如有任何帮助,我们将不胜感激。 谢谢你。
我对 REST API 方面不熟悉,但如果您可以使用服务 GoogleAdsService.Search,您可以使用以下 GAQL 获取帐户级别信息:
SELECT
customer_client.id,
customer_client.level,
customer_client.manager,
customer_client.resource_name,
customer_client.descriptive_name,
customer_client.client_customer,
customer_client.applied_labels,
customer_client.currency_code,
customer_client.hidden,
customer_client.status,
customer_client.test_account,
customer_client.time_zone
FROM customer_client
您可以查看 customer_client 文档或 query builder 工具来查看其他选项。如果我可以提供任何进一步的详细信息,请告诉我。