在尝试向Google进行身份验证时,我们正面临以下屏幕.我们尝试进行身份验证的应用程序用于内部开发,我们没有将其发布给用户.
知道为什么会这样吗?
我们之前遇到了未验证的应用程序屏幕(如下所示),但现在身份验证已禁用.
我正在使用Google表格V4 附加API将数据插入到新创建的工作表中.我插入1000行和1001列的数据,即1001000个单元格.
String url = https://sheets.googleapis.com/v4/spreadsheets/<spreadSheetId>/values/<workSheetName>!A1:append?access_token=<accessToken>&valueInputOption=USER_ENTERED&insertDataOption=INSERT_ROWS
//CREATING THE REQUEST BODY
reqBody.put("range", <workSheetName>+"!A1");
reqBody.put("majorDimension", "ROWS");
reqBody.put("values", <values>);
Run Code Online (Sandbox Code Playgroud)
我收到400 Bad Request消息:"此操作会使工作表中的单元格数量增加到超过2000000个单元格的限制."
我知道谷歌每张纸有200万个单元格限制,但我无法找出为什么我得到这个例外,特别是因为我没有超出限制.
有关为什么会出现此错误的任何帮助?
我们正在使用 Google Adwords API (v201710) 来获取客户信息、广告组和活动信息。
Google Adwords 将默认超时设置为 20 分钟。这会导致问题,因为如果我们收到读取超时异常,我们的线程就会被挂起。
示例代码:
GoogleCredential credentials = new GoogleCredential.Builder().setClientSecrets(CLIENT_ID, CLIENT_SECRET).setJsonFactory(jsonFactory).setTransport(httpTransport).build().setAccessToken(accessToken);
AdWordsSession session = new AdWordsSession.Builder().withUserAgent(useragent).withOAuth2Credential(credentials).withDeveloperToken(DEVELOPER_TOKEN).build();
CustomerServiceInterface mcs = new AdWordsServices().get(session, CustomerServiceInterface.class);
Customer[] cs = mcs.getCustomers();
Run Code Online (Sandbox Code Playgroud)
有没有办法设置 Adwords 管理 api 的超时值?
Google 通讯录允许我们通过传递 * 而不是联系人当前的 Etag 来绕过 Etag 验证以进行编辑/删除请求。
注意:特殊的 Etag 值 * 可用于绕过此验证并处理更新,而不管来自其他客户端的更新如何。
有没有类似的方法可以绕过People API 中编辑/删除的 Etag 验证?
如果在更新期间没有在 Person 对象中发送 etag 值,则会面临以下错误。值“ * ”在 People API 中也不起作用。
要求:
{
"emailAddresses": [
{
"displayName": "test1@gmail.com",
"value": "test1@gmail.com",
"type": "home"
}
]
}
Run Code Online (Sandbox Code Playgroud)
回复:
{
"error": {
"code": 400,
"message": "Request must set person.etag or person.metadata.sources.etag for the source that is being updated.",
"status": "INVALID_ARGUMENT"
}
}
Run Code Online (Sandbox Code Playgroud) 我们使用 Google Contacts API 来获取在特定时间后更新的联系人条目,以在我们端保留联系人的更新副本。
在 Google Contacts API 中,有一个选项可以使用“updated-min”查询参数在特定时间后更新联系人条目。
GET https://www.google.com/m8/feeds/contacts/default/full?updated-min=2007-03-16T00:00:00
Run Code Online (Sandbox Code Playgroud)
在 Google People 文档中没有针对这种情况在 Google People API 中指定选项。我错过了什么还是没有提供这个功能?