פיד מוצרים

פיד המוצרים הוא הדרך העיקרית שבעזרתה אפשר לספק ל-Google רשימה של מוצרים לדברים שאפשר לעשות, שיוצגו בפלטפורמות השונות של Google.

אובייקט ProductFeed מורכב מאובייקט FeedMetadata יחיד ואפס אובייקטים Product או יותר. אם לא צוין Product בכל הפיצולים, כל המוצרים נמחקים.

ProductFeed

אב

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

הערות להטמעה

סוג שדה הערות
FeedMetadata feed_metadata זהו שדה חובה.
המטא-נתונים של הפיד הזה.
חוזר
מוצר
מוצרים אופציונלי.
אם המדיניות לא מוגדרת בכל הפיצולים, כל המוצרים נמחקים. יכול להיות שתצטרכו להגדיר את הערך feed_metadata/max_removal_share אם מסירים כמות גדולה של מוצרים.

דוגמאות

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

אב

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

הערות להטמעה

סוג שדה הערות
uint32 shard_id חובה כאשר total_shards_count > 1.
מבוסס אפס. אין צורך להעביר את הפיצולים לפי הסדר. העיבוד מתחיל רק אחרי העלאת קבוצת מקטעים מלאה.
uint32 total_shards_count חובה, חייב להיות >= 1.
uint64 צופן חד-פעמי (nonce) חובה כאשר total_shards_count > 1.
הערך צריך להיות זהה לכל הפיצולים בהעברה.
טיפוסים בני מנייה (enum) processing_instruction REQUIRED.
PROCESS_AS_SNAPSHOT הוא הערך היחיד הנתמך.
כפולה max_removal_share אופציונלי.
הנתח המקסימלי של מוצרים פעילים שמותר להסיר באמצעות העלאה. אם עוד מוצרים יוסרו במהלך ההעברה, כל ההעברה תידחה. זהו אמצעי הגנה מפני הסרה לא מכוונת של חלק משמעותי מהמלאי. אפשר להגדיר את הערך כ-1.0 כדי לאפשר הסרת מלאי מלא.

דוגמאות

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

מוצר

אב

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

הערות להטמעה

סוג שדה הערות
מחרוזת id חובה, אורך מקסימלי 255.
מחרוזת ייחודית שמזהה את המוצר. התווים המותרים הם אלפאנומריים, _ ו- -.
LocalizedTextSet title חובה, אורך מומלץ<= 50, אורך מקסימלי 150 תווים.
תוכלו למצוא פרטים נוספים בהנחיות לגבי שמות ותיאורים.
LocalizedTextSet תיאור מומלץ, אורך מומלץ <= 10,000, אורך מקסימלי 16,000 תווים.
תוכלו למצוא פרטים נוספים בהנחיות לגבי שמות ותיאורים.
חוזר
TextFeature
product_features מומלץ, מספר תכונות מקסימלי: 100.
דירוג סיווג מומלצת.
מומלץ מאוד לספק דירוגים, כי מוצרים שמציגים דירוגים מובילים לשיעור קליקים גבוה יותר.
מדיה
חוזרת
related_media מומלץ, מספר מקסימלי של מדיה: 30
מומלץ מאוד לספק יותר מתמונה אחת. בהנחיות בנוגע לתמונות תוכלו למצוא מדריך מפורט לתמונות.
boolean use_media_order אופציונלי
רמז ל-Google שצריך להביא בחשבון את הסדר שבו המדיה הקשורה מופיעה בפיד כשבוחרים איזו תמונה להציג.
חזרה
אפשרות
אפשרויות חובה, מספר אפשרויות מקסימלי: 20
לכל מוצר צריכה להיות לפחות אפשרות מוצר אחת.
אופרטור אופרטור אופציונלי.
טיפוסים בני מנייה (enum) deprecated
inventory_type
אופציונלי.
ניתן להגדיר את הערך INVENTORY_TYPE_OFFICIAL רק במוצרים שמקושרים לאתר הכרטיסים הרשמי בנקודת עניין. האפשרות להגדיר את הערך הזה תופעל רק אחרי בדיקת העמידה בדרישות.
השדה הזה הוצא משימוש והוחלף ב-Inventory_types החדש של השדה שחוזר על עצמו.
חוזר inventory_types אופציונלי.
רשימה חוזרת של סוגי מלאי ייחודיים שאליהם המוצר הזה שייך.
ניתן להגדיר את הערך INVENTORY_TYPE_OFFICIAL רק במוצרים שמקושרים לאתר הכרטיסים הרשמי בנקודת עניין. האפשרות להגדיר את הערך הזה תופעל רק אחרי בדיקת העמידה בדרישות.
ניתן להגדיר INVENTORY_TYPE_OPERATOR_DIRECT רק במוצרים שמקושרים לאתר של מפעיל הסיורים. האפשרות להגדיר את הערך הזה תופעל רק אחרי בדיקת העמידה בדרישות.
טיפוסים בני מנייה (enum) confirmation_type אופציונלי.
FulfillmentType fulfillment_type מומלצת. אם המדיניות מוגדרת, לפחות שדה אחד ב-fulfillment_rype חייב להיות True.
הגדרת דרכים לקבלת מסמך לאישור ההזמנה. אפשר לשלב שילובים, למשל: תמונה ניידת + מודפס, או הדפסה בבית + איסוף פנים.
LocalizedTextSet brand_name האורך המקסימלי של 100.
שם המותג שהמוצר אמור להציג, שמחליף את 'אופרטור/שם' שהוצא משימוש. אפשר להגדיר רק אחד משני הערכים.

