หากต้องการทดสอบโค้ดที่ใช้ Content API for Shopping เราขอแนะนำให้สร้างบัญชี Merchant Center แยกต่างหากเพื่อใช้ทดสอบเท่านั้น ซึ่งจะช่วยให้คุณทำการทดสอบทั้งด้วยตนเองและแบบอัตโนมัติสําหรับโค้ดที่ใช้ Content API for Shopping ได้โดยไม่ส่งผลกระทบต่อฟีดหรือแคมเปญ Shopping ที่ใช้งานอยู่
ตั้งค่าสภาพแวดล้อมการทดสอบ
สร้างบัญชี Google ใหม่
ที่จะเชื่อมโยงกับบัญชี Merchant Center ลงชื่อเข้าใช้และใช้บัญชี Google ใหม่เพื่อทำตามขั้นตอนต่อไปนี้
ทำตามขั้นตอนในการเริ่มต้นใช้งานเพื่อตั้งค่าบัญชี Merchant Center ใหม่ คุณไม่จำเป็นต้องตรวจสอบ URL ของเว็บไซต์สําหรับบัญชีทดสอบ
เมื่อใช้บัญชี Merchant Center และข้อมูลเข้าสู่ระบบใหม่ คุณก็พร้อมที่จะทดสอบโค้ดด้วย Content API สําหรับ Shopping หากคุณเพิ่งเริ่มต้นใช้งาน Content API โปรดอ่านคู่มือการเริ่มต้นใช้งานเพื่อดูวิธีใช้สภาพแวดล้อมการทดสอบกับไลบรารีของไคลเอ็นต์ Python หรือไปที่หน้าตัวอย่างและไลบรารีเพื่อดูตัวอย่างโค้ดที่ใช้ทดสอบสภาพแวดล้อมการทดสอบใหม่
API จะยังคงดำเนินการตรวจสอบความถูกต้องต่อไป ซึ่งจะแสดงความคิดเห็นเกี่ยวกับข้อผิดพลาดที่พบบ่อย เช่น ช่องที่ต้องกรอกที่ขาดหายไป แต่จะไม่ดำเนินการตรวจสอบคุณภาพของข้อมูลเนื่องจากผลิตภัณฑ์ที่อัปโหลดจะไม่ได้รับอนุมัติโดยอัตโนมัติ
[null,null,["อัปเดตล่าสุด 2024-11-08 UTC"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["Developers are encouraged to create a separate Merchant Center account solely for testing the API to avoid impacting live data."],["Setting up a test environment involves creating a new Google account, Merchant Center account, and developer project with the Content API enabled."],["While data quality checks aren't performed on test accounts, the API still conducts validation checks to provide feedback on errors."],["Testing accounts will eventually be suspended due to invalid product information, which is expected and won't affect Content API testing."]]],["The Merchant API beta, the new version of the Content API for Shopping, is introduced. To test this API, create a separate Merchant Center test account. This includes creating a new Google account, setting up a new Merchant Center account without website validation, and creating a new developer project to enable the Content API. Generate credentials, ideally using service accounts, for testing. Note that the test account will likely be suspended for invalid products, but this will not impact the API testing.\n"]]