ایجاد و بارگذاری فیدهای کنش
هنگام ایجاد و بارگذاری فیدهای کنش، این دستورالعملها را دنبال کنید:
- مشخصات شرحدادهشده در
فید کنش
را برای فایلهای داده کنش دنبال کنید. توصیه میکنیم برای هر بارگذاری از نامهای فایل داده کنش غیرتکراری استفاده کنید.
مُهر زمان را در نام فایل بگنجانید، برای مثال،
action_1633621547.json. - در توصیفگر مجموعه فایل، فیلد
nameرا رویreservewithgoogle.action.v2تنظیم کنید. برای مشاهده نمونهای از فایل توصیفگر، به نمونه JSON مراجعه کنید. توصیه میکنیم برای هر بارگذاری از نامهای فایل توصیفگر منحصربهفرد استفاده کنید. مُهر زمان را در نام فایل بگنجانید، برای مثال،action_1633621547.filesetdesc.json. فایل توصیفگر باید در سرور SFTP عمومی بارگذاری شود. - فیدها را روزانه بهصورت بازآوری کامل در سرور SFTP عمومی بارگذاری کنید.
- جزئیات سرور SFTP را میتوانید در بخش پیکربندی > فیدها در «درگاه شریک» پیدا کنید.
- وضعیت انتقال داده فید را در بخش فیدها > سابقه در «درگاه شریک» مشاهده کنید.
تعاریف
تعریف ActionFeed
message ActionFeed { repeated ActionDetail data = 1; }
تعریف ActionDetail
message ActionDetail { 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 { // 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 { }
نمونههای فید کنش
فید کنش
{ "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" ] }