يوفّر رابط الإجراء للمستخدمين إمكانية التفاعل مع رابط لصفحة معيّنة يؤدي إلى الموقع الإلكتروني للشريك لتنفيذ إجراء. يتم عرض الروابط لصفحات معيّنة في بطاقة معلومات التاجر. سيوضّح هذا الدليل كيفية إضافة روابط الإجراءات إلى الخلاصات.
روابط الإجراءات على مستوى التاجر
يجب توفير رابط إجراء من خلال خلاصات التجّار عندما تعيد جميع الخدمات الخاصة بتاجر معيّن توجيه المستخدم إلى الصفحة المقصودة نفسها على الموقع الإلكتروني للشريك.
يجب تحديد نوع الإجراء باستخدام السمة ActionLinkType.
يجب ضبط ActionLinkType على ACTION_LINK_TYPE_BOOK_APPOINTMENT لعملية دمج "إعادة توجيه المواعيد".
// 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; }
روابط الإجراءات على مستوى الخدمات
يجب توفير رابط إجراء من خلال خلاصات "الخدمات" عندما يكون للخدمة رابط إعادة توجيه مخصّص.
يجب ضبط ActionLinkType على ACTION_LINK_TYPE_BOOK_APPOINTMENT لعملية دمج "إعادة توجيه المواعيد".
يجب تحديد نوع الإجراء باستخدام 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; }