Tổng quan về nguồn cấp dữ liệu
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Phần này chỉ định các tệp nguồn cấp dữ liệu dùng để truyền dữ liệu kho hàng đến Trung tâm hành động. Nội dung của nguồn cấp dữ liệu xác định những dịch vụ mà bạn đang cung cấp và những dịch vụ có sẵn.
Cấu trúc của nguồn cấp dữ liệu kho hàng được xác định bởi API Đặt phòng trên Google Maps.
Bạn bắt buộc phải có các nguồn cấp dữ liệu sau để tích hợp tính năng Chuyển hướng quảng cáo Dịch vụ địa phương:
Một số trường trong các nguồn cấp dữ liệu này là bắt buộc và một số trường là không bắt buộc. Bạn có thể bỏ qua bất kỳ trường nào được đánh dấu là không bắt buộc khi trường đó trống.
Định dạng nguồn cấp dữ liệu được mô tả bằng cú pháp vùng đệm giao thức 3. Bạn có thể tải tệp nguồn cấp dữ liệu lên dưới dạng một quá trình chuyển đổi tuần tự nhị phân của dữ liệu vùng đệm giao thức ở định dạng pb3 hoặc ở định dạng JSON phái sinh.
Bạn nên tải nguồn cấp dữ liệu lên ở định dạng JSON.
Bạn nên sử dụng gzip để nén nguồn cấp dữ liệu trước khi tải lên.
Hướng dẫn này dành riêng cho vùng đệm giao thức Trung tâm hành động. Để biết thông tin chung về cách sử dụng vùng đệm giao thức để tạo tệp pb3, dưới đây là ví dụ trong Java.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eInventory data is transmitted to Actions Center using specific feed files, defining available services.\u003c/p\u003e\n"],["\u003cp\u003eMandatory feeds include Entity (describing your business entities) and Action (describing associated deep links).\u003c/p\u003e\n"],["\u003cp\u003eFeeds can be formatted as protocol buffer 3 syntax in pb3 or JSON, with JSON recommended.\u003c/p\u003e\n"],["\u003cp\u003eWhile optional fields can be omitted, required ones must be included for successful data transmission.\u003c/p\u003e\n"],["\u003cp\u003eGoogle recommends using gzip compression for feeds before uploading to optimize the process.\u003c/p\u003e\n"]]],["Inventory data is sent to the Actions Center via feed files, which define service offerings. Mandatory feeds for Local Services Ads Redirect integration include the Entity feed (describing entities) and the Action feed (describing entity deep links). Fields can be required or optional. Feeds use protocol buffer 3 syntax and can be uploaded as binary or JSON; JSON is recommended. Gzip compression is advised before upload. The feeds format is defined by the Google Maps Booking API.\n"],null,["# Feeds overview\n\nThis section specifies the feed files used to transmit your\ninventory data to the Actions Center. The contents of your feeds defines\nwhich services you are providing and what services are available.\n\nThe structure of the inventory feeds are defined by the Google Maps Booking\nAPI.\n\nThe following feeds are mandatory for the Local Services Ads Redirect integration:\n\n- **[Entity feed](/actions-center/verticals/local-services/redirect/reference/feeds/entity-feed):** Contains data describing your entities.\n\n\u003c!-- --\u003e\n\n- **[Action feed](/actions-center/verticals/local-services/redirect/reference/feeds/action-feed):** Contains data describing your deep links associated with your entities.\n\nSome fields in these feeds are required and some are optional. Any field\nmarked as optional can be left out of the feed when empty.\n\nThe feeds format is described using protocol buffer 3 syntax. You have the\noption to upload the feeds file as a binary serialization of the protocol\nbuffer data in [pb3 format](/protocol-buffers/docs/proto3) or in a derived JSON format.\nWe recommend uploading the feeds in JSON format.\n\nWe recommend using\n[gzip to compress feeds](/actions-center/verticals/local-services/redirect/reference/tutorials/compression) prior to upload.\n\nThis guide is specific to the Actions Center protocol buffers. For\ngeneral information on how to use the protocol buffers to generate a pb3\nfile,\n[here is an example in Java](/protocol-buffers/docs/javatutorial)."]]