我是否需要开发人员 token 才能获取 Adwords 数据?
我只想抓取一些数据,而不是创建/编辑/修改某些东西。
我的计划是让我的客户通过 oauth 进行身份验证,然后在他们来自 adwords 的数据上绘制一些图表。
在我看来,我必须获得开发人员 key 才能获取该数据 ( source )。
这是正确的还是有其他方法可以从 AdWords 帐户中获取数据?
最佳答案
答案是yes ,您需要开发人员 token 才能从 AdWords 获取数据:
A developer token is required to make AdWords API calls. It's main purpose is to ensure that the developer has accepted AdWords API T&Cs, identify your requests in case we need to troubleshoot issues you are facing, etc. In the past, it was also used to identify the account to which API calls were charged, but that's no longer the case since AdWords API calls are now free.
OAuth2 tokens are used to authenticate the calls you make against a client account. You may also use ClientLogin as an alternative to OAuth2, but it is deprecated and it's use is strongly discouraged.
You need an MCC account to get a developer token, but it's not a requirement that the account you make calls to lives under that MCC. Using OAuth, you could make calls to a totally unrelated account (e.g. a client logs in from the UI), as long as you can generate an access token for the same. Right now, your developer token is under review, that's why your ability to make calls are restricted to test accounts. Once your token is approved, you should be able to make calls to any account that you have access to.
关于c# - 我需要开发人员 token 才能从 Adwords 获取数据吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20893454/