rocket
Meet
Merchant API
– phiên bản chính thức thay thế Content API for Shopping.
update
Nhận thông tin mới nhất
về các tính năng mới, bản sửa lỗi và thông tin cập nhật về bản phát hành của Merchant API.
point_of_sale
Tìm hiểu cách quản lý doanh nghiệp và sản phẩm của bạn trên Google, cũng như cách truy cập vào dữ liệu, thông tin chi tiết và các chức năng riêng biệt ở quy mô lớn theo phương thức lập trình.
Bắt đầu sử dụng Merchant API ngay hôm nay!
Tạo nhóm sản phẩm
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.
Tóm tắt
Với chiến dịch Mua sắm, bạn đặt giá thầu cho một nhóm sản phẩm thay vì từ khoá.
Bạn có thể tạo nhóm sản phẩm sau khi tạo nhóm quảng cáo. Tất cả các mặt hàng trong kho hàng trong một nhóm sản phẩm đều có cùng một giá thầu.
Các nhóm quảng cáo trong một chiến dịch Mua sắm có thể có tối đa 20.000 nhóm sản phẩm.
Các bước thủ công
Sau đây là các bước để tạo nhóm sản phẩm thông qua giao diện người dùng Google Ads.
- Tạo một chiến dịch Mua sắm mới cho Tất cả sản phẩm.
- Tạo nhóm quảng cáo mới.
Nhấp vào + bên cạnh Tất cả sản phẩm để thêm một phân mục.
Bạn có thể chia nhỏ nhóm sản phẩm tối đa 6 lần.
Làm theo các bước sau để thêm giá trị phân mục theo cách thủ công dưới dạng danh sách:
- Chọn Thêm nhiều giá trị cùng lúc theo cách thủ công.
- Thêm từng tiểu khu (mỗi dòng một mục).
- Xác nhận các thay đổi.
Tính năng này chỉ có sẵn cho một số thuộc tính.
Đặt giá thầu CPC tối đa cho từng nhóm sản phẩm. Nếu bạn sử dụng chiến lược đặt giá thầu tự động, thì hệ thống có thể đặt giá thầu CPC tối đa cho bạn.
Để biết thêm thông tin chi tiết, hãy xem bài viết Quản lý chiến dịch Mua sắm có nhóm sản phẩm.
Các bước tự động
Đảm bảo rằng bạn đã hoàn tất những việc sau:
- Liên kết Merchant Center với Google Ads.
- Tạo một chiến dịch Mua sắm mới.
Tạo một nhóm quảng cáo mới.
Sau đây là các bước để tạo một Nhóm trang thông tin thông qua API Google Ads:
Hãy làm theo các bước sau để tạo một nút gốc cho cây nhóm trang thông tin:
- Tạo nhóm trang thông tin mới.
Đặt mã nhận dạng của gốc thành một giá trị tạm thời, ví dụ: -1
.
Mỗi phân mục phải được phân vùng hoàn toàn khi bạn tạo một cây nhóm trang thông tin.
Cây này phải có một nhóm cho khác (Mọi thứ khác trong giao diện người dùng Google Ads). Các thao tác biến đổi sẽ không hoạt động nếu bạn không thực hiện đúng cách.
Hãy làm theo các bước sau để tạo một nút con:
- Tạo một nhóm trang thông tin mới và đặt
ListingGroupType
thành một trong các giá trị sau:
UNIT
. Đây là một nút lá của cây. Không cần phải đặt giá thầu.
Bạn không thể đặt giá thầu theo đơn vị trong chiến dịch Mua sắm thông minh.
SUBDIVISION
. Thao tác này sẽ chia cây theo một phân mục khác.
Hãy nhớ đặt một mã nhận dạng tạm thời cho nút.
Đặt case_value
của nút thành ListingDimensionInfo
mà bạn muốn chia nhỏ theo (thuộc tính sản phẩm trong giao diện người dùng Google Ads), ví dụ: product_brand
.
Để phân vùng một nhóm sản phẩm theo ProductBiddingCategory
, hãy đặt giá trị thành một mã nhận dạng dạng số, chứ không phải chuỗi danh mục. Bạn có thể tìm thấy mã này trong ProductBiddingCategoryConstant
.
Đặt mã nhận dạng gốc cho nút thành giá trị getId
của phân khu gốc hoặc nút gốc.
Cây nhóm trang thông tin không được có quá 7 cấp.
Lặp lại bước 5 cho mỗi UNIT
của phân mục ở cấp cây hiện tại.
Thêm một nút lá có case_value
trống cho mỗi phân khu. Giá trị này đại diện cho tất cả các giá trị khác.
Đối với mỗi SUBDIVISION
ở cấp hiện tại:
- Ghi lại giá trị nhận dạng. Đây là mã nhận dạng cấp trên cho cấp tiếp theo.
- Đi theo cây xuống một cấp.
- Lặp lại các bước từ 5 đến 7.
Tạo một AdGroupCriterion
cho mỗi UNIT
. Thao tác này sẽ liên kết nhóm trang thông tin với nhóm quảng cáo.
Các nhóm quảng cáo và chiến dịch khác có mức độ ưu tiên thấp hơn vẫn có thể đặt giá thầu cho những sản phẩm phù hợp với cùng tiêu chí. Áp dụng negative
để loại trừ một nhóm sản phẩm khỏi việc đặt giá thầu.
Bật nhóm quảng cáo để bắt đầu đặt giá thầu bằng cấu trúc nhóm trang thông tin.
Hãy xem phần Tạo một nhóm trang thông tin mới và ví dụ về python để biết thêm thông tin chi tiết.
Sau đây là ví dụ về một cây nhóm trang thông tin:

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-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eShopping campaigns utilize product groups for bidding instead of keywords, allowing you to group similar products and set bids accordingly.\u003c/p\u003e\n"],["\u003cp\u003eYou can manually create and subdivide product groups within the Google Ads UI for granular control over your Shopping campaign structure.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Ads API provides a method to automatically generate and manage product groups through Listing Groups, enabling efficient large-scale campaign management.\u003c/p\u003e\n"],["\u003cp\u003eWhen creating product groups through the API, ensure a complete and partitioned tree structure, including an "other" category, for successful implementation.\u003c/p\u003e\n"],["\u003cp\u003eListing Groups can be structured with up to seven levels of subdivisions, allowing for fine-grained categorization and bidding strategies within your Shopping campaigns.\u003c/p\u003e\n"]]],[],null,["# Create product groups\n\nSummary\n-------\n\nWith Shopping campaigns, you bid on a [product group](https://support.google.com/google-ads/answer/6275317) instead of keywords.\n\nYou can create product groups after you create an ad group. All inventory items\nin a product group have the same bid.\n\nAd groups within a Shopping campaign can have up to 20,000 product groups.\n| **Key Term:** In the Google Ads API, a product group is referred to as a [Listing\n| Group](/google-ads/api/docs/shopping-ads/create-listing-groups).\n\nManual steps\n------------\n\nHere are the steps to create product groups through the Google Ads UI.\n\n1. [Create a new Shopping campaign](https://support.google.com/google-ads/answer/3455481) for **All Products**.\n2. Create a new ad group.\n3. Click **+** next to **All products** to add a subdivision.\n\n Products groups can be subdivided up to 6 times.\n4. Use the following steps to manually add subdivision values as a list:\n\n 1. Select **Bulk add values manually**.\n 2. Add each subdivision (one item per line).\n 3. Confirm the changes.\n\n This is only available for some attributes.\n5. Set a max CPC bid for each product group. If you use an automated bidding\n strategy, max CPC can be set for you.\n\nFor more detail, see [Manage a Shopping campaign with product groups](https://support.google.com/google-ads/answer/6275317).\n\nAutomatic steps\n---------------\n\nMake sure you have already completed the following:\n\n1. [Link Merchant Center to Google Ads](/google-ads/shopping/full-automation/articles/t15).\n2. Create a new [Shopping campaign](/google-ads/shopping/full-automation/articles/t18).\n3. Create a new [ad group](/google-ads/shopping/full-automation/articles/t19).\n Here are the steps to create a [Listing Group](/google-ads/api/docs/shopping-ads/create-listing-groups) through the Google Ads API:\n\n4. Use the following steps to create a root node for the [listing group](/google-ads/api/docs/shopping-ads/create-listing-groups) tree:\n\n 1. [Create a new listing group](/google-ads/api/docs/shopping-ads/create-listing-groups#listing_dimensions).\n 2. Set the ID of the root to a [temporary value](/google-ads/api/docs/shopping-ads/create-listing-groups#temporary_ids), for example `-1`.\n\n Each subdivision must be completely partitioned when you create\n a listing group tree.\n\n The tree must have a grouping for **other** (**Everything else** in the\n Google Ads UI). Mutate operations won't work if you don't do this\n correctly.\n5. Use the following steps to create a child node:\n\n 1. Create a new listing group and set the `ListingGroupType` to one of the following:\n - `UNIT`. This is a leaf node of the tree. Doesn't need to be biddable. You can't bid per unit in Smart Shopping campaigns.\n - `SUBDIVISION`. This splits the tree by another subdivision. Remember to set a temporary ID for the node.\n 2. Set the `case_value` of the node to the [`ListingDimensionInfo`](/google-ads/api/reference/rpc/latest/ListingDimensionInfo) you\n want to subdivide by (**product attribute** in the Google Ads\n UI), for example `product_brand`.\n\n To partition a product group by [`ProductBiddingCategory`](/google-ads/api/reference/rpc/latest/ProductBiddingCategoryInfo), set the\n value to a numeric ID, not the category string. You can find the ID in\n [`ProductBiddingCategoryConstant`](/google-ads/api/reference/rpc/latest/ProductBiddingCategoryConstant#id).\n 3. Set the parent ID for the node to the `getId` value of the\n parent subdivision or root node.\n\n A listing group tree can be no more than seven levels deep.\n6. Repeat step five for every `UNIT` of the subdivision at the current\n tree level.\n\n Include a leaf node with an empty `case_value` for each subdivision. This\n represents all other values.\n7. For each `SUBDIVISION` at the current level:\n\n 1. Take note of the ID value. This is the parent ID for the next level.\n 2. Follow the tree down a level.\n 3. Repeat steps five to seven.\n8. Create an [`AdGroupCriterion`](/google-ads/api/reference/rpc/latest/AdGroupCriterion) for every `UNIT`. This associates the listing\n group with the ad group.\n\n Other ad groups and campaigns with lower priority may still bid on\n products that fit the same criteria. Apply [`negative`](/google-ads/api/reference/rpc/latest/AdGroupCriterion#negative) to exclude a\n product group from bidding.\n9. Enable the ad group to start bidding with the listing group structure.\n\nSee [Create a new listing group](/google-ads/api/docs/shopping-ads/create-listing-groups#listing_dimensions) and the [python example](https://github.com/googleads/google-ads-python/blob/master/examples/shopping_ads/add_shopping_product_listing_group_tree.py)\nfor more detail.\n\nHere's an example of a listing group tree:"]]