【问题标题】:Calling Google adwords api from Java从 Java 调用 Google Adwords api
【发布时间】:2017-11-18 10:10:40
【问题描述】:

我正在尝试运行简单的 GetCampaigns.java 以获取使用 Google API 的活动列表。我能够将 google 提供的 API 下载到 eclipse 中,并且在代码方面一切似乎都很好,但是当我在 eclipse 中运行代码时出现错误

 Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode: 
 faultString: [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']
 faultActor: 
 faultNode: 
 faultDetail: 
    https://adwords.google.com/api/adwords/cm/v201710}ApiExceptionFault:<message>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'&lt;null&gt;']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath/><trigger>&lt;null&gt;</trigger><errorString>QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>DEVELOPER_TOKEN_NOT_APPROVED</reason></errors>

我已经完成了中提到的所有步骤 Request a developer token

并相应地更新了 ads.properties 文件,但仍然没有运气

ads.properties 文件的 sn-p

api.adwords.developerToken=123axxxxxxxxxxxxxxxxxx
api.adwords.clientId=xxxxxxxxxx.apps.googleusercontent.com
api.adwords.clientSecret=zZxxxxxTxxxxxxxxxxx
api.adwords.clientCustomerId=123-456-7890
api.adwords.refreshToken=1/dyOIp7ki-xxxxxxxxxxxxxxxxxxxxxxxx

谁能帮我让我的代码工作 获取标准 API 密钥需要多长时间。

【问题讨论】:

标签: java api google-ads-api


【解决方案1】:

在使用不同的帐户后可以正常工作,因为之前我试图查询不包含任何广告系列的 MCC 帐户,因此我创建了一个新帐户并用它来查询广告系列及其工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    相关资源
    最近更新 更多