Produktfeed

Der Produktfeed ist die Hauptmethode, um Google eine Liste mit Dingen bereitzustellen für Produkte, die auf verschiedenen Google-Plattformen präsentiert werden sollen.

Ein ProductFeed-Objekt besteht aus einem FeedMetadata-Objekt und Null oder mehr Product-Objekte. Wenn in allen Shards kein Product angegeben ist, werden alle Produkte gelöscht.

ProductFeed

Proto

message ProductFeed {
  // Metadata for this feed.
  // Required.
  FeedMetadata feed_metadata = 1;

  // List of the products.
  // Optional. When unset in all shards, all products will be deleted.
  repeated Product products = 2;
}

Implementierungshinweise

Typ Feld Hinweise
FeedMetadata feed_metadata ERFORDERLICH.
Metadaten für diesen Feed.
Wiederholtes
Produkt
Produkte OPTIONAL.
Wenn die Richtlinie in allen Shards nicht konfiguriert ist, werden alle Produkte gelöscht werden. feed_metadata/max_removal_share müssen möglicherweise festgelegt werden, wenn eine große Anzahl von Produkten entfernt wird.

Beispiele

// Example 1: Basic structure
{
  "feed_metadata": {
    ...
  },
  "products": [
    ...
  ]
}

// Example 2: Wipe all products
{
  "feed_metadata": {
    "shard_id": 0,
    "total_shards_count": 1,
    "processing_instruction": "PROCESS_AS_SNAPSHOT",
    "nonce": 202113041501,
    "max_removal_share": 1.0
  },
  "products": []
}

FeedMetadata

Proto

message FeedMetadata {
  // The current shard ID, zero-based. Shards do not need to be transferred in
  // order. Processing will start only after a full set of shards was uploaded.
  // Required when total_shards_count > 1.
  uint32 shard_id = 1;

  // Total number of shards in this transfer.
  // Required. Must be >= 1.
  uint32 total_shards_count = 2;

  // An arbitrary number used to link multiple shards to the same transfer.
  // Required when total_shards_count > 1.
  // Must be the same for all shards within the transfer.
  uint64 nonce = 3;

  enum ProcessingInstruction {
    // For compatibility, don't use.
    PROCESS_AS_UNSPECIFIED = 0;

    // This Feed upload should be processed as a complete snapshot replacing any
    // previously uploaded data of this type.
    // Supported feed types: product.
    PROCESS_AS_SNAPSHOT = 1;

    // This Feed upload should be processed as an upsert, updating or adding
    // data to the previous uploads. Supported feed types: reviews,
    // availability.
    PROCESS_AS_UPSERT = 2;
  }

  // Processing instruction for this upload.
  // Required.
  ProcessingInstruction processing_instruction = 4;

  // Maximal share of currently active products that are allowed to be removed
  // by an upload. If more products will be removed by this transfer, the whole
  // transfer will be rejected.
  // This is a safeguard against unintentional take down of a significant part
  // of the inventory. Can be set to 1.0 to allow complete inventory take down.
  // Optional.
  double max_removal_share = 5;
}

Implementierungshinweise

Typ Feld Hinweise
uint32 shard_id ERFORDERLICH, wenn total_shards_count > 1.
Nullbasiert. Shards müssen nicht der Reihe nach übertragen werden. Verarbeitungsbeginn nachdem ein vollständiger Satz Shards hochgeladen wurde.
uint32 total_shards_count REQUIRED, muss ≥ 1 sein.
uint64 Nonce ERFORDERLICH, wenn total_shards_count > 1.
Muss für alle Shards innerhalb der Übertragung gleich sein.
enum processing_instruction ERFORDERLICH.
PROCESS_AS_SNAPSHOT ist der einzige Wert. unterstützt.
double max_removal_share OPTIONAL.
Maximaler Anteil an aktiven Produkten, die durch einen Upload entfernt werden dürfen. Wenn weitere Produkte entfernt werden wird die gesamte Übertragung abgelehnt. Dies ist ein Schutz vor unbeabsichtigtem Entfernen eines erheblichen Teils der Website des Inventars. Kann auf „1,0“ gesetzt werden, damit das gesamte Inventar deaktiviert werden kann.

Beispiele

// Example 1: metadata single JSON file
{
    "shard_id": 0,
    "total_shards_count": 1,
    "processing_instruction": "PROCESS_AS_SNAPSHOT",
    "nonce": 202113041501
}

// Example 2a: two JSON files (1st file)
{
    "shard_id": 0,
    "total_shards_count": 2,
    "processing_instruction": "PROCESS_AS_SNAPSHOT",
    "nonce": 202213041502
}

// Example 2b: two JSON files (2nd file)
{
    "shard_id": 1,
    "total_shards_count": 2,
    "processing_instruction": "PROCESS_AS_SNAPSHOT",
    "nonce": 202213041502
}

Produkt

Proto

message Product {
  // An opaque string from the partner which uniquely identifies the product.
  // Allowed characters are alphanumeric, _, and -. Max length: 255.
  // Required.
  string id = 1;

  // The title of the product in plain text, e.g. "Horseback riding on the
  // moon". See definition of "LocalizedTextSet" message for the details on the
  // localization.
  // Recommended to not exceed length of 50 in any language. Max length: 150.
  // Required.
  LocalizedTextSet title = 2;

  // The description of the product. Limited formatting options are allowed in
  // the HTML format. Supported tags:
  //   * h1-h5
  //   * ul, ol, li
  //   * strong, italic, em
  //   * p, br
  // Other tags are not supported and will be removed. CSS, tables, style
  // property, `a` links are not supported. Images are not allowed, use the
  // related_media field instead.
  // Important notes:
  //   * Try not to use other tags except for the supported ones mentioned
  //     above, because the contents within unsupported tags will be stripped,
  //     and may lead to an undesirable user experience.
  //   * Try avoid deep nested structures like more than 3 different heading
  //     levels or nested lists. Keeping the structure flat, simple, and
  //     straightforward, helps to create a better user experience.
  //   * Do not duplicate info from the product_features field below in the
  //     description as both would normally be shown side by side.
  // Recommended to not exceed length of 10000 in any language. Max length:
  // 16000.
  // Recommended.
  LocalizedTextSet description = 3;

  // Structured details about the product features.
  // Max number of features: 100.
  // Recommended.
  repeated TextFeature product_features = 4;

  // Aggregated product rating.
  // Recommended.
  Rating rating = 5;

  // Related media such as photos or videos.
  // Max number of media: 30.
  // Recommended.
  repeated Media related_media = 6;

  // Whether Google should make use of the order in which related media are
  // listed in the feed or not. The media order would be used to influence
  // the final image order for the product in the UI.
  // Optional, default is false.
  bool use_media_order = 13;

  // Options available for this product.
  // Max number of options: 20.
  // At least one is required.
  repeated Option options = 7;

  // Operator details.
  // Optional.
  Operator operator = 8;

  // Inventory type of this product.
  enum InventoryType {
    // Default inventory type.
    INVENTORY_TYPE_DEFAULT = 0;

    // Product is an official ticket to a point of interest. To learn what
    // qualifies as official inventory, refer to the policy doc.
    INVENTORY_TYPE_OFFICIAL = 1;

    // Product is coming directly from the operator or their official
    // Connectivity Provider / ResTech.
    INVENTORY_TYPE_OPERATOR_DIRECT = 2;
  }

  // Optional.
  InventoryType inventory_type = 9;

  // Should contain only distinct values of InventoryType.
  // Max number of inventory types: 2.
  // Optional.
  repeated InventoryType inventory_types = 12;

  // Confirmation type of this product.
  enum ConfirmationType {
    // Type of confirmation is unknown.
    CONFIRMATION_TYPE_UNKNOWN = 0;

    // Booking is confirmed to the end user immediately.
    CONFIRMATION_TYPE_INSTANT = 1;

    // Booking is confirmed to the end user within 24 hours.
    CONFIRMATION_TYPE_24HRS = 2;

    // Booking is confirmed to the end user within 48 hours.
    CONFIRMATION_TYPE_48HRS = 3;
  }

  // Optional.
  ConfirmationType confirmation_type = 10;

  // Possible fulfillment types -- ways to obtain a document to confirm the
  // booking. Combinations are possible, e.g. mobile + printed, or
  // printed at home + in-person pickup is available.
  // At least one field must be true.
  message FulfillmentType {
    // Confirmation on a mobile phone, e.g. with a QR code.
    bool mobile = 1;

    // Printable confirmation.
    bool print_at_home = 2;

    // Admission documents to be picked up in person.
    bool pickup = 3;
  }

  // Recommended.
  FulfillmentType fulfillment_type = 11;

  // Provider brand name.
  // Recommended to not exceed length of 50 in any language.
  // Max length: 100.
  // Optional.
  LocalizedTextSet brand_name = 14;
}

