入門整合服務合作夥伴能夠將不同的 action_link_type
與其 action_link
建立關聯。action_link_type
可協助使用者瞭解使用者透過該連結重新導向至合作夥伴網站時,採取何種動作。
- 每個 action_link 只能連結一個
action_link_type
。
訂購餐點時,使用者可以要求執行下列其中一項動作:
- 要求餐廳訂餐 (外帶食物外送)
- 要求將食物外送至特定地點 (訂購餐點外送)
我們建議所有參與「食物」活動的合作夥伴使用。如果您目前傳送的是 action_link
(s) action_link_type = ACTION_LINK_TYPE_ORDER_FOOD
或 service_type = SERVICE_TYPE_FOOD_ORDERING
,建議您更新動態饋給,確保內容符合目前的做法。
協助訂購外帶餐點的商家
商家
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/foodtakeout/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
提供訂餐服務的商家
商家
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/fooddelivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
提供外帶及外送餐點的商家
如果商家同時支援餐點外送與餐點外送等這兩種動作,建議提供兩個不同的 action_link
並連結至適當動作。
商家
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/foodtakeout/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" }, { "url": "https://www.partnerwebsite.com/fooddelivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }
透過單一網址支援這兩種動作的商家
舉例來說,如果餐廳的 action_link
深層連結會導向餐廳的一般訂購頁面,使用者就必須在其中選擇 [食物外送] 或 [食物外送],因此我們建議採用下列做法:
提交 action_link
網址兩次,將每個執行個體與適當的 action_link_type
建立關聯,如下所示:
- 如果是第一個執行個體,請使用
action_link_type = ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY
標記action_link
- 對於第二個執行個體,請使用
action_link_type = ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT
標記action_link
商家
{ "merchant": [ { "merchant_id": "merch10", "name": "Sample Restaurant", "telephone": "+1-650-123-4567", "url": "https://www.restaurantsamplewebsite.com", "category": "restaurant", "geo": { "address": { "street_address": "803 11th Avenue", "locality": "Sunnyvale", "region": "CA", "country": "USA", "postal_code": "94089" } }, "action_link": [ { "url": "https://www.partnerwebsite.com/foodtakeout+delivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_DELIVERY", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" }, { "url": "https://www.partnerwebsite.com/foodtakeout+delivery/merch34", "action_link_type": "ACTION_LINK_TYPE_ORDER_FOOD_TAKEOUT", "language": "en", "platform": "ACTION_PLATFORM_WEB_APPLICATION" } ] } ] }