สร้างและอัปโหลดฟีดการดำเนินการ
เมื่อสร้างและอัปโหลดฟีดการดำเนินการ ให้ทำตามวิธีการต่อไปนี้
- ทำตามข้อกำหนดที่อธิบายไว้ในฟีดการดำเนินการสำหรับไฟล์ข้อมูลการดำเนินการ เราขอแนะนำให้ใช้ชื่อไฟล์ข้อมูลการดำเนินการที่ไม่ซ้ำกันสำหรับการอัปโหลดแต่ละครั้ง
ใส่การประทับเวลาในชื่อไฟล์ เช่น
action_1633621547.json - ในข้อบ่งชี้ชุดไฟล์ ให้ตั้งค่าช่อง
nameเป็นreservewithgoogle.action.v2ดูตัวอย่างไฟล์ข้อบ่งชี้ได้ที่ตัวอย่าง JSON เราขอแนะนำให้ใช้ชื่อไฟล์ข้อบ่งชี้ที่ไม่ซ้ำกันสำหรับการอัปโหลดแต่ละครั้ง ใส่การประทับเวลาในชื่อไฟล์ เช่นaction_1633621547.filesetdesc.jsonคุณต้องอัปโหลดไฟล์ข้อบ่งชี้ไปยังเซิร์ฟเวอร์ SFTP ทั่วไป - อัปโหลดฟีดไปยังเซิร์ฟเวอร์ SFTP ทั่วไปทุกวันเป็นการรีเฟรชแบบเต็ม
- คุณดูรายละเอียดเซิร์ฟเวอร์ SFTP ได้ในส่วนการกำหนดค่า > ฟีดของ Partner Portal
- ดูสถานะการนำเข้าฟีดในส่วนการนำเข้า > ประวัติของ Partner Portal
คำจำกัดความ
คำจำกัดความของ ActionFeed
message ActionFeed { option features.(pb.java).nest_in_file_class = YES; repeated ActionDetail data = 1; }
คำจำกัดความของ ActionDetail
message ActionDetail { option features.(pb.java).nest_in_file_class = YES; string entity_id = 2; string link_id = 3; // Deep link for action detail string url = 4; // The actions that can be performed using this deep link. At least one // Action must be specified. repeated Action actions = 1; }
คำจำกัดความของการดำเนินการ
// Information about an Action which could be performed. message Action { option features.(pb.java).nest_in_file_class = YES; // Deprecated fields not to be reused. reserved 1; oneof action_info { AppointmentInfo appointment_info = 2; } }
คำจำกัดความของ AppointmentInfo
// Indicates that the parent Action is for booking an appointment. // In v2 of the Action feed, the deep link URL is specified on ActionDetail.url, // so this message has no fields and should be set as an empty object // (for example, "appointment_info": {} in JSON). message AppointmentInfo { option features.(pb.java).nest_in_file_class = YES; }
ตัวอย่างฟีดการดำเนินการ
ฟีดการดำเนินการ
{ "data": [ { "entity_id": "appointments-merchant-1", "link_id": "appointment-link-1", "url": "https://www.partnerwebsite.com/appointment/appointment-partner-1", "actions":[ { "appointment_info": {} } ] } ] }
ไฟล์ข้อบ่งชี้
{ "generation_timestamp": 1677540395, "name": "reservewithgoogle.action.v2", "data_file": [ "action_1677540395_0001.json", "action_1677540395_0002.json" ] }