Implementierungshinweise

Typ Feld Hinweise
String id ERFORDERLICH, max. Länge: 255.
: Ein eindeutiger String, der den Produkt. Zulässige Zeichen sind alphanumerisch, _ und -.
LocalizedTextSet Titel ERFORDERLICH, empfohlene Länge <= 50, max. Länge: 150 Zeichen.
Weitere Informationen findest du in den Richtlinien für Titel und Beschreibungen.
LocalizedTextSet Beschreibung EMPFOHLEN, empfohlene Länge <= 10.000, max. Länge: 16.000 Zeichen.
Weitere Informationen findest du in den Richtlinien für Titel und Beschreibungen.
repeated
TextFeature
product_features EMPFOHLEN, max. Anzahl an Elementen: 100.
Bewertung rating EMPFOHLEN.
Die Angabe von Bewertungen wird dringend empfohlen, da Produkte mit Bewertungen zu einer höheren Klickrate führen.
repeated
Media
related_media EMPFOHLEN, max. Medienanzahl: 30
Es wird dringend empfohlen, mehr als ein Bild bereitzustellen. Eine ausführliche Anleitung zu Bildern findest du in den Richtlinien für Bilder.
boolean use_media_order OPTIONAL
Ein Hinweis an Google, dass die Reihenfolge, in der die zugehörigen Medien im Feed aufgeführt werden, bei der Auswahl des Bildes berücksichtigt werden sollte.
repeated
Option
Optionen ERFORDERLICH, max. Anzahl an Optionen: 20
Jedes Produkt muss mindestens eine Produktoption haben.
Operator Operator OPTIONAL.
enum deprecated
inventory_type
OPTIONAL.
INVENTORY_TYPE_OFFICIAL kann nur in Produkten festgelegt werden, die auf die offizielle Ticketwebsite eines Point of Sale verlinkt sind. Interesse. Dieser Wert kann erst nach einer Berechtigungsprüfung festgelegt werden.
Dieses Feld wurde eingestellt und durch das neue wiederkehrende Feld „inventory_types“ ersetzt.
repeated inventory_types OPTIONAL.
Wiederholte Liste eindeutiger Inventartypen, zu denen dieses Produkt gehört.
INVENTORY_TYPE_OFFICIAL kann nur in Produkten festgelegt werden, die auf die offizielle Ticketwebsite eines Point of Sale verlinkt sind. Interesse. Dieser Wert kann erst nach einer Berechtigungsprüfung festgelegt werden.
INVENTORY_TYPE_OPERATOR_DIRECT kann nur in Produkten festgelegt werden, die auf die Website des Touranbieters verweisen. Dieser Wert kann erst nach einer Berechtigungsprüfung festgelegt werden.
enum confirmation_type OPTIONAL.
FulfillmentType fulfillment_type EMPFOHLEN. Wenn festgelegt, muss mindestens ein Feld in fulfillment_rype „true“ sein.
Legt die Möglichkeiten zum Abrufen eines Dokuments zur Bestätigung der Buchung fest. Kombinationen sind möglich, z. B. mobil + ausgedruckt oder zu Hause ausgedruckt – Abholung im Geschäft verfügbar ist.
LocalizedTextSet brand_name max. Länge 100.
Der Markenname, der für das Produkt angezeigt werden soll. Dieser ersetzt den mittlerweile eingestellten Namen. Operator/Name. Es kann nur einer der beiden Werte festgelegt werden.

Beispiele

{
  "id": "product-1",
  "title": {
      "localized_texts": [
          {
              "language_code": "en",
              "text": "Dans bike tour"
          },
          {
              "language_code": "es",
              "text": "Tour en bicicleta por Dans"
          },
          {
              "language_code": "zh-HK",
              "text": "丹斯自行車之旅"
          }
      ]
  },
  "description": {
    "localized_texts": [
        {
            "language_code": "en",
            "text": "<p>A very fun bike tour<p>"
        },
        {
            "language_code": "es",
            "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
        },
        {
            "language_code": "zh-HK",
            "text": "<p>一個非常有趣的自行車之旅.</p>"
        }
    ]
  },
  "brand_name": {
      "localized_texts": [
          {
              "language_code": "en",
              "text": "Dans Bikes"
          }
      ]
  },
  "rating": {
      "average_value": 4.6,
      "rating_count": 192
  },
  "product_features": [{
    "feature_type": "TEXT_FEATURE_INCLUSION",
    "value": {
        "localized_texts": [
            {
                "language_code": "en",
                "text": "<p>A very fun bike tour<p>"
            },
          {
              "language_code": "es",
              "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
          },
          {
              "language_code": "zh-HK",
              "text": "<p>一個非常有趣的自行車之旅.</p>"
          }
      ]
    }
  },{
    "feature_type": "TEXT_FEATURE_HIGHLIGHT",
    "value": {
        "localized_texts": [
            {
                "language_code": "en",
                "text": "<p>A very fun bike tour<p>"
              },
              {
                  "language_code": "es",
                  "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
              },
              {
                  "language_code": "zh-HK",
                  "text": "<p>一個非常有趣的自行車之旅.</p>"
              }
          ]
      }
  },{
    "feature_type": "TEXT_FEATURE_MUST_KNOW",
    "value": {
        "localized_texts": [
            {
                "language_code": "en",
                "text": "<p>A very fun bike tour<p>"
            },
            {
                "language_code": "es",
                "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
            },
            {
                "language_code": "zh-HK",
                "text": "<p>一個非常有趣的自行車之旅.</p>"
            }
        ]
      }
  }],
  "options": [{
    "id": "option-1",
    "title": {
        "localized_texts": [
            {
                "language_code": "en",
                "text": "Sunset tour"
            },
            {
                "language_code": "es",
                "text": "Tour al atardecer"
            },
            {
                "language_code": "zh-HK",
                "text": "日落之旅"
            }
        ]
    },
    "landing_page": {
        "url": "https://www.danstour.com/sunset?source={src}&language={lang}&currency={currency}"
    },
    "cancellation_policy": {
        "refund_conditions": [
            {
                "min_duration_before_start_time_sec": 86400,
                "refund_percent": 100
            }
        ]
    },
    "option_categories": [
        {
            "label": "sports"
        },
        {
            "label": "bike-tours"
        }
    ],
    "related_locations": [
        {
            "location": {
                "location": {
                    "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
                }
            },
            "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
        },
        {
            "location": {
                "location": {
                    "lat_lng": {
                        "latitude": 53.339688,
                        "longitude": 6.236688
                    }
                }
            },
            "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
        }
    ],
    "price_options": [
        {
            "id": "option-1-adult",
            "title": "Adult (14+)",
            "price": {
                "currency_code": "EUR",
                "units": 20
            },
            "fees_and_taxes": {
                "per_ticket_fee": {
                    "currency_code": "EUR",
                    "units": 1
                },
                "per_ticket_tax": {
                    "currency_code": "EUR",
                    "units": 1
                }
            }
        }
    ]},{
      "id": "option-2",
      "title": {
          "localized_texts": [
              {
                  "language_code": "en",
                  "text": "Sunrise tour"
              },
              {
                  "language_code": "es",
                  "text": "Tour al amanecer"
              },
              {
                  "language_code": "zh-HK",
                  "text": "日出之旅"
              }
          ]
      },
      "landing_page": {
          "url": "https://www.danstour.com/sunrise?source={src}&language={lang}&currency={currency}"
      },
      "cancellation_policy": {
          "refund_conditions": [
              {
                  "min_duration_before_start_time_sec": 86400,
                  "refund_percent": 100
              }
          ]
      },
      "option_categories": [
          {
              "label": "sports"
          },
          {
              "label": "bike-tours"
          }
      ],
      "related_locations": [
          {
              "location": {
                  "location": {
                      "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
                  }
              },
              "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
          }
      ],
      "price_options": [
          {
              "id": "option-2-adult",
              "title": "Adult (14+)",
              "price": {
                  "currency_code": "EUR",
                  "units": 20,
                  "nanos": 0
              }
          }
      ],
      "meeting_point": {
          "location": {
              "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
          },
          "description": {
              "localized_texts": [
                  {
                      "language_code": "en",
                      "text": "Sunrise tour"
                  },
                  {
                      "language_code": "es",
                      "text": "Tour al amanecer"
                  },
                  {
                      "language_code": "zh-HK",
                      "text": "日出之旅"
                  }
              ]
          }
      }
    }
  ],
  "related_media": [
      {
          "url": "http://www.danstour.com/photo1.jpg",
          "type": "MEDIA_TYPE_PHOTO"
      },
      {
          "url": "http://www.danstour.com/photo2.jpg",
          "type": "MEDIA_TYPE_PHOTO",
          "attribution": {
              "localized_texts": [
                  {
                      "language_code": "en",
                      "text": "Dans Photos"
                  }
              ]
          }
      }
  ],
  "operator": {
      "name": {
          "localized_texts": [
              {
                  "language_code": "en",
                  "text": "Dans Bikes"
              }
          ]
      },
      "phone_number": "01234567",
      "locations": [{
          "location": {
              "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
          }
        }]
  },
  "inventory_types": ["INVENTORY_TYPE_OPERATOR_DIRECT"]
}

