Especifica vínculos de acción

Un vínculo de acción proporciona a los usuarios la capacidad de interactuar con un vínculo directo que vincula al sitio web del socio para realizar una acción. Los vínculos directos se muestran en el panel de conocimiento del comercio. En esta guía, se describe cómo agregar vínculos de acción a los feeds.

Debes proporcionar un vínculo de acción a través de los feeds del comercio cuando todos los servicios de un comercio determinado redireccionen al usuario a la misma página de destino en el sitio web del socio.

El tipo de acción debe especificarse con el ActionLinkType, que forma parte de ActionLink en el feed de comercios.

  // 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;
  }