rocket
Meet
Merchant API
– the official successor to the Content API for Shopping.
הגדרת גישה ל-Content API
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
סיכום
כדי להשתמש ב-Content API for Shopping בחשבון Merchant Center מסוים, צריך להגדיר פרויקט במסוף API. פרויקטים ב-API Console עוזרים לנהל את הגישה ל-API ואת האימות של פתרון ה-Content API.
שלבים ידניים
יש שתי דרכים לבצע אימות לצורך שימוש ב-Content API for Shopping, בהתאם לחשבונות המוכרים שאתם צריכים לגשת אליהם:
- גישה לחשבון Merchant Center שלכם
- אם אתם צריכים לגשת רק לחשבון שלכם (ולחשבונות המשנה, אם אתם משתמשים בחשבון מרובה לקוחות), מומלץ להשתמש בחשבונות שירות. במדריך Service accounts מוסבר איך יוצרים חשבון שירות מ-Merchant Center.
- גישה לחשבונות של מוכרים אחרים
- אם אתם מתכננים לנהל חשבונות Merchant Center אחרים כצד שלישי, עיינו במדריך OAuth.
אחרי שתקבלו את אסימוני האימות המתאימים, תוכלו לבדוק את הגדרת האימות באמצעות הדוגמאות של שופינג, שתומכות גם באימות של חשבון שירות וגם באימות לקוח ב-OAuth2. בדוגמאות האלה נעשה שימוש בספריות הלקוח של Content API, שמומלץ להשתמש בהן באפליקציות שלכם אם אתם משתמשים בשפה נתמכת. אחרת, אפשר להשתמש ישירות ב-API ל-REST.
שלבים אוטומטיים
לא זמין לתהליך הזה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]