在可编程搜索引擎 JSON Api 端点中必须使用什么 cx 代码

What cx code must be used in the Programmable Search Engine JSON Api endpoint

根据 the rest api documentation of the Programmable Search Engine documentation, the cx parameter must contain the Programmable Search Engine ID. The example uses 017576662512468239146:omuauf_lfve as example. When making our own search engine on https://cse.google.com/,它显示了一个十六进制的搜索引擎 ID,但是当使用它作为 cx 参数的输入时,我们得到一个错误的请求错误。使用我们的 API 键和示例搜索引擎代码 确实 起作用,这让我相信我们只是在这个字段中输入了一些无效的东西。但是我不确定我们应该从哪里获得该字段的信息。在可编程搜索引擎 JSON api 端点中必须使用什么 cx 代码?

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "errors": [
      {
        "message": "Request contains an invalid argument.",
        "domain": "global",
        "reason": "badRequest"
      }
    ],
    "status": "INVALID_ARGUMENT"
  }
}

这可能是 Google 的 api 本身不接受新格式的问题,正如文档现在提到的那样

Note: The Search Engine ID (cx) can be of different format (e.g. 8ac1ab64606d234f1)