【发布时间】:2014-04-14 21:57:21
【问题描述】:
我正在尝试使用 OAuth 2.0 对本机应用程序的 adwords API 进行身份验证。
我创建了 MCC 生产帐户和 MCC 测试帐户。 我已接受条款和条件,并已成功在 MCC 生产和测试帐户中提交了我的结算信息。
我正在关注官方教程并成功生成刷新令牌。 (https://developers.google.com/adwords/api/docs/guides/authentication)
我正在尝试访问我的 MCC TEST 帐户,而不是尝试连接到生产帐户。 但不幸的是,当我尝试从我的 Java 代码连接到 AdWords 时出现错误。 首先,我使用的是我的 MCC TEST 开发人员令牌,在这种情况下,我得到:
faultString: [QuotaCheckError.ACCOUNT_INACTIVE @ ; trigger:'<null>']
faultActor:
faultNode:
faultDetail:
{https://adwords.google.com/api/adwords/cm/v201306}ApiExceptionFault:<message>[QuotaCheckError.ACCOUNT_INACTIVE @ ; trigger:'<null>']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath/><trigger><null></trigger><errorString>QuotaCheckError.ACCOUNT_INACTIVE</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>ACCOUNT_INACTIVE</reason></errors>
接下来我试图切换到我的生产令牌,但仍指向 MCC TEST 帐户。收到新错误:
faultString: [QuotaCheckError.INCOMPLETE_SIGNUP @ ; trigger:'<null>']
faultActor:
faultNode:
faultDetail:
{https://adwords.google.com/api/adwords/cm/v201306}ApiExceptionFault:<message>[QuotaCheckError.INCOMPLETE_SIGNUP @ ; trigger:'<null>']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath/><trigger><null></trigger><errorString>QuotaCheckError.INCOMPLETE_SIGNUP</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>INCOMPLETE_SIGNUP</reason></errors>
任何想法我做错了什么?
非常感谢!
【问题讨论】:
标签: google-api google-ads-api google-api-java-client