Option

Proto

message Option {
  // Option ID. Must be unique within a product.
  // Required.
  string id = 1;

  // The title of the option in plain text, e.g. "Sunset tour".
  //
  // If there is only a single option, the option title may be the same as the
  // product title. If multiple product options are presented, the title must be
  // unique to the option.
  // Recommended to not exceed length of 50 in any language.
  // Max length: 150.
  // Required.
  LocalizedTextSet title = 2;

  // The description of the option. Limited formatting options are allowed in
  // the HTML format, see product description field for more details.
  // Recommended to not exceed length of 10000 in any language.
  // Max length: 16000.
  // Recommended.
  LocalizedTextSet description = 3;

  // Landing page URL for this option. The page should include a button to start
  // the booking/checkout flow.
  // Required.
  DeepLink landing_page = 5;

  // Link to a list view at a higher level of available tickets and tours,
  // prominently showing this option possibly among other options.
  // Recommended.
  DeepLink landing_page_list_view = 6;

  // Additional structured details about the option features. Should not
  // duplicate the details from the product level.
  // Max number of features: 100.
  // Optional.
  repeated TextFeature option_features = 7;

  // Cancellation policy for this option.
  // Recommended.
  CancellationPolicy cancellation_policy = 8;

  // Relevant categories for this Option. Refer to the documentation for valid
  // and mutually exclusive values.
  // Max number of categories: 100.
  // Optional.
  repeated Category option_categories = 9;

  // List of locations related to this option.
  // Max number of locations: 100.
  // Recommended.
  repeated RelatedLocation related_locations = 10;

  // If true, the option is a *typical ticket* that a user would expect to buy
  // to participate in the experience, whether it's an attraction admission or
  // a slot in a tour.
  // Optional, default is false.
  bool base_ticket = 11;

  // All possible prices for this option.
  // Note: With Feed Spec v1 only single Adult price is supported. If multiple
  // price options were provided, the lowest price, possibly with notion
  // "from ..." would be displayed.
  // At least one is required.
  repeated PriceOption price_options = 12;

  // Duration of the option in seconds, where applicable, e.g. for guided tours,
  // boat trips etc. This should reflect the duration of experience (not
  // validity time).
  // Optional.
  uint32 duration_sec = 16;

  // Languages of the option. Only where relevant -- when it's important for
  // the end user to understand and/or read in the language to enjoy the
  // experience. E.g. relevant for a guided tour, but not for a mini-golf pass.
  // Max number of languages: 100.
  // Recommended.
  repeated Language languages = 14;

  // Meeting point -- the start location. Only add where relevant and
  // beneficial, e.g. the place where participant will meet the tour guide to
  // start a walking tour, the place where participant will be picked up for a
  // city tour, the dock where a cruise trip will start.
  // Optional.
  Location meeting_point = 15;
}

Implementierungshinweise

Typ Feld Hinweise
String id ERFORDERLICH.
Options-ID. Darf innerhalb eines Produkts nur einmal vorkommen.
LocalizedTextSet Titel ERFORDERLICH, empfohlene Länge: 50, max. Länge: 150 Zeichen.
Wenn es nur eine Option gibt, kann der Titel der Option mit dem Produkttitel übereinstimmen. Falls mehrere Produktoptionen angezeigt werden, muss der Titel für die Option eindeutig sein. Weitere Informationen findest du in den Richtlinien für Titel und Beschreibungen.
LocalizedTextSet Beschreibung EMPFOHLEN, empfohlene Länge: 10.000, maximale Länge: 16.000.
Weitere Informationen findest du in den Richtlinien für Titel und Beschreibungen.
DeepLink landing_page ERFORDERLICH.
Muss eine Schaltfläche oder einen Link zum Buchen des Produkts enthalten. Weitere Informationen finden Sie in den Richtlinien für Landingpages.
DeepLink landing_page_list_view EMPFOHLEN.
Link zu einer Listenansicht mit verfügbaren Tickets und Touren, in denen diese Option eventuell neben anderen Optionen gut sichtbar ist. Weitere Informationen finden Sie in den Richtlinien für Landingpages.
repeated
TextFeature
option_features OPTIONAL, maximale Anzahl an Elementen: 100.
Es sollten nicht die Details von der Produktebene dupliziert werden.
CancellationPolicy cancellation_policy EMPFOHLEN.
repeated
Category
option_categories Optional, maximale Anzahl von Kategorien: 100.
Relevante Kategorien für diese Option aus. Es ist besonders wichtig, dass self-guided für alle Aktivitäten festgelegt ist, die keine Tour sind, und guided-tour für alle Aktivitäten, die keine Tour sind. In der Dokumentation zu Produktkategorien finden Sie weitere empfohlene Werte.
repeated
RelatedLocation
related_location EMPFOHLEN, maximale Anzahl an Standorten: 100.
Eine genaue Liste der Standorte sind sehr wichtig, damit das Produkt in den meisten relevant sind. Wenn Sie jedoch über Tag-Kennzeichnungen oder die Bereitstellung korrekter Daten verfügen, zu entfernen. Weitere Informationen finden Sie im Leitfaden Standorte und POIs.
bool base_ticket OPTIONAL.
Wird verwendet, um anzugeben, ob die Produktoption das Basisticket ist.
repeated
PriceOption
price_options ERFORDERLICH, mindestens 1.
Alle möglichen Preise für diese Option. Hinweis: Es werden nur Preise für Erwachsene unterstützt. Wenn mehrere Preisoptionen angegeben wurde, wird der erste Preis, der die Überprüfung der geografischen Einschränkungen bestanden hat, verwendet werden. Bei Gruppentickets der volle Preis des muss stattdessen die gesamte Gruppe verwendet werden.
uint32 duration_sec OPTIONAL.
Dauer der Option in Sekunden, wobei zutreffend, z.B. z. B. für geführte Touren oder Bootsfahrten. die Dauer der Erfahrung (nicht die Gültigkeitszeit)
repeated
Language
Sprachen EMPFOHLEN, max. Anzahl an Sprachen: 100.
Sprachen, in denen die ist verfügbar. Wenn es für die Endanwendenden wichtig ist, die Sprache verstehen und/oder lesen, um das Erlebnis zu genießen. Beispiel: die für eine Führung relevant sind.
Standort meeting_point OPTIONAL.
Fügen Sie nur relevante und nützliche Informationen hinzu, z.B. die Ort, an dem der Teilnehmer sich mit dem Fremdenführer trifft, um eine Begehung zu starten der Ort, an dem Teilnehmer für eine Stadtführung abgeholt werden, an der Anlegestelle, an der die Kreuzfahrt beginnt.

