작업 피드 만들기 및 업로드
작업 피드를 만들고 업로드할 때 다음 안내를 따르세요.
- 다음에 설명된 사양을 따르세요.
액션 피드
작업 데이터 파일의 경우 업로드 간에 고유한 작업 데이터 파일 이름을 사용해야 합니다.
파일 이름에 타임스탬프(예:
action1_1633621547.json
)를 포함하는 것이 좋습니다. - 파일 세트 설명자에서
name
필드를reservewithgoogle.action.v2
입니다. 설명자 파일의 예는 설명자 파일 JSON 샘플을 참고하세요. 업로드 사이에 고유한 설명자 파일 이름을 사용해야 합니다. 파일 이름에 타임스탬프(예:action1_1633621547.filesetdesc.json
)를 포함하는 것이 좋습니다. 설명자 파일을 일반 SFTP 보관용 계정에 업로드해야 합니다. - 피드는 매일 일반 SFTP 보관용 계정에 업로드되어야 함 새로고침이 실행됩니다
- 일반 피드 SFTP 보관용 계정 정보는 다음 위치에서 확인할 수 있습니다. 구성 > 피드 섹션에 표시됩니다.
- 일반 피드 처리 상태는 다음에서 확인할 수 있습니다. 피드 > 기록 섹션에 표시됩니다.
정의
<ph type="x-smartling-placeholder">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; 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 { FoodOrderingInfo food_ordering_info = 3; } }
FoodOrderingInfo 정의
message FoodOrderingInfo { // Service type for food ordering action. enum ServiceType { UNKNOWN = 0; DELIVERY = 1; TAKEOUT = 2; } ServiceType service_type = 1 [features.field_presence = IMPLICIT]; }
작업 피드 샘플
배송만
파일 이름 : actions1_1697754089.json
{ "data": [ { "actions": [{ "food_ordering_info": { "service_type": "DELIVERY" } }], "entity_id": "entity002", "link_id": "delivery_link/entity002", "url": "https://www.restaurant.com/delivery/entity002" } ] }
테이크아웃만 가능
파일 이름 : actions1_1697754089.json
{ "data": [ { "actions": [{ "food_ordering_info": { "service_type": "TAKEOUT" } }], "entity_id": "entity002", "link_id": "takeout_link/entity002", "url": "https://www.restaurant.com/takeout/entity002" } ] }
배달 및 테이크아웃
파일 이름 : actions1_1697754089.json
{ "data": [ { "actions": [ { "food_ordering_info": { "service_type": "DELIVERY" } }, { "food_ordering_info": { "service_type": "TAKEOUT" } } ], "entity_id": "entity002", "link_id": "common_link/entity002", "url": "https://www.restaurant.com/commonlink/entity002" } ] }
배달+테이크아웃 다른 URL
파일 이름 : actions1_1697754089.json
{ "data": [ { "actions": [ { "food_ordering_info": { "service_type": "TAKEOUT" } } ], "entity_id": "entity002", "link_id": "takeout_link/entity002", "url": "https://www.restaurant.com/takeout/entity002" }, { "actions": [ { "food_ordering_info": { "service_type": "DELIVERY" } } ], "entity_id": "entity002", "link_id": "delivery_link/entity002", "url": "https://www.restaurant.com/delivery/entity002" } ] }
설명자 파일
파일 이름 : actions1_1697754089.filesetdesc.json
{ "generation_timestamp": 1697754089, "name": "reservewithgoogle.action.v2", "data_file": ["actions1_1697754089.json"] }