דוגמאות

{
  "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"]
}

אפשרות

אב

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

הערות להטמעה

סוג שדה הערות
מחרוזת id זהו שדה חובה.
מזהה אפשרות. חייב להיות ייחודי במוצר.
LocalizedTextSet title חובה, אורך מומלץ: 50, אורך מקסימלי: 150 תווים.
אם יש רק אפשרות אחת, שם האפשרות יכול להיות זהה לשם המוצר. אם מציגים כמה אפשרויות מוצר, שם הפריט צריך להיות ייחודי לאפשרות. פרטים נוספים זמינים בהנחיות לכתיבת כותרות ותיאורים.
LocalizedTextSet תיאור מומלץ, אורך מומלץ: 10,000, אורך מקסימלי: 16,000.
תוכלו למצוא פרטים נוספים בהנחיות לגבי שמות ותיאורים.
DeepLink landing_page זהו שדה חובה.
חייב להכיל לחצן או קישור להזמנת המוצר. פרטים נוספים זמינים בהנחיות לדפי נחיתה.
DeepLink landing_page_list_view מומלצת.
קישור לתצוגת רשימה ברמה גבוהה יותר של כרטיסים וסיורים זמינים. האפשרות הזו תוצג בצורה בולטת בין האפשרויות האחרות. פרטים נוספים זמינים בהנחיות לדפי נחיתה.
חוזר
TextFeature
option_features אופציונלי, מספר התכונות המקסימלי: 100.
אסור שיהיו זהים לפרטים ברמת המוצר.
CancellationPolicy cancellation_policy מומלצת.
חזרה
קטגוריה
option_categories אופציונלי: מספר קטגוריות מקסימלי: 100.
הקטגוריות הרלוונטיות לאפשרות הזו. חשוב במיוחד לוודא שהשדה self-guided מוגדר לכל הפעילויות שלא מבוססות על סיור, וש-guided-tour מוגדר לפעילויות שמבוססות על סיורים. ערכים מומלצים נוספים זמינים במאמר בנושא קטגוריית מוצרים.
חוזר
RelatedLocation
related_location מומלץ, מספר המיקומים המקסימלי: 100.
ציון רשימה מדויקת של מיקומים קשורים חשוב מאוד כדי שהמוצר יופיע במקומות הרלוונטיים ביותר, אבל תיוג יתר או הצגת נתונים מדויקים מובילים להסרת המוצר. לפרטים נוספים, אפשר לעיין במדריך בנושא מיקום ונקודת עניין.
bool base_ticket אופציונלי.
משמשת כדי לציין אם אפשרות המוצר היא כרטיס הכניסה הבסיסי.
חוזר
PriceOption
price_options חובה, לפחות 1.
כל המחירים האפשריים לאפשרות הזו. הערה: יש תמיכה במחיר למבוגרים בלבד. אם ציינת כמה אפשרויות מחיר, המערכת תשתמש במחיר הראשון שעובר את בדיקת ההגבלה הגיאוגרפית. לכרטיסים קבוצתיים, יש להשתמש במקום זאת במחיר המלא של כל הקבוצה.
uint32 duration_sec אופציונלי.
משך האפשרות בשניות, היכן שרלוונטי, למשל לסיורים מודרכים, טיולי שייט וכו'. הערך צריך לשקף את משך החוויה (לא את התוקף של הזמן).
חוזר
שפה
שפות מומלץ, מספר שפות מקסימלי: 100.
שפות שבהן האפשרות זמינה. כאשר חשוב שמשתמש הקצה יבין ו/או יקרא בשפה כדי ליהנות מהחוויה. למשל, רלוונטי לסיור מודרך.
מיקום meeting_point אופציונלי.
יש להוסיף רק את המקומות שבהם הם רלוונטיים ומועילים, למשל, המקום שבו המשתתף יפגוש את מדריך הטיולים כדי להתחיל סיור רגלי, המקום שבו יאספו את המשתתף לסיור בעיר, המקום שבו יתחיל סיור השייט.

