操作 Feed

创建并上传操作 Feed

创建和上传操作 Feed 时,请遵循以下说明:

  • 请遵循操作 Feed 中针对操作数据文件描述的规范。我们建议为每次上传使用唯一的操作数据文件名。 在文件名中添加时间戳,例如 action_1633621547.json
  • 在文件集描述符中,将 name 字段设置为 reservewithgoogle.action.v2。如需查看描述符文件示例,请参阅 JSON 示例。 我们建议为每次上传使用唯一的描述符文件名。 在文件名中添加时间戳,例如 action_1633621547.filesetdesc.json。 描述符文件必须上传到通用 SFTP 服务器。
  • 每天将 Feed 上传到通用 SFTP 服务器,以进行完全刷新。
  • 您可以在合作伙伴门户的配置 > Feed 部分中找到 SFTP 服务器详细信息。
  • 选择 Feed 服务器

    在合作伙伴门户网站中选择 Feed 服务器
  • 在合作伙伴门户的 Feed > 历史记录部分中查看 Feed 提取状态。

定义

ActionFeed 的定义

message ActionFeed {
  repeated ActionDetail data = 1;
}

ActionDetail 的定义

message ActionDetail {
  string entity_id = 2;
  string link_id = 3;

  // Deep link for action detail
  string url = 4;
  repeated Action actions = 1;
}

AppointmentInfo 定义

message AppointmentInfo {
}

操作 Feed 示例

操作 Feed

{
  "data": [
    {
      "entity_id": "appointments-merchant-1",
      "link_id": "appointment-link-1",
      "url": "https://www.epapartnerwebsite.com/appointment/appointment-partner-1",
      "actions":[
        {
          "appointment_info": {
            "url": "https://www.epapartnerwebsite.com/appointment/appointment-partner-1"
          }
        }
      ]
    }
  ]
}

描述符文件

{
  "generation_timestamp": 1677540395,
  "name": "reservewithgoogle.action.v2",
  "data_file": [
    "action_1677540395_0001.json",
    "action_1677540395_0002.json"

  ]
}