จัดการผลิตภัณฑ์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
API ย่อยของผลิตภัณฑ์ช่วยให้คุณจัดการสินค้าคงคลังของผลิตภัณฑ์ใน Google Merchant Center ได้แบบเป็นโปรแกรม
คุณสามารถสร้าง ดึงข้อมูล อัปเดต และลบผลิตภัณฑ์ได้
ซึ่งช่วยให้คุณผสานรวมระบบกับ Google ได้โดยตรง
แนวคิดสำคัญใน Merchant API คือความแตกต่างระหว่างข้อมูลที่คุณส่งกับ
ผลิตภัณฑ์ขั้นสุดท้ายที่ Google ใช้ การแยกนี้จะช่วยให้เห็นวงจรข้อมูลผลิตภัณฑ์ได้ชัดเจนยิ่งขึ้น และให้คุณควบคุมข้อมูลผลิตภัณฑ์ได้แม่นยำมากขึ้น
API แสดงให้เห็นถึงเรื่องนี้ด้วยทรัพยากรหลัก 2 อย่าง ดังนี้
ProductInput
:
นี่คือข้อมูลผลิตภัณฑ์ดิบที่คุณส่งไปยังแหล่งข้อมูลที่เฉพาะเจาะจง
ให้คิดว่านี่คือแถวที่คุณอัปโหลดในไฟล์ฟีดหรือข้อมูลที่คุณส่ง
พร้อมการเรียก API ก่อนที่ Merchant Center จะประมวลผล คุณใช้แหล่งข้อมูลนี้
สำหรับการดำเนินการเขียนทั้งหมด (insert
, patch
, delete
)
Product
:
เป็นทรัพยากรแบบอ่านอย่างเดียวที่แสดงถึงผลิตภัณฑ์สุดท้ายที่ประมวลผลแล้ว
ตามที่ปรากฏใน Merchant Center และแพลตฟอร์มของ Google โดยสร้างจากProductInput
หลัก 1 รายการและProductInput
เสริม 0 รายการขึ้นไป
หลังจากใช้กฎฟีดและการประมวลผลทั้งหมดแล้ว แหล่งข้อมูลนี้มีสถานะสุดท้ายของผลิตภัณฑ์และปัญหาด้านคุณภาพของข้อมูล
คุณใช้ทรัพยากรนี้สำหรับการดำเนินการอ่านทั้งหมด (get
, list
)
รูปแบบและข้อกำหนดสำหรับแอตทริบิวต์ผลิตภัณฑ์ทั้งหมดที่ส่งโดยใช้แหล่งข้อมูล ProductInput
จะกำหนดไว้ในข้อกำหนดในการจัดทำข้อมูลผลิตภัณฑ์
สิ่งที่คุณทำได้ด้วย Products Sub-API
Sub-API ของผลิตภัณฑ์ช่วยให้คุณทำงานหลักต่อไปนี้ได้ ดูคำแนะนำโดยละเอียดและตัวอย่างโค้ดสำหรับแต่ละกรณีการใช้งานได้ใน
คู่มือ
- เพิ่มและจัดการผลิตภัณฑ์: ดูวิธีเพิ่มผลิตภัณฑ์ใหม่ลงในบัญชี ระบุข้อมูลเสริมสำหรับผลิตภัณฑ์ที่มีอยู่ และลบผลิตภัณฑ์ที่คุณไม่ได้ขายแล้ว
- อัปเดตผลิตภัณฑ์บ่อยๆ: ดูวิธี
อัปเดตแอตทริบิวต์ผลิตภัณฑ์ที่เปลี่ยนแปลงบ่อย
อย่างมีประสิทธิภาพและบางส่วน เช่น ราคาและความพร้อมจำหน่าย
- แสดงข้อมูลผลิตภัณฑ์และปัญหาเกี่ยวกับผลิตภัณฑ์: ดูวิธีเรียกข้อมูลผลิตภัณฑ์ที่ประมวลผลแล้ว ตรวจสอบสถานะการอนุมัติสำหรับ
ปลายทางต่างๆ และระบุปัญหาด้านคุณภาพของข้อมูลที่อาจส่งผลต่อ
ระดับการมองเห็น
ก่อนเริ่มต้น
ก่อนใช้ Products Sub-API คุณต้องสร้างแหล่งข้อมูล API อย่างน้อย 1 รายการ
ในบัญชี Merchant Center API ย่อยของผลิตภัณฑ์จะแทรกหรืออัปเดต
ผลิตภัณฑ์ในแหล่งข้อมูลประเภท API
ได้เท่านั้น โปรดดูวิธีการในคู่มือจัดการแหล่งข้อมูล API
สำหรับการอัปโหลดผลิตภัณฑ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-22 UTC
[null,null,["อัปเดตล่าสุด 2025-08-22 UTC"],[[["\u003cp\u003eThe Merchant Products API allows you to programmatically manage your product data, including inserting, updating, retrieving, and deleting products.\u003c/p\u003e\n"],["\u003cp\u003eProducts are managed through two key resources: \u003ccode\u003eproductInputs\u003c/code\u003e (representing input data) and \u003ccode\u003eproducts\u003c/code\u003e (representing processed products in the Shopping database).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eproductInputs\u003c/code\u003e can be primary or supplementary and are used to construct the final \u003ccode\u003eproduct\u003c/code\u003e that appears in your online or local store catalogs.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers advantages over file-based uploads, such as faster response times and real-time updates.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API, ensure you have a data source set up and are familiar with Shopping Ads and free listings policies.\u003c/p\u003e\n"]]],["The Merchant Products API allows programmatic product data management via `productInputs` and `products` resources. Actions include inserting `productInput` data with required fields like `channel`, `offerId`, `contentLanguage`, and `feedLabel` using `accounts.productInputs.insert`. Processed products can be retrieved using `accounts.products.get` and listed with `accounts.products.list`. Product inputs are deleted using `accounts.productInputs.delete`, specifying the data source. Products are built from primary and supplemental data sources, enabling real-time catalog management. You can use Batch mode to manage many products.\n"],null,["# Manage your products\n\nThe Products sub-API lets you programmatically manage your product inventory in\nGoogle Merchant Center. You can create, retrieve, update, and delete products,\ngiving you the flexibility to integrate your systems directly with Google.\n\nA key concept in Merchant API is the distinction between the data you submit and\nthe final product that Google uses. This separation provides a clearer model of\nthe product data lifecycle and gives you more precise control over your product\ninformation. The API reflects this with two main resources:\n\n- **[`ProductInput`](/merchant/api/reference/rest/products_v1/accounts.productInputs#ProductInput):**\n This represents the raw product data you submit to a specific data source.\n Think of this as the row you upload in a feed file or the data you submit\n with an API call before any Merchant Center processing happens. You use this\n resource for all **write** operations (`insert`, `patch`, `delete`).\n\n- **[`Product`](/merchant/api/reference/rest/products_v1/accounts.products#Product):**\n This is a read-only resource that represents the final, processed product as\n it appears in Merchant Center and on Google surfaces. It is built from one\n primary `ProductInput` and zero or more supplemental `ProductInput`\n resources after all feed rules and processing have been applied. This\n resource includes the product's final status and any data quality issues.\n You use this resource for all **read** operations (`get`, `list`).\n\nThe format and requirements for all product attributes submitted using the\n`ProductInput` resource are defined in the [Product data\nspecification](https://support.google.com/merchants/answer/7052112).\n\nWhat you can do with the Products sub-API\n-----------------------------------------\n\nThe Products sub-API lets you to perform the following key tasks. Explore the\nguides for detailed instructions and code samples for each use case.\n\n- [Add and manage products](/merchant/api/guides/products/add-manage): Learn how to add new products to your account, provide supplemental data for existing ones, and delete products you no longer sell.\n- [Make frequent updates to your\n products](/merchant/api/guides/products/frequent-updates): Discover how to make efficient, partial updates to product attributes that change often, such as price and availability.\n- [List your products data and product\n issues](/merchant/api/guides/products/list-products-data-issues): Find out how to retrieve your processed products, check their approval status for different destinations, and identify any data quality issues that may be affecting their visibility.\n\nBefore you begin\n----------------\n\nBefore using the Products sub-API, you must create at least one API data source\nin your Merchant Center account. The Products sub-API can only insert or update\nproducts in data sources of type `API`. For instructions, see the [Manage API\ndata sources for product uploads](/merchant/api/guides/data-sources/api-sources) guide."]]