Beispiele

{
  "id": "option-1",
  "title": {
    "localized_texts": [
    {
            "language_code": "en",
            "text": "Sunset tour"
        },
        {
            "language_code": "es",
            "text": "Tour al atardecer"
        },
        {
            "language_code": "zh-HK",
            "text": "日落之旅"
        }
    ]
  },
  "landing_page": {
      "url": "https://www.danstour.com/sunset?source={src}&language={lang}&currency={currency}"
  },
  "cancellation_policy": {
      "refund_conditions": [
          {
              "min_duration_before_start_time_sec": 86400,
              "refund_percent": 100
          }
      ]
  },
  "option_categories": [
      {
          "label": "sports"
      },
      {
          "label": "bike-tours"
      }
  ],
  "related_locations": [
      {
          "location": {
              "location": {
                  "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
              }
          },
          "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
      },
      {
          "location": {
              "location": {
                  "lat_lng": {
                      "latitude": 53.339688,
                      "longitude": 6.236688
                  }
              }
          },
          "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
      }
  ],
  "price_options": [
      {
          "id": "option-1-adult",
          "title": "Adult (14+)",
          "price": {
              "currency_code": "EUR",
              "units": 20
          },
          "fees_and_taxes": {
              "per_ticket_fee": {
                  "currency_code": "EUR",
                  "units": 1
              },
              "per_ticket_tax": {
                  "currency_code": "EUR",
                  "units": 1
              }
          }
      }
  ]
}

TextFeature

Proto

message TextFeature {
  enum TextFeatureType {
    // Don't use, for backwards compatibility only.
    TEXT_FEATURE_UNKNOWN = 0;

    // Feature is an inclusion.
    TEXT_FEATURE_INCLUSION = 1;

    // Feature is an exclusion.
    TEXT_FEATURE_EXCLUSION = 2;

    // Feature is a highlight.
    TEXT_FEATURE_HIGHLIGHT = 3;

    // Feature is a "must know".
    TEXT_FEATURE_MUST_KNOW = 4;

    // Feature represents information about safety measures.
    TEXT_FEATURE_SAFETY_INFORMATION = 5;
  }

  // Feature type.
  // Required.
  TextFeatureType feature_type = 1;

  // LocalizedTextSet content of the feature. Values support both plain-text
  // and HTML-like text for basic formatting. Supported HTML formatting tags:
  //
  // Phrase tags: <br>, <strong>, <em>, <i>:
  //   Only the four tags mentioned above are supported. <br> can be used to
  //   break lines in paragraphs, and <strong>/<em>/<i> can be used to highlight
  //   important text. Any other phrase tags will be ignored.
  //
  // All other tags and custom styles are not allowed and will be removed. Any
  // URLs, anchors, and links will be stripped, and will never be displayed to
  // end-users.
  // Recommended to not exceed length of 1000 in any language. Max length: 2000.
  // Required.
  LocalizedTextSet value = 2;
}

Implementierungshinweise

