Un lien d'action permet aux utilisateurs d'interagir avec un lien profond qui redirige vers le site Web du partenaire pour effectuer une action. Les liens profonds s'affichent dans la fiche info du marchand. Ce guide explique comment ajouter des liens d'action aux flux.
Liens action_link au niveau du marchand
Vous devez fournir un lien d'action via les flux de marchands lorsque tous les services d'un marchand donné redirigent l'utilisateur vers la même page de destination sur le site Web du partenaire.
Le type d'action doit être spécifié à l'aide de ActionLinkType.
Le ActionLinkType doit être défini sur ACTION_LINK_TYPE_BOOK_APPOINTMENT pour l'intégration de redirection des rendez-vous.
// 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; }
Liens d'action au niveau des services
Vous devez fournir un lien d'action via les flux de services lorsqu'un service dispose d'un lien de redirection dédié.
Le ActionLinkType doit être défini sur ACTION_LINK_TYPE_BOOK_APPOINTMENT pour l'intégration de redirection des rendez-vous.
Le type d'action doit être spécifié à l'aide de ActionLinkType, qui fait partie de ActionLink dans le flux de services.
// 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; }