指定操作链接

<ph type="x-smartling-placeholder">

操作链接让用户能够与深层链接互动 该链接可链接到合作伙伴的网站以执行某项操作。深层链接 显示在商家的知识面板中。本指南将介绍 向 Feed 添加操作链接

在所有服务发布后,您应通过商家 Feed 提供操作链接 会将用户重定向到 合作伙伴的网站

<ph type="x-smartling-placeholder">

必须使用 ActionLinkType(属于 ActionLink

  // Predetermined type of action associated with an action link.
  enum ActionLinkType {
    // The action link type is unspecified.
    ACTION_LINK_TYPE_UNSPECIFIED = 0;

    // The action link type is booking an appointment.
    ACTION_LINK_TYPE_BOOK_APPOINTMENT = 1;

    // The action link type is booking an online appointment.
    ACTION_LINK_TYPE_BOOK_ONLINE_APPOINTMENT = 2;

    // The action link type is ordering food for delivery or takeout or both.
    ACTION_LINK_TYPE_ORDER_FOOD = 3;

    // The action link type is ordering food for delivery.
    ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY = 4;

    // The action link type is ordering food for takeout.
    ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT = 5;

    // The action link type is making a dining reservation.
    ACTION_LINK_TYPE_MAKE_DINING_RESERVATION = 6;

    // The action link type allows users to shop from the given merchant. It
    // could either be delivery or pickup.
    ACTION_LINK_TYPE_SHOP_ONLINE = 7;
  }
<ph type="x-smartling-placeholder">

使用 OrderOnlineMetadata

<ph type="x-smartling-placeholder">

通过 OrderOnlineMetadata 用于指定要向其显示 所有费用、最低订单金额以及不同 线上零售订单履单方法。如果包含,则会包含此元数据 使用 Merchant Feed 中的操作链接

如需进一步了解如何将此信息包含在 如果您的集成需要,可在以下位置找到它: 文档: