我使用“google - ads -api”来管理谷歌广告。接口需要customer_account_id进行初始化。然而,我无法找到如何以编程方式从user获取“customer_account_id”。
我在前端使用了“react-google-login”,但是在响应中没有“customer_account_id”。获取customer_account_id的最佳方式是什么?
发布于 2021-01-05 17:47:33
您必须使用CustomerService的ListAccessibleCustomers方法。此请求不需要customer_account_id,您可以使用它来获取经过身份验证的用户有权访问的所有谷歌广告帐户ID。有关详细信息,请参阅documentation。
我相信在google-ads-api中相关的类被称为AccessibleCustomersService。
https://stackoverflow.com/questions/65552534
复制相似问题