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)
ก่อนใช้ Products Sub-API คุณต้องสร้างแหล่งข้อมูล API อย่างน้อย 1 รายการ
ในบัญชี Merchant Center API ย่อยของผลิตภัณฑ์จะแทรกหรืออัปเดต
ผลิตภัณฑ์ในแหล่งข้อมูลประเภท API ได้เท่านั้น โปรดดูวิธีการในคู่มือจัดการแหล่งข้อมูล API
สำหรับการอัปโหลดผลิตภัณฑ์
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 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,[]]