Specifica i link alle azioni

Un link all'azione consente agli utenti di interagire con un link diretto che rimanda al sito web del partner per eseguire un'azione. I link diretti vengono visualizzati nella scheda informativa del commerciante. Questa guida descrive come aggiungere link di azione ai feed.

Devi fornire un link all'azione tramite i feed del commerciante quando tutti i servizi di un determinato commerciante reindirizzano l'utente alla stessa pagina di destinazione sul sito web del partner.

Il tipo di azione deve essere specificato utilizzando ActionLinkType, che fa parte di ActionLink nel feed dei commercianti.

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