Typ Feld Hinweise
enum feature_type ERFORDERLICH.
Elementtyp, mögliche Werte:
  • TEXT_FEATURE_INCLUSION: Die Funktion ist eine Inklusion.
  • TEXT_FEATURE_EXCLUSION: Die Funktion ist ein Ausschluss.
  • TEXT_FEATURE_HIGHLIGHT: Das Merkmal ist ein Highlight.
  • TEXT_FEATURE_MUST_KNOW: Die Funktion ist ein Muss.
  • TEXT_FEATURE_SAFETY_INFORMATION: Element stellt Informationen zu Sicherheitsmaßnahmen dar.
  • LocalizedTextSet Wert ERFORDERLICH, empfohlene Länge <= 1.000 Zeichen, maximale Länge: 2.000.
    Unterstützte HTML-Formatierungs-Tags: br, strong, em, i
    Nur die vier oben genannten Tags werden unterstützt. br kann verwendet werden, um Zeilenumbrüche in Absätzen und strong/em/i können verwendet werden, um wichtigen Text hervorzuheben. Alle anderen Wortgruppen-Tags werden ignoriert.
    Alle anderen Tags und benutzerdefinierten Stile sind nicht zulässig und werden entfernt. Beliebig URLs, Anker und Links werden entfernt und nie für Nutzer Endanwendenden.

    Beispiele

    {
        "feature_type": "TEXT_FEATURE_HIGHLIGHT",
        "value": {
            "localized_texts": [
                {
                    "language_code": "en",
                    "text": "<p>A very fun bike tour<p>"
                },
                {
                    "language_code": "es",
                    "text": "<p>Un recorrido en bicicleta muy divertido.</p>"
                },
                {
                    "language_code": "zh-HK",
                    "text": "<p>一個非常有趣的自行車之旅.</p>"
                }
            ]
        }
    }
    

    Bewertung

    Proto

    message Rating {
      // Average rating value.
      // The value must be in the range of [1, 5] and can be omitted if and only if
      // the rating_count is zero.
      double average_value = 1;
    
      // Number of ratings used in calculating the value.
      // Required.
      uint64 rating_count = 2;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    double average_value OPTIONAL.
    Durchschnittliche Bewertung. Der Wert muss im Bereich von [1, 5]. Kann genau ausgelassen werden, wenn rating_count null ist.
    uint64 rating_count ERFORDERLICH.
    Anzahl der Bewertungen, die zur Berechnung des Werts verwendet werden.

    Beispiele

    // Example 1
    {
        "average_value": 4.6,
        "rating_count": 192
    }
    
    // Example 2: No ratings data
    {
        "rating_count": 0
    }
    

    Medien

    Proto

      message Media {
      // URL of this media source. Google will crawl the media hosted at this URL.
      // Max length: 2000.
      // Required.
      string url = 1;
    
      enum MediaType {
        // Don't use, for backwards compatibility only.
        MEDIA_TYPE_UNSPECIFIED = 0;
    
        // Indicates the media provided by the url is a photo.
        MEDIA_TYPE_PHOTO = 1;
      }
    
      // Type of this media source.
      // Required.
      MediaType type = 2;
    
      // Attribution information about the source of the media. Note that if
      // the attribution is required to display with the media to give credit to
      // photographer or agency, this field must be set.
      // Recommended to not exceed length of 1000 in any language.
      // Max length: 2000.
      // Optional.
      LocalizedTextSet attribution = 3;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String URL ERFORDERLICH, maximale Länge: 2.000.
    Die URL dieser Medienquelle. Google die unter dieser URL gehosteten Medien.
    enum Typ ERFORDERLICH.
    Der Typ dieser Medienquelle. Mögliche Werte:
  • MEDIA_TYPE_PHOTO: Gibt an, dass das über die URL bereitgestellte Medium ein Foto ist.
  • LocalizedTextSet Attribution OPTIONAL, empfohlene Länge: 1.000, maximale Länge: 2.000.
    Attribution Informationen zur Quelle der Medien. Wenn die Zuordnung müssen zusammen mit den Medien gezeigt werden, um den Fotografen oder die Agentur namentlich zu erwähnen, dieses Feld festgelegt werden.

    Beispiele

    {
        "url": "http://www.danstour.com/photo2.jpg",
        "type": "MEDIA_TYPE_PHOTO",
        "attribution": {
            "localized_texts": [
                {
                    "language_code": "en",
                    "text": "Dans Photos"
                }
            ]
        }
    }
    

    Definition der Kategorie

    Proto

    message Category {
      // Refer to the documentation for the valid values list.
      // Required.
      string label = 1;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String Label ERFORDERLICH. Eine Liste der gültigen Werte finden Sie in der Dokumentation zu Produktkategorien.

    Beispiele

    {
        "label": "sports"
    }
    

    RelatedLocation

    Proto

    // Defines relation between an option and a location.
    message RelatedLocation {
      // Location related to an option. Can be a POI (e.g. Eiffel tower),
      // neighbourhood (e.g. Old Town) or an address / arbitrary map point.
      // Required.
      Location location = 1;
    
      enum RelationType {
        // Location is related but relation does not allow admission or admission is
        // irrelevant, e.g. location is a square highlighted in a city tour.
        RELATION_TYPE_RELATED_NO_ADMISSION = 0;
    
        // Relation grants admission to this related location.
        RELATION_TYPE_ADMISSION_TICKET = 1;
    
        // Relation declares an additional service which doesn't get the user into
        // the related location, e.g. a parking ticket, a temporary exhibition, etc.
        RELATION_TYPE_SUPPLEMENTARY_ADDON = 2;
      }
    
      // Relation type of an option for the given location.
      // Required.
      RelationType relation_type = 2;
    }
    
    

    Implementierungshinweise

    Definiert die Beziehung zwischen einer Option und einer Position.

    Typ Feld Hinweise
    Standort Standort ERFORDERLICH.
    Standort in Bezug auf eine Option. Das kann ein POI (z.B. der Eiffelturm), ein Stadtteil (z.B. die Altstadt) oder eine Adresse oder ein beliebiger Kartenpunkt sein.
    enum relation_type ERFORDERLICH.
    Relationstyp einer Option für den angegebenen Standort. Mögliche Werte:
  • RELATION_TYPE_RELATED_NO_ADMISSION: Standort ist zusammengehören, aber eine Beziehung lässt den Eintritt nicht zu oder der Eintritt ist irrelevant, z.B. Standort ist ein bei einem Stadtrundgang hervorgehoben.
  • RELATION_TYPE_ADMISSION_TICKET: Die Beziehung gewährt Zugang dazu für den jeweiligen Standort.
  • RELATION_TYPE_SUPPLEMENTARY_ADDON: Die Beziehung deklariert eine zusätzliche Service, bei dem der Nutzer nicht zu dem entsprechenden Ort geleitet wird, z.B. eine Parkschein, eine Wechselausstellung usw.
  • Beispiele

    // Example of place id POI with no admissions
    {
        "location": {
            "location": {
                "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
            }
        },
        "relation_type": "RELATION_TYPE_RELATED_NO_ADMISSION"
    }
    
    // Example of Address POI with admissions
    {
        "location": {
            "location": {
                "address": "Madame Tussauds Berlin, Unter den Linden 74, 10117 Berlin, Germany"
            }
        },
        "relation_type": "RELATION_TYPE_ADMISSION_TICKET"
    }
    
    

    Proto

    // Deep link definition. Can include value parameters that will be expanded on
    // serve time.
    message DeepLink {
      // Landing page URL template for desktop. If both `url` and `localized_url`
      // are provided, the former is used as a fallback in case
      // no URL matches the user’s locale.
      // Max length: 2000.
      // Either `url` or `localized_url` is required.
      string url = 1;
    
      // Landing page URL template for mobile. If omitted, it defaults to the `url`
      // value.
      // Max length: 2000.
      // Optional.
      string mobile_url = 2;
    
      // Localized landing page URL template for desktop. If both `url` and
      // `localized_url` are provided, the former is used as a fallback in case
      // no URL matches the user’s locale.
      // Max length: 2000.
      // Max number of locales: 50.
      // Either `url` or `localized_url` is required.
      LocalizedTextSet localized_url = 3;
    
      // Localized landing page URL template for mobile.
      // Max length: 2000.
      // Max number of locales: 50.
      // Optional.
      LocalizedTextSet localized_mobile_url = 4;
    }
    
    

    Implementierungshinweise

    Deeplink-Definition. Kann Wertparameter enthalten, die bei der Auslieferung erweitert werden.

    Typ Feld Hinweise
    String URL OPTIONAL, maximale Länge: 2.000.
    Landingpage-URL-Vorlage für Computer. Entweder „url“ oder „localized_url“ ist erforderlich.
    String mobile_url OPTIONAL, maximale Länge: 2.000.
    Landingpage-URL-Vorlage für Mobilgeräte.
    LocalizedTextSet localized_url OPTIONAL, maximale Länge: 2.000, maximale Anzahl von Ortsansässigen 50.
    Lokalisierte Landingpage-URL-Vorlage für Computer Wenn sowohl url als auch localized_url angegeben sind, Die erstere wird als Fallback verwendet, falls keine URL mit der Sprache des Nutzers übereinstimmt. Wenn url nicht verfügbar ist und keine Sprache angegeben ist, wird die englische URL verwendet.
    LocalizedTextSet localized_mobile_url OPTIONAL, maximale Länge: 2.000, maximale Anzahl der Ortsansässigen 50.
    Lokalisierte mobile_Landingpage-URL-Vorlage für Mobilgeräte.

    Beispiele

    // Example 1: single landing page url.
    {
      "url": "https://www.danstour.com/bike-tours/?source={src}&language={lang}&currency={currency}"
    }
    
    // Example 2: localized landing page url with fallback
    {
      "url": "https://www.danstour.com/bike-tours/?source={src}&currency={currency}",
      "localized_url": {
        "localized_texts": [{
              "language_code": "de",
              "text": "https://www.danstour.com.de/bike-tours/?source={src}&currency={currency}"
        }, {
              "language_code": "es-MX",
              "text": "https://mx.danstour.com/bike-tours/?source={src}&currency={currency}"
        }, {
              "language_code": "zh-HK",
              "text": "https://hk.danstour.com.es/bike-tours/?source={src}&currency={currency}"
        }]
      }
    }
    
    

    Operator

    Proto

    message Operator {
      // Operator name.
      // Recommended to not exceed length of 50 in any language. Max length: 100.
      // Required.
    
      LocalizedTextSet name = 1;
    
      // Operator business name as it is registered in Google Business Profile and
      // appearing on Google Maps.
      // Recommended to not exceed length of 50 in any language.
      // Max length: 100.
      // Required.
      LocalizedTextSet google_business_profile_name = 4;
    
      // Operator phone number. Prefer full international phone number format.
      // Max length: 64.
      // Optional.
      string phone_number = 2;
    
      // List of operator locations.
      // Max number of locations: 1.
      // Optional.
      repeated Location locations = 3;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    LocalizedTextSet Name [verworfen] OPTIONAL, empfohlene Länge: 50, maximale Länge: 100.
    Der Markenname des Verkäufers dieses Produkts. OTAs sollten als Onlinereisebüro-Marke. Dieses Feld wurde eingestellt und durch „brand_name“ unter „products“ ersetzt
    LocalizedTextSet google_business_profile_name ERFORDERLICH, maximale Länge: 100.
    Name des Unternehmens des Betreibers, wie er im Google Unternehmensprofil registriert ist und in Google Maps angezeigt wird Dieses Feld ist für die Teilnahme am Buchungsmodul des Anbieters erforderlich.
    String phone_number OPTIONAL, maximale Länge: 64.
    Telefonnummer des Betreibers. Ich bevorzuge ein vollständiges internationales Telefonnummernformat.
    repeated
    Location
    Standorte OPTIONAL, maximale Zahl: 1.
    Die Geschäftsadresse des Operators. Bei Verwendung der Adresszeichenfolge den Unternehmensnamen als Teil des Adresszeichenfolge. z.B. ", " Betreiber muss das Unternehmen auf Google Maps zu finden sein, damit der Betreiber ausgelöst wird, muss der Betreiber ein Google Unternehmensprofil wenn das Unternehmen nicht auf Google Maps zu finden ist.

    Beispiele

    // Example 1: Sending operator information for operator booking module:
    operator: {
      "google_business_profile_name": {
        "localized_texts": [{
          "language_code": "en",
          "text": "Dans Bikes"}] 
      },
      "locations": [{
        "location": { //Operator business address
         "address": "Dans Bikes, 123 NYC st"
      }}]
    }
    

    Sprachdefinition

    Proto

    message Language {
      // A BCP 47 compliant language code such as "en" or "de-CH".
      string code = 1;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String Code Einen BCP-47-konformen Sprachcode wie „en“ oder „de-CH“.

    Beispiele

    {
        "code": "de-CH"
    }
    

    PriceOption

    Proto

    message PriceOption {
      // Unique ID within the price set.
      // Max length: 255.
      // Required.
      string id = 1;
    
      // Short description of the price option, e.g. "Adult weekday".
      // Max length: 150.
      // Required.
      string title = 2;
    
      // Price value, must match the final price on the checkout page, including all
      // taxes and charges, see price policy. Currency will be converted to the user
      // currency on rendering.
      // Required when is_free is false.
      google.type.Money price = 3;
    
      // Admission or ticket is free. Must be set to true for zero-price options.
      // Optional, default is false.
      bool is_free = 4;
    
      // List of geographical regions this price is applicable to. If empty,
      // applicable to all locations.
      // Optional.
      repeated GeoCriterion geo_criteria = 5;
    
      // Break down of fees and taxes included in the price above.
      // Optional.
      PriceFeesAndTaxes fees_and_taxes = 6;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String id ERFORDERLICH, max. Länge: 255.
    Eindeutige ID innerhalb des festgelegten Preises.
    String Titel ERFORDERLICH, max. Länge: 150.
    Kurze Beschreibung der Preisoption, z. B. „Erwachsener Wochentag“.
    google.type.Money Preis ERFORDERLICH, wenn is_free "false" ist.
    Preiswert muss mit dem Wert auf der Zahlungsseite, einschließlich aller Steuern und Kosten, siehe Preisrichtlinie. Die Währung wird beim Rendern in die Währung des Nutzers umgerechnet.
    bool is_free OPTIONAL, Standardwert ist „false“.
    Der Eintritt oder Ticket ist kostenlos. Muss für Optionen ohne Preis auf „true“ festgelegt sein.
    repeated
    GeoCriterion
    geo_criteria OPTIONAL.
    Liste der Regionen, für die dieser Preis gilt. Falls leer, gilt dies für alle Standorte.
    repeated
    PriceFeesAndTaxes
    fees_and_taxes OPTIONAL.
    Aufschlüsselung der im obigen Preis enthaltenen Gebühren und Steuern.

    Beispiele

    {
        "id": "option-1-adult",
        "title": "Adult (14+)",
        "price": {
            "currency_code": "EUR",
            "units": 20
        },
        "fees_and_taxes": {
            "per_ticket_fee": {
                "currency_code": "EUR",
                "units": 1
            },
            "per_ticket_tax": {
                "currency_code": "EUR",
                "units": 1
            }
        }
    }
    

    GeoCriterion

    Proto

    message GeoCriterion {
      // 2-letter country code as defined in ISO 3166-1.
      // Required.
      string country_code = 1;
    
      // If true, criterion is negative (the country code is excluded).
      bool is_negative = 2;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String country_code ERFORDERLICH.
    Zweistelliger Ländercode gemäß ISO 3166-1.
    bool is_negative OPTIONAL.
    Falls „true“, ist das Kriterium negativ (der Ländercode wird ausgeschlossen).

    Beispiele

    {
        "country_code": "US",
        "is_negative": "true"
    }
    

    PriceFeesAndTaxes

    Proto

    message PriceFeesAndTaxes {
      // Booking fees included in the final product price for a single ticket.
      // Optional.
      google.type.Money per_ticket_fee = 1;
    
      // State taxes included in the final product price for a single ticket.
      // Optional.
      google.type.Money per_ticket_tax = 2;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    google.type.Money per_ticket_fee OPTIONAL.
    Die Buchungsgebühren sind im endgültigen Produktpreis für ein Einzelticket enthalten.
    google.type.Money per_ticket_tax OPTIONAL.
    Die bundesstaatlichen Steuern sind im endgültigen Produktpreis für ein Einzelticket enthalten.

    Beispiele

    {
        "per_ticket_fee": {
            "currency_code": "EUR",
            "units": 1
        },
        "per_ticket_tax": {
            "currency_code": "EUR",
            "units": 1
        }
    }
    

    Standort

    Proto

    message Location {
      // At least one of (location, description) must be set, and we highly
      // recommend populating location wherever possible.
      //
      // To emphasize, both fields can be populated together, e.g. you can set
      // Central Park New York for the location and "In front of the 72 Street
      // Station" for the description.
      GeoLocation location = 1;
    
      // Additional description in human-readable form, e.g.
      //     "On the left side of the fountain on the Palace square".
      // At least one of (location, description) must be set.
      // Recommended to not exceed length of 1000 in any language. Max length: 2000.
      LocalizedTextSet description = 2;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    GeoLocation Standort OPTIONAL; es muss entweder der Ort oder eine Beschreibung vorhanden sein.
    Der geografische Standort.
    LocalizedTextSet Beschreibung OPTIONAL, empfohlene Länge: 1.000, max. Länge: 2.000, mindestens eine Ortsangabe oder Beschreibung muss vorhanden sein.
    Zusätzliche Beschreibung in visuell lesbarer Form, z.B. „Auf der linken Seite des Brunnens auf dem Palastplatz“.

    Beispiele

    {
        "location": {
            "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
        }
    }
    

    GeoLocation

    Weitere Informationen finden Sie unter . Nutzungsrichtlinien detailliertere Informationen zu den einzelnen Hinweistypen.

    Proto

    message GeoLocation {
      // Required (exactly one variant from oneof).
      // See
      // https://developers.google.com/travel/things-to-do/guides/partner-integration/location
      // for detailed guidelines.
      oneof value {
        // Place ID as defined by the Places API:
        //   https://developers.google.com/places/web-service/place-id
        //
        // Uniquely identifies a POI on Google.
        // It can be sourced using the Places API endpoints, for instance Place
        // Search or Place Autocomplete, or manually using the Find Location Matches
        // tool in Things to Do Center.
        string place_id = 1;
    
        // Legacy single-line address.
        // Components are expected to be comma-separated, with the first component
        // being the place name as it is displayed on Google.
        // For higher matching accuracy, use the street address shown on Google for
        // the place.
        //
        // Examples:
        // - "Colosseum, Piazza del Colosseo, 1, 00184 Roma RM, Italy"
        // - "The British Museum, Great Russell St, London WC1B 3DG, United Kingdom"
        //
        // Max length: 200.
        //
        // Deprecated: use `place_info` for higher matching accuracy, which provides
        // a separate field for the place name and supports both structured and
        // unstructured address formats.
        string address = 3 [deprecated = true];
    
        // Structured place information.
        PlaceInfo place_info = 4;
    
        // Business Profile ID, as found in the Google Business Profile settings
        // page. Use this field when sourcing locations directly from the place
        // owner, who has access to the Google Business Profile for the place and
        // can provide such ID.
        uint64 business_profile_id = 5;
    
        // Geographic coordinates.
        // This field can only be used to determine a city or geographical region,
        // as it is too ambiguous to identify a specific place or businesses.
        // Use `place_info` instead to match to a specific place by name and
        // coordinates.
        google.type.LatLng lat_lng = 2;
      }
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String place_id OPTIONAL, genau einer von place_id, address, place_info, business_profile_id oder lat_lng muss vorhanden ist.
    PlaceId gemäß Definition <ph type="x-smartling-placeholder"></ph> Places API Hiermit wird ein POI auf Google eindeutig identifiziert. Sie kann mithilfe der Places- API-Endpunkte wie „Place Search“ oder „Place Autocomplete“ oder mit dem Tool „Passende Orte finden“ im Things to Do Center manuell.
    String Adresse OPTIONAL, genau einer von place_id, address, place_info, business_profile_id oder lat_lng muss vorhanden ist.
    EINGESTELLT. Alte einzeilige Adresse. Maximale Länge: 200. Komponenten müssen durch ein Komma getrennt sein, wobei die erste Komponente ist der Name des Orts, wie er auf Google angezeigt wird. Für bessere Übereinstimmungen verwenden Sie die auf Google angezeigte Adresse des Orts.
    PlaceInfo place_info OPTIONAL, genau einer von place_id, address, place_info, business_profile_id oder lat_lng muss vorhanden ist.
    Strukturierte Informationen zum Ort.
    uint64 business_profile_id OPTIONAL, genau einer von place_id, address, place_info, business_profile_id oder lat_lng muss vorhanden ist.
    Unternehmensprofil-ID, wie in den Google Unternehmensprofil-Einstellungen zu finden Seite. Verwenden Sie dieses Feld, wenn Sie Standorte direkt am Ort beziehen. Inhaber, der Zugriff auf das Google Unternehmensprofil für den Ort hat, und eine solche ID zur Verfügung stellen können.
    google.type.LatLng lat_lng OPTIONAL, genau einer von place_id, address, place_info, business_profile_id oder lat_lng muss vorhanden ist.
    Geografische Koordinaten: Mit diesem Feld kann nur eine Stadt ermittelt werden oder geografische Region angeben, da die Identifizierung eines bestimmten oder Unternehmen. Verwenden Sie stattdessen place_info für einen Abgleich mit einem Ort mit Namen und Koordinaten.

    Beispiele

    "place_id": "ChIJ3S-JXmauEmsRUcIaWtf4MzE"
    
    "address": "Eiffel Tower, 5 Av. Anatole France, 75007 Paris, France"
    
    "place_info": {
      "name": "Eiffel Tower",
      "unstructured_address": "5 Av. Anatole France, 75007 Paris, France"
    }
    
    "business_profile_id": 11458995034835395294
    
    "lat_lng": {
      "latitude": -25.3511774,
      "longitude": 131.0326859
    }
    

    PlaceInfo

    Proto

    message PlaceInfo {
      // Place or business name.
      // For higher matching accuracy, this should be the same as the name shown on
      // Google for the place. For places with a claimed Google Business Profile,
      // this should be the same as the business name configured in the business
      // profile.
      // Max length: 100.
      // Required.
      string name = 1;
    
      // Phone number, including the international prefix.
      // For higher matching accuracy, this should be the same as the phone number
      // shown on Google for the place.
      // It can include commonly used separator characters.
      // Examples: "+1 212-363-3200", "+91 562 222 7261".
      // Max length: 30.
      // Optional.
      string phone_number = 2;
    
      // Website URL shown on Google for the place, preferably the URL linked from
      // the business listing in Google Maps or Search for the place.
      // Max length: 1000.
      // Optional.
      string website_url = 3;
    
      // Geographic coordinates of the place.
      // If left empty, Google will infer the coordinates from the address.
      // Optional, but either `coordinates` or one of `address_type` must be
      // provided.
      google.type.LatLng coordinates = 4;
    
      // Optional, but either `coordinates` or one of `address_type` must be
      // provided.
      oneof address_type {
        // Structured address.
        // Prefer this format whenever possible for higher matching accuracy.
        StructuredAddress structured_address = 5;
    
        // Unstructured address.
        // It should not include the place or business name, which must instead be
        // provided separately using the `name` field.
        //
        // Examples:
        // - `name`: "Colosseum", `unstructured_address`: "Piazza del Colosseo, 1,
        // 00184 Roma RM, Italy".
        // - `name`: "The British Museum", `unstructured_address`: "Great Russell
        // St, London WC1B 3DG, United Kingdom".
        //
        // Max length: 400.
        string unstructured_address = 6;
      }
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String Name ERFORDERLICH. Maximale Länge: 300. Name des Ortes oder des Unternehmens. Für höhere Übereinstimmungsgenauigkeit entspricht, muss dieser mit dem auf Google angezeigten Namen übereinstimmen. für den Ort suchen. Bei Orten mit beanspruchtem Google Unternehmensprofil: muss mit dem im Unternehmen konfigurierten Namen des Unternehmens übereinstimmen zu erstellen.
    String phone_number OPTIONAL. Maximale Länge: 30. Telefonnummer, einschließlich der internationalen Präfix. Für eine höhere Übereinstimmungsgenauigkeit sollte dies mit der auf Google für den Ort angezeigten Telefonnummer übereinstimmt. Er kann Folgendes enthalten: häufig verwendeten Trennzeichen. Beispiele: "+1 212-363-3200", „+91 562 222 7261“.
    String website_url OPTIONAL. Maximale Länge: 1.000. Auf Google angezeigte Website-URL für vorzugsweise die URL, die mit dem Brancheneintrag in Google verlinkt ist. Google Maps oder suchen Sie nach dem Ort.
    google.type.LatLng Koordinaten OPTIONAL. Geografische Koordinaten des Orts Wenn Sie das Feld leer lassen, werden die Koordinaten aus der Adresse abgeleitet. Optional, aber entweder coordinates oder einer der folgenden Werte: structured_address und unstructured_address muss angegeben werden.
    StructuredAddress structured_address OPTIONAL, genau einer von structured_address oder unstructured_address kann vorhanden sein, niemals beides.
    String unstructured_address OPTIONAL, genau einer von structured_address oder unstructured_address kann vorhanden sein, niemals beides.

    Beispiele

    "place_info": {
      "name": "Colosseum",
      "phone_number": "+39 063 99 67 700",
      "website_url": "https://colosseo.it/",
      "coordinates": {
        "latitude": 41.8902102,
        "longitude": 12.4922309
      },
      "structured_address" {
        "street_address": "Piazza del Colosseo, 1",
        "locality": "Roma",
        "administrative_area": "RM",
        "postal_code": "00184",
        "country_code": "IT"
      }
    }
    
    "place_info": {
      "name": "Eiffel Tower",
      "unstructured_address": "5 Av. Anatole France, 75007 Paris, France"
    }
    
    "place_info": {
      "name": "Mutitjulu Waterhole",
      "coordinates": {
        "latitude": -25.3511774,
        "longitude": 131.0326859
      }
    }
    

    StructuredAddress

    Proto

    message StructuredAddress {
      // Street address, including house number and any other component that cannot
      // be provided using the more specific fields defined below. It should not
      // include the place or business name, which must instead be provided
      // separately using the `name` field under `PlaceInfo`. It should also not
      // include postal code, locality or country as those should be provided using
      // the corresponding fields below.
      //
      // Examples:
      // - "Piazza del Colosseo, 1" for the Colosseum.
      // - "Great Russell St" for The British Museum.
      // - "Champ de Mars, 5 Av. Anatole France" for the Eiffel Tower.
      //
      // Max length: 200.
      // Required.
      string street_address = 1;
    
      // Locality, generally referring to the city/town portion of an address.
      // Examples: "New York", "Rome", "London", "Tokyo".
      // In regions of the world where localities are not well defined or do not fit
      // into this structure well, leave empty.
      // Max length: 80.
      // Optional.
      string locality = 2;
    
      // Highest administrative subdivision used for postal addresses of the
      // specific country or region. This can be a state, a region, a province, an
      // oblast, a prefecture, etc.
      // It can be an abbreviation or a full name, depending on how the region is
      // usually represented in the postal addresses of the specific country. For
      // example, "CA" or "California" for US addresses, "RM" for Rome province in
      // Italy.
      // Many countries don't use an administrative area in postal addresses. For
      // instance, this field should not be used for addresses in Switzerland.
      // Max length: 80.
      // Optional.
      string administrative_area = 3;
    
      // The postal code or zip code.
      // Examples: "75007", "WC1B 3DG", etc.
      // Required if the country supports postal codes, otherwise it should be left
      // empty.
      // Max length: 30.
      // Optional.
      string postal_code = 4;
    
      // Country code, as defined by Unicode's "CLDR", itself based on the ISO 3166
      // alpha-2 standard. See
      // https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html.
      //
      // Examples: "US" for the United States, "FR" for France, "GB" for the United
      // Kingdom, etc.
      // Max length: 2.
      // Required.
      string country_code = 5;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    String street_address ERFORDERLICH. Maximale Länge: 200. Adresse, einschließlich Hausnummer und anderen Komponenten, die nicht mit dem spezifischeren der unten definierten Felder. Er sollte weder den Namen des Ortes noch den Namen des Unternehmens enthalten. die stattdessen separat über die name angegeben werden müssen. Feld unter PlaceInfo. Er sollte Postleitzahl, Ort oder Land nicht angegeben, da dies mithilfe der entsprechenden Felder unten angegeben werden.
    String Ortsteil OPTIONAL. Maximale Länge: 80. Ortsteil, allgemein bezogen auf die Stadt oder Ortsteil einer Adresse. In Regionen der Welt, in denen nicht gut definiert sind oder nicht gut in diese Struktur passen, leer.
    String administrative_area OPTIONAL. Maximale Länge: 80. Höchste verwendete administrative Unterteilung für Postanschriften des jeweiligen Landes oder der jeweiligen Region. Dies kann ein ein Bundesstaat, eine Region, eine Provinz, eine Oblast, eine Präfektur usw. eine Abkürzung oder einen vollständigen Namen, je nachdem, die in den Postadressen des jeweiligen Landes vertreten sind.
    String Postleitzahl OPTIONAL. Maximale Länge: 30. Die Postleitzahl. Erforderlich, wenn Das Land unterstützt Postleitzahlen. Andernfalls lassen Sie das Feld leer.
    String country_code OPTIONAL. Maximale Länge: 2. Ländercode gemäß Unicode-Definition „CLDR“, basierend auf der Norm ISO 3166 ALPHA-2. Weitere Informationen finden Sie unter . Unicode-Dokumentation.

    Beispiele

    {
      "structured_address" {
        "street_address": "Piazza del Colosseo, 1",
        "locality": "Roma",
        "administrative_area": "RM",
        "postal_code": "00184",
        "country_code": "IT"
      }
    }
    

    LocalizedTextSet

    Proto

    // Values of the localized fields.
    message LocalizedTextSet {
      // Per-locale LocalizedText values.
      // Maximum repeatedness: 50
      repeated google.type.LocalizedText localized_texts = 1;
    }
    
    

    Implementierungshinweise

    Typ Feld Hinweise
    repeated
    google.type.LocalizedText
    localized_texts Lokalisierte Textwerte pro Sprache.

    Beispiele

    {
        "language_code": "en",
        "text": "Sunrise tour"
    }
    

    CancellationPolicy

    Proto

    // Cancellation policy for a product.
    message CancellationPolicy {
      // Defines a single refund condition. Multiple refund conditions could be
      // used together to describe "refund steps" as various durations before the
      // service start time.
      message RefundCondition {
        // Duration in seconds before the start time, until when the customer can
        // receive a refund for part of the service's cost specified in
        // `refund_percent`.
        // When unset or set to 0 the service can be cancelled at any time.
        // Optional.
        uint32 min_duration_before_start_time_sec = 1;
    
        // The percent that can be refunded, as long as the service booking is
        // cancelled at least `min_duration_before_start_time` before the service
        // start time, in the range of [0, 100].
        // When unset or set to 0, the service is not refundable. When set to 100
        // this service is fully refundable.
        // Optional.
        uint32 refund_percent = 2;
    
        // A flat fee deducted on refund. Could be used separately, or in
        // combination with the refund_percent above. In the latter case, refund
        // percent applies first, then the fee is deducted.
        // Optional.
        google.type.Money refund_fee = 3;
      }
    
      // Zero or more refund conditions applicable to the policy.
      // Max number of refund conditions: 10.
      repeated RefundCondition refund_conditions = 1;
    }
    
    

    Implementierungshinweise

    Definiert eine einzelne Erstattungsbedingung. Es können mehrere Erstattungsbedingungen verwendet werden zur Beschreibung der „Erstattungsschritte“ verschiedene Zeitspannen vor der Startzeit beginnen.

    Typ Feld Hinweise
    RefundCondition refund_conditions OPTIONAL, maximale Anzahl von Erstattungsbedingungen: 10.

    RefundCondition

    Typ Feld Hinweise
    uint32 min_duration_before_start_time_sec Optional.
    Dauer in Sekunden vor der Startzeit, bis wann kann der Kunde eine Rückerstattung für einen Teil der in den refund_percent. Wenn die Richtlinie nicht konfiguriert oder auf 0 gesetzt ist, kann der Dienst jederzeit gekündigt werden.
    uint32 refund_percent OPTIONAL.
    Der Prozentsatz, der erstattet werden kann, solange der Die Dienstleistungsbuchung wurde mindestens min_duration_before_start_time storniert. vor der Dienststartzeit im Bereich [0, 100]. Wenn kein Wert festgelegt ist oder auf 0 gesetzt ist, kann der Service nicht erstattet werden. Wenn dieser Wert auf 100 gesetzt ist, vollständig erstattungsfähig.
    google.type.Money refund_fee OPTIONAL.
    Bei der Erstattung wird eine Pauschalgebühr abgezogen. Kann verwendet werden separat oder in Kombination mit den refund_percent oben angegeben werden. Im In letzterem Fall wird zuerst der Prozentsatz der Erstattung angewendet, dann wird die Gebühr abgezogen.

    Beispiele

    "refund_conditions": [
      {
        "min_duration_before_start_time_sec": 86400,
        "refund_percent": 100
      }]