דוגמאות

{
  "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

אב

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

הערות להטמעה

סוג שדה הערות
טיפוסים בני מנייה (enum) feature_type זהו שדה חובה.
סוג התכונה, ערכים אפשריים:
  • TEXT_FEATURE_INCLUSION: התכונה נכללת בהכללה.
  • TEXT_FEATURE_EXCLUSION: התכונה היא החרגה.
  • TEXT_FEATURE_HIGHLIGHT: התכונה הזאת היא רגע השיא.
  • TEXT_FEATURE_MUST_KNOW: התכונה היא "חובה לדעת".
  • TEXT_FEATURE_SAFETY_INFORMATION: התכונה מייצגת מידע על אמצעי בטיחות.
  • LocalizedTextSet value חובה, אורך מומלץ <= 1,000 תווים, אורך מקסימלי: 2,000.
    תגי עיצוב נתמכים של HTML: br, strong, em, i
    רק ארבעת התגים שהוזכרו למעלה נתמכים. אפשר להשתמש בפונקציה br כדי לשבור שורות בפסקאות, ובפסקה של strong/em/i כדי להדגיש טקסט חשוב. המערכת תתעלם מתגי ביטויים אחרים.
    אסור להשתמש בכל שאר התגים והסגנונות המותאמים אישית והם יוסרו. כל כתובות ה-URL, הקישורים והעוגנים יוסרו והם אף פעם לא יוצגו למשתמשי קצה.

    דוגמאות

    {
        "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>"
                }
            ]
        }
    }
    

    Rating

    אב

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

    הערות להטמעה

    סוג שדה הערות
    כפולה average_value אופציונלי.
    ערך דירוג ממוצע. הערך חייב להיות בטווח של [1, 5] ואפשר להשמיט אותו רק אם rating_count הוא אפס.
    uint64 rating_count זהו שדה חובה.
    מספר הדירוגים שמשמשים לחישוב הערך.

    דוגמאות

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

    מדיה

    אב

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

    הערות להטמעה

    סוג שדה הערות
    מחרוזת כתובת אתר חובה, אורך מקסימלי: 2,000.
    כתובת ה-URL של מקור המדיה הזה. Google תסרוק את המדיה שמתארחת בכתובת ה-URL הזו.
    טיפוסים בני מנייה (enum) סוג חובה.
    הסוג של מקור המדיה הזה. ערכים אפשריים:
  • MEDIA_TYPE_PHOTO: מציין שהמדיה שסופקה על ידי כתובת ה-URL היא תמונה.
  • LocalizedTextSet ייחוס למקורות תנועה אופציונלי, אורך מומלץ: 1000, אורך מקסימלי: 2000.
    פרטי שיוך (Attribution) של מקורות המדיה. שימו לב: אם הקרדיט צריך להופיע במדיה כדי לתת קרדיט לצלם או לסוכנות, חובה להגדיר את השדה הזה.

    דוגמאות

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

    הגדרת הקטגוריה

    אב

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

    הערות להטמעה

    סוג שדה הערות
    מחרוזת label זהו שדה חובה. כדי לראות את רשימת הערכים התקינים, אפשר לעיין במסמכי התיעוד בנושא קטגוריית מוצרים.

    דוגמאות

    {
        "label": "sports"
    }
    

    RelatedLocation

    אב

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

    הערות להטמעה

    מגדירה את היחס בין אפשרות למיקום.

    סוג שדה הערות
    מיקום מיקום חובה.
    מיקום קשור לאפשרות. יכול להיות נקודת עניין (למשל מגדל אייפל), שכונה (למשל העיר העתיקה) או כתובת או נקודה שרירותית במפה.
    טיפוסים בני מנייה (enum) relation_type חובה.
    סוג הקשר של אפשרות למיקום הנתון. ערכים אפשריים:
  • RELATION_TYPE_RELATED_NO_ADMISSION: יש קשר למיקום, אבל הקשר לא מאפשר כניסה או כניסה לא רלוונטיים. למשל, המיקום הוא ריבוע שמודגש בסיור בעיר.
  • RELATION_TYPE_ADMISSION_TICKET: קשר מעניק כניסה למיקום הקשור הזה.
  • RELATION_TYPE_SUPPLEMENTARY_ADDON: הקשר מצהיר על שירות נוסף שלא מעביר את המשתמש למיקום הקשור, לדוגמה, כרטיס חניה, תערוכה זמנית וכו'.
  • דוגמאות

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

    אב

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

    הערות להטמעה

    הגדרת קישור עומק. יכול לכלול פרמטרים של ערכים שיורחבו בזמן הצגת המודעות.

    סוג שדה הערות
    מחרוזת כתובת אתר אופציונלי, אורך מקסימלי: 2000.
    תבנית לכתובת דף נחיתה למחשב. צריך להזין 'url' או 'localized_url'.
    מחרוזת mobile_url אופציונלי, אורך מקסימלי: 2000.
    תבנית לכתובת דף נחיתה לניידים.
    LocalizedTextSet localized_url אופציונלי, אורך מקסימלי: 2,000, מספר מקומי מקסימלי: 50.
    תבנית כתובת דף נחיתה מותאמת לשוק המקומי למחשב. אם תספקו גם את url וגם את localized_url, הכתובת הראשונה תשמש כחלופה במקרה שאין כתובת URL שתואמת ללוקאל של המשתמש. אם url לא זמין ולא סופקה שפה, ייעשה שימוש בכתובת ה-URL באנגלית.
    LocalizedTextSet localized_mobile_url אופציונלי, אורך מקסימלי: 2,000, מספר מקסימלי של מקומיים הוא 50.
    Localized mobile_landing page template for mobile.

    דוגמאות

    // 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}"
        }]
      }
    }
    
    

    מפעיל

    אב

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

    הערות להטמעה

    סוג שדה הערות
    LocalizedTextSet שם [deprecated] אופציונלי, אורך מומלץ: 50, אורך מקסימלי: 100.
    שם המותג של אתר המכירה של המוצר. המותג OTA צריך להגדיר את זה בתור המותג של OTA. השדה הזה הוצא משימוש והוחלף ב-brand_name בקטע 'מוצרים'
    LocalizedTextSet google_business_profile_name חובה, אורך מקסימלי: 100.
    שם העסק של המפעיל, כפי שהוא רשום בפרופיל העסק ב-Google ומופיע במפות Google. חובה למלא את השדה הזה כדי להשתתף במודול ההזמנה של המפעיל.
    מחרוזת phone_number אופציונלי, אורך מקסימלי: 64.
    מספר טלפון של המפעיל. יש לי העדפה לפורמט מספר טלפון בינלאומי מלא.
    חוזר
    מיקום
    locations אופציונלי, מספר מקסימלי: 1.
    כתובת העסק של המפעיל. אם משתמשים במחרוזת כתובת, צריך לכלול את שם העסק כחלק ממחרוזת הכתובת. למשל, ", ". העסק של המפעיל צריך להיות ברור במפות Google כדי שמודול ההזמנה של המפעיל יופעל, הוא צריך לרשום פרופיל עסק ב-Google אם העסק שלו לא מופיע במפות Google.

    דוגמאות

    // 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…"
      }}]
    }
    

    הגדרת השפה

    אב

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

    הערות להטמעה

    סוג שדה הערות
    מחרוזת קוד קוד שפה תואם BCP-47, כמו en או de-CH.

    דוגמאות

    {
        "code": "de-CH"
    }
    

    PriceOption

    אב

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

    הערות להטמעה

    סוג שדה הערות
    מחרוזת id חובה, אורך מקסימלי: 255.
    מזהה ייחודי בתוך המחיר שהוגדר.
    מחרוזת title חובה, אורך מקסימלי: 150.
    תיאור קצר של אפשרות המחיר, למשל "מבוגר בימי חול".
    google.type.Money price חובה אם הערך של is_free הוא False.
    ערך המחיר חייב להתאים למחיר הסופי שמוצג בדף התשלום, כולל כל המיסים והחיובים. במדיניות בנושא מחירים. המטבע יומר למטבע של המשתמש בזמן העיבוד.
    bool is_free אופציונלי, ברירת המחדל היא False.
    הכניסה היא בחינם. יש להגדיר את הערך כ-True עבור אפשרויות של מחיר אפס.
    חוזר
    GeoCriterion
    geo_criteria אופציונלי.
    רשימת האזורים הגיאוגרפיים שבהם המחיר הזה חל. אם השדה ריק, רלוונטי לכל המיקומים.
    ערכים חוזרים
    PriceFeesAndTaxes
    fees_and_taxes אופציונלי.
    פירוט של העמלות והמיסים שכלולים במחיר שלמעלה.

    דוגמאות

    {
        "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

    אב

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

    הערות להטמעה

    סוג שדה הערות
    מחרוזת country_code חובה.
    קוד מדינה בן 2 אותיות, כפי שמוגדר בתקן ISO 3166-1.
    bool is_negative אופציונלי.
    אם הערך הוא True, הקריטריון הוא שלילי (קוד המדינה לא נכלל).

    דוגמאות

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

    PriceFeesAndTaxes

    אב

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

    הערות להטמעה

    סוג שדה הערות
    google.type.Money per_ticket_fee אופציונלי.
    דמי ההזמנה כלולים במחיר המוצר הסופי של כרטיס יחיד.
    google.type.Money per_ticket_tax אופציונלי.
    מיסים במדינה נכללים במחיר המוצר הסופי של כרטיס יחיד.

    דוגמאות

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

    מיקום

    אב

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

    הערות להטמעה

    סוג שדה הערות
    GeoLocation מיקום אופציונלי, חייב להופיע לפחות אחד של מיקום או תיאור.
    המיקום הגיאוגרפי.
    LocalizedTextSet תיאור אופציונלי, אורך מומלץ: 1,000, אורך מקסימלי: 2,000, חייב להופיע מיקום אחד או תיאור אחד לפחות.
    תיאור נוסף בצורה שקריא לבני-אדם, למשל "בצד שמאל של המזרקה בכיכר הארמון".

    דוגמאות

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

    GeoLocation

    קראו את הנחיות השימוש למידע מפורט יותר על כל סוג של רמז.

    אב

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

    הערות להטמעה

    סוג שדה הערות
    מחרוזת place_id אופציונלי, חייב להופיע רק אחד מהערכים place_id, address, place_info, business_profile_id או lat_lng.
    PlaceId כפי שמוגדר על ידי Places API. מזהה באופן ייחודי נקודת עניין ב-Google. המקור שלו זמין באמצעות נקודות הקצה של Places API, לדוגמה, 'חיפוש במקום' או 'השלמה אוטומטית של מקום', או באופן ידני באמצעות הכלי 'חיפוש התאמות של מיקומים' ב-Things to Do Center.
    מחרוזת כתובת אופציונלי, חייב להופיע רק אחד מהערכים place_id, address, place_info, business_profile_id או lat_lng.
    הוצא משימוש. כתובת מדור קודם עם שורה אחת. אורך מקסימלי: 200. צריך להפריד בין הרכיבים באמצעות פסיקים, כשהרכיב הראשון יהיה שם המקום, כפי שהוא מוצג ב-Google. כדי לשפר את דיוק ההתאמה, יש להשתמש בכתובת הרחוב שמוצגת ב-Google עבור המקום.
    PlaceInfo place_info אופציונלי, חייב להופיע רק אחד מהערכים place_id, address, place_info, business_profile_id או lat_lng.
    מידע מובנה של מקום.
    uint64 business_profile_id אופציונלי, חייב להופיע רק אחד מהערכים place_id, address, place_info, business_profile_id או lat_lng.
    מזהה פרופיל העסק, כפי שהוא מופיע בדף ההגדרות של 'פרופיל העסק ב-Google'. צריך להשתמש בשדה הזה כשמקדמים מיקומים ישירות מהבעלים של המקום, שיש לו גישה לפרופיל העסק של המקום ב-Google ויכול לספק את המזהה הזה.
    google.type.LatLng lat_lng אופציונלי, חייב להופיע רק אחד מהערכים place_id, address, place_info, business_profile_id או lat_lng.
    קואורדינטות גיאוגרפיות. ניתן להשתמש בשדה הזה רק כדי לקבוע עיר או אזור גיאוגרפי, כי הוא לא ברור מספיק כדי לזהות מקום או עסקים ספציפיים. במקום זאת, משתמשים בפונקציה place_info כדי להתאים למקום ספציפי לפי שם וקואורדינטות.

    דוגמאות

    "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

    אב

    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: 300.
      // 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;
      }
    }
    

    הערות להטמעה

    סוג שדה הערות
    מחרוזת name זהו שדה חובה. אורך מקסימלי: 300. שם המקום או העסק. כדי לשפר את הדיוק של ההתאמה, השם צריך להיות זהה לשם של המקום שמוצג ב-Google. במקומות עם פרופיל עסק ב-Google שנתבעה עליו בעלות, השם הזה צריך להיות זהה לשם העסק שהוגדר בפרופיל העסק.
    מחרוזת phone_number אופציונלי. אורך מקסימלי: 30. מספר טלפון, כולל הקידומת הבינלאומית. כדי לשפר את מידת הדיוק של ההתאמה, המספר צריך להיות זהה למספר הטלפון שמוצג ב-Google של המקום. הוא יכול לכלול תווים מפרידים נפוצים. לדוגמה: " +1 212-363-3200", " +91 562 222 7261".
    מחרוזת website_url אופציונלי. אורך מקסימלי: 1,000. כתובת האתר שמוצגת ב-Google של המקום, רצוי כתובת ה-URL שמקושרת לדף העסקי במפות Google או בחיפוש של המקום.
    google.type.LatLng קואורדינטות אופציונלי. הקואורדינטות הגיאוגרפיות של המקום. אם משאירים את השדה ריק, Google תסיק מהן הקואורדינטות לפי הכתובת. אופציונלי, אבל יש לספק את הערכים coordinates או את הערכים של structured_address ו- unstructured_address.
    StructuredAddress structured_address אופציונלי, יכול להיות בדיוק אחד מהערכים structured_address או unstructured_address, אבל אף פעם לא שניהם.
    מחרוזת unstructured_address אופציונלי, יכול להיות בדיוק אחד מהערכים structured_address או unstructured_address, אבל אף פעם לא שניהם.

    דוגמאות

    "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

    אב

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

    הערות להטמעה

    סוג שדה הערות
    מחרוזת street_address זהו שדה חובה. אורך מקסימלי: 200. רחוב, כולל מספר בית וכל רכיב אחר שלא ניתן לספק באמצעות השדות הספציפיים יותר שמוגדרים בהמשך. אין לכלול בו את שם המקום או העסק. צריך לספק אותו בנפרד באמצעות השדה name בשדה PlaceInfo. כמו כן, אין לכלול מיקוד, רשות מוניציפאלית או מדינה, כי יש לציין אותם באמצעות השדות המתאימים שבהמשך.
    מחרוזת רשות מוניציפאלית אופציונלי. אורך מקסימלי: 80. רשות מוניציפאלית, בדרך כלל לעיר או לעיר בכתובת מסוימת. באזורים שבהם רשויות מקומיות לא מוגדרות היטב או לא מתאימות למבנה כזה, יש להשאיר את השדה ריק.
    מחרוזת administrative_area אופציונלי. אורך מקסימלי: 80. חלוקת המשנה הניהולית הגבוהה ביותר שמשמשת לכתובות דואר של המדינה או האזור הספציפיים. זה יכול להיות מדינה (State), אזור, פרובינציה, אובלסט, נפה וכו'. הוא יכול להיות קיצור או שם מלא, בהתאם לאופן שבו האזור מיוצג בדרך כלל בכתובות הדואר של המדינה הספציפית.
    מחרוזת postal_code אופציונלי. אורך מקסימלי: 30. המיקוד. חובה לציין אם המדינה תומכת במספרי מיקוד. אחרת, צריך להשאיר את השדה ריק.
    מחרוזת country_code אופציונלי. אורך מקסימלי: 2. קוד המדינה, כפי שמוגדר ב-Unicode "CLDR", עצמו על סמך תקן ISO 3166 alpha-2. למידע נוסף, עיינו במסמכי התיעוד בנושא Unicode.

    דוגמאות

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

    LocalizedTextSet

    אב

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

    הערות להטמעה

    סוג שדה הערות
    חוזר
    google.type.LocalizedText
    localized_texts ערכי טקסט מותאמים לשוק המקומי.

    דוגמאות

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

    CancellationPolicy

    אב

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

    הערות להטמעה

    מגדיר תנאי יחיד להחזר כספי. אפשר להשתמש בכמה תנאים של החזר כספי יחד כדי לתאר את שלבי ההחזר הכספי כפרקי זמן שונים לפני שעת התחלת השירות.

    סוג שדה הערות
    RefundCondition refund_conditions אופציונלי, המספר המקסימלי של תנאים להחזר כספי: 10.

    RefundCondition

    סוג שדה הערות
    uint32 min_duration_before_start_time_sec אופציונלי.
    משך הזמן בשניות לפני שעת ההתחלה, עד שהלקוח יכול לקבל החזר כספי על חלק מעלות השירות שצוינה ב-refund_percent. אם הערך שמוגדר הוא 0 או לא מוגדר, אפשר לבטל את השירות בכל שלב.
    uint32 refund_percent אופציונלי.
    האחוז שאפשר לקבל עליו החזר כספי, כל עוד הזמנת השירות בוטלה לפחות min_duration_before_start_time לפני שעת ההתחלה של השירות, בטווח של [0, 100]. אם הערך שמוגדר הוא 0 או לא מוגדר, לא ניתן לקבל החזר כספי על השירות. אם הערך שמוגדר לשירות הוא 100, ניתן לקבל החזר כספי מלא על השירות הזה.
    google.type.Money refund_fee אופציונלי.
    עמלה בסכום קבוע שנוכה מההחזר הכספי. ניתן להשתמש בנפרד, או בשילוב עם refund_percent שלמעלה. במקרה השני, אחוז ההחזר הכספי חל קודם ולאחר מכן העמלה מנוכה.

    דוגמאות

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