アクション リンクを指定する(従来版)

<ph type="x-smartling-placeholder">

<ph type="x-smartling-placeholder">

アクション リンクは、ユーザーがディープリンクを操作するための機能を提供します。 パートナーのウェブサイトにリンクし、アクションを実行します。ディープリンク 販売者のナレッジパネルに表示されます。このガイドでは、Google Cloud で フィードにアクション リンクを追加します。

アクション リンクは次の 2 つの場所で指定できます。

  • Merchant フィード - 1 つの販売者が複数のサービスを提供している場合は、販売者のフィードを介してアクション リンクを実装する 実行していることがわかります。
  • サービス フィード - 1 つの販売者が複数のサービスを提供している場合は、サービス フィードを介してアクション リンクを実装する さまざまなアクションを実行しています。

すべてのサービスが提供されている場合は、販売者フィードを介してアクション リンクを提供する必要があります。 リダイレクト先のランディングページが パートナーのウェブサイトをご覧ください。

通常、これはレストラン向けの唯一の有意な実装です。 販売者ごとに 1 つのサービスしかないからです

次に例を示します。

  • 販売者は次のような複数のサービスを提供しています ヨガのクラス、ボクシングのクラス、サイクリングのクラス、ヘアカット、ヘアカラー、シャンプー。 アクション リンクからランディング ページにリダイレクトされる 販売者向けのサービス カタログ全体が表示されます。
で確認できます。 <ph type="x-smartling-placeholder">

アクションのタイプは、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;
  }

販売者が次の要件を満たしている場合は、サービス フィードを介してアクション リンクを指定する必要があります。 サービスごとに異なるディープリンクがある場合や、販売者が複数のサービスを使用している場合 料理の注文やレストランの予約など さまざまなアクションを実行します

次に例を示します。

  • レストランで食事の予約や料理の注文ができる。1 つのアクション リンクからユーザーがレストランの予約ページにリダイレクトされ、別のリダイレクト先である ユーザーが料理の注文ページに移動する

アクションのタイプは、ServiceType を使用して指定できます。 Service と ActionLinkType は、Compute Engine の 販売者フィードの ActionLink

<ph type="x-smartling-placeholder">
  enum ServiceType {
    SERVICE_TYPE_UNSPECIFIED = 0;

    // Service that provides dining reservation.
    SERVICE_TYPE_DINING_RESERVATION = 1;

    // Service that provides food ordering in general, could be either takeout
    // or delivery or both.
    SERVICE_TYPE_FOOD_ORDERING = 2;

    // Service that only provides food delivery.
    SERVICE_TYPE_FOOD_DELIVERY = 6;

    // Service that only provides food takeout.
    SERVICE_TYPE_FOOD_TAKEOUT = 7;

    // Services that provide event based ticketing (e.g. concerts, sporting
    // events, shows). Do not use for Reserve with Google integrations.
    SERVICE_TYPE_EVENT_TICKET = 3;
    SERVICE_TYPE_TRIP_TOUR = 4;

    // Service that provides appointments or classes. Recommended for (1) health
    // and fitness, (2) spa and beauty, and (3) financial consults and
    // evaluations services. Please see the supported service types:
    // https://developers.google.com/maps-booking/guides/end-to-end-integration/overview
    SERVICE_TYPE_APPOINTMENT = 5;

    // Service that provides appointment for an online class or session which
    // will be fully virtual. Must be set if enabling virtual service bookings.
    SERVICE_TYPE_ONLINE_APPOINTMENT = 8;

    // Service that allows users to shop from the given merchant. It could
    // either be delivery or pickup.
    SERVICE_TYPE_SHOPPING = 9;
  }
<ph type="x-smartling-placeholder">

OrderOnlineMetadata の使用

<ph type="x-smartling-placeholder">

OrderOnlineMetadata は、表示する情報を指定するために使用されます。 さまざまなサービスの手数料、最低注文額、在庫状況についてユーザーに オンラインショッピングフルフィルメントの方法含まれる場合、このメタデータは 関連付ける必要があります

この情報を 統合で必要な場合は、以下をご覧ください。 ドキュメントをご覧ください。