rocket
ขอแนะนำ
Merchant API
- ทายาทอย่างเป็นทางการของ Content API for Shopping
update
รับข้อมูลล่าสุด
เกี่ยวกับฟีเจอร์ใหม่ การแก้ไขข้อบกพร่อง และการอัปเดตการเปิดตัว Merchant API
point_of_sale
ดูวิธีจัดการธุรกิจและผลิตภัณฑ์ใน Google รวมถึงวิธีรับสิทธิ์เข้าถึงแบบเป็นโปรแกรมเพื่อดูข้อมูล
ข้อมูลเชิงลึก และความสามารถที่ไม่เหมือนใครในวงกว้าง
เริ่มต้นใช้งาน Merchant API วันนี้เลย
ตั้งค่าสิทธิ์เข้าถึง Content API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สรุป
หากต้องการใช้ Content API for Shopping กับบัญชี Merchant Center ที่กำหนด คุณต้องตั้งค่าโปรเจ็กต์คอนโซล API โครงการคอนโซล API ช่วยให้คุณจัดการการเข้าถึงและการตรวจสอบสิทธิ์ API สำหรับโซลูชัน Content API ได้
ขั้นตอนที่ต้องทำด้วยตนเอง
คุณตรวจสอบสิทธิ์ในการใช้ Content API for Shopping ได้ 2 วิธี โดยขึ้นอยู่กับบัญชีผู้ขายที่คุณต้องการเข้าถึง
- เข้าถึงบัญชี Merchant Center ของคุณเอง
- หากคุณต้องการเพียงเข้าถึงบัญชี (และบัญชีย่อย หากใช้บัญชีหลายลูกค้า) เราขอแนะนำให้ใช้บัญชีบริการ ดูคู่มือบัญชีบริการเพื่อดูขั้นตอนการสร้างบัญชีบริการจาก Merchant Center
- เข้าถึงบัญชีของผู้ขายรายอื่น
- หากวางแผนที่จะจัดการบัญชี Merchant Center อื่นๆ แบบบุคคลที่สาม โปรดดูคู่มือ OAuth
เมื่อมีโทเค็นการตรวจสอบสิทธิ์ที่เหมาะสมแล้ว คุณจะทดสอบการตั้งค่าการตรวจสอบสิทธิ์ด้วยตัวอย่าง Shopping ที่รองรับทั้งบัญชีบริการและการตรวจสอบสิทธิ์ไคลเอ็นต์ OAuth2 ได้ ตัวอย่างเหล่านี้ใช้ไลบรารีของไคลเอ็นต์ Content API ซึ่งเราแนะนำให้ใช้ในแอปพลิเคชันของคุณเองหากคุณใช้ภาษาที่รองรับ หรือจะใช้ REST API โดยตรงก็ได้
ขั้นตอนอัตโนมัติ
ไม่สามารถใช้ได้สำหรับกระบวนการนี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eTo use the Content API for Shopping, you need to set up an API Console project for API access and authentication.\u003c/p\u003e\n"],["\u003cp\u003eYou can authenticate using service accounts for accessing your own Merchant Center account or OAuth for managing other merchants' accounts.\u003c/p\u003e\n"],["\u003cp\u003eFor testing and development, Google provides Shopping samples and client libraries for easier integration with the Content API.\u003c/p\u003e\n"],["\u003cp\u003eIf your programming language isn't supported by the client libraries, you can directly use the REST API.\u003c/p\u003e\n"]]],[],null,["# Set up Content API access\n\nSummary\n-------\n\nTo use the Content API for Shopping with a given Merchant Center account, you\nmust set up an [API Console](https://console.developers.google.com) project. API Console projects help you manage API\naccess and authentication for your Content API solution.\n\nManual steps\n------------\n\nThere are two ways you can authenticate to use the Content API for Shopping\ndepending on whose merchant accounts you need to access:\n\nAccess your own Merchant Center account\n: If you only need to access your account (and sub-accounts, if using a\n multi-client account), then we suggest using service accounts. See the\n [Service accounts](/shopping-content/guides/how-tos/service-accounts) guide for the steps to create a service account from the\n [Merchant Center](https://merchants.google.com).\n\nAccess other merchants' accounts\n: If you plan to manage other Merchant Center accounts as a third-party, see the\n [OAuth](/shopping-content/guides/how-tos/authorizing) guide.\n\nOnce you have the appropriate authentication tokens, you can test your\nauthentication setup with the [Shopping samples](https://github.com/googleads/googleads-shopping-samples), which support both service\naccount and OAuth2 client authentication. These samples use the\n[Content API client libraries](/shopping-content/guides/libraries), which we recommend using in your own\napplications if you're using a supported language. Otherwise, you can use the\n[REST API](/shopping-content/reference/rest/v2.1) directly.\n\nAutomatic steps\n---------------\n\nNot available for this process."]]