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

アクション リンクを使用すると、ユーザーはディープリンクを操作してパートナーのウェブサイトに移動して、アクションを実行できます。ディープリンクは販売者のナレッジパネルに表示されます。このガイドでは、フィードにアクション リンクを追加する方法について説明します。

アクション リンクは次の 2 つの場所に配置できます。

  • 販売者フィード - 単一の販売者が複数のサービスを使用して同様のアクションを行う場合、販売者フィードを介してアクション リンクを実装します。
  • サービス フィード - 単一の販売者が複数のサービスによってそれぞれ異なるアクションを実行する場合は、サービス フィードを介してアクション リンクを実装します。

特定の販売者のすべてのサービスが、ユーザーをパートナーのウェブサイト上の同じランディング ページにリダイレクトする場合は、販売者フィードを介してアクション リンクを指定する必要があります。

販売者ごとに 1 つのサービスしか存在しないため、レストランの場合、これは通常、唯一の意味のある実装です。

次に例を示します。

  • ヨガのクラス、ボクシングのクラス、サイクリングのクラス、ヘアカット、ヘアカラー、シャンプーなど、複数のサービスを提供しているとします。 アクション リンクをクリックすると、販売者のサービス カタログ全体が記載されたランディング ページにリダイレクトされます。

アクションの種類は、販売者フィードの ActionLink の一部である ActionLinkType を使用して指定する必要があります。

  // 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 つのアクション リンクはユーザーをレストランの予約ページにリダイレクトし、もう 1 つのアクション リンクは料理の注文ページにリダイレクトします。

アクションの種類は、サービスの ServiceType と、販売者フィードの ActionLink の一部である ActionLinkType を使用して指定できます。

  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;
  }

OrderOnlineMetadata の使用

OrderOnlineMetadata は、さまざまなオンライン ショッピングのフルフィルメント方法の料金、最低注文額、在庫状況について、ユーザーに表示する情報を指定するために使用します。このメタデータは、販売者フィードのアクション リンクに含まれます。

統合に必要な場合にこの情報をフィードに適切に含める方法については、以下のドキュメントをご覧ください。