rocket Meet
Merchant API - جانشین رسمی Content API برای خرید.
update جدیدترین ویژگیهای Merchant API، رفع اشکالها و بهروزرسانیها
را دریافت کنید .
add_alert توجه: Content API برای خرید در 18 اوت 2026 غروب میکند.
نمونه ها و کتابخانه ها
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
کتابخانه های سرویس گیرنده Google API روش توصیه شده برای استفاده از Content API است. کتابخانه های سرویس گیرنده نیاز به تنظیم دستی درخواست های HTTP و تجزیه پاسخ ها را از بین می برند. آنها همچنین یکپارچه سازی زبان، امنیت بهبود یافته و پشتیبانی از تماس هایی که نیاز به مجوز کاربر دارند را ارائه می دهند.
از کتابخانه های مشتری استفاده کنید
سادهترین راه برای شروع کار با کتابخانههای سرویس گیرنده، دانلود نمونههای کد از GitHub و اجرای یکی از فایلهای نمونه است. اگر با Content API تازه وارد هستید، حتماً راهنمای
شروع کار را نیز بررسی کنید. برای اطلاعات بیشتر درباره راهاندازی و استفاده از کتابخانههای سرویس گیرنده، به
کتابخانههای سرویس گیرنده Google API مراجعه کنید.
نمونه ها و کتابخانه ها برای Content API نسخه 2.1 (نسخه پایدار)
،
کتابخانه های سرویس گیرنده Google API روش توصیه شده برای استفاده از Content API است. کتابخانه های سرویس گیرنده نیاز به تنظیم دستی درخواست های HTTP و تجزیه پاسخ ها را از بین می برند. آنها همچنین یکپارچه سازی زبان، امنیت بهبود یافته و پشتیبانی از تماس هایی که نیاز به مجوز کاربر دارند را ارائه می دهند.
از کتابخانه های مشتری استفاده کنید
سادهترین راه برای شروع کار با کتابخانههای سرویس گیرنده، دانلود نمونههای کد از GitHub و اجرای یکی از فایلهای نمونه است. اگر با Content API تازه وارد هستید، حتماً راهنمای
شروع کار را نیز بررسی کنید. برای اطلاعات بیشتر درباره راهاندازی و استفاده از کتابخانههای سرویس گیرنده، به
کتابخانههای سرویس گیرنده Google API مراجعه کنید.
نمونه ها و کتابخانه ها برای Content API نسخه 2.1 (نسخه پایدار)
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eGoogle recommends using its API client libraries for interacting with the Content API, as they simplify the process and enhance security.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries streamline development by handling HTTP requests, responses, and user authorization, offering language integration as well.\u003c/p\u003e\n"],["\u003cp\u003eTo start, download code examples from GitHub and explore the "Get started" guide for the Content API, along with the client library documentation.\u003c/p\u003e\n"],["\u003cp\u003eClient library support is available for various programming languages, including Java, Python, .NET, PHP, Go, Ruby, JavaScript, Node.js, and Objective-C, with links to resources and code examples provided in the table.\u003c/p\u003e\n"]]],["Google API client libraries are the preferred method for using the Content API, providing automated HTTP request handling, response parsing, and enhanced security. To begin, download code examples from GitHub and try a sample file. Client libraries are available in Java, Python, .NET, PHP, Go, Ruby, JavaScript, Node.js, and Objective-C, with corresponding code examples and reference documentation. Check the Get started guide and Google API Client Libraries for more information.\n"],null,["# Samples and libraries\n\nThe Google API client libraries are the recommended way to use the Content API. The client libraries\neliminate the need to manually set up HTTP requests and parse the responses. They also provide\nlanguage integration, improved security, and support for calls that require user authorization.\n\nUse the client libraries\n------------------------\n\nThe easiest way to get started with the client libraries is to download the code examples from GitHub and run one of the sample files. If you are new to the Content API, be sure to also check out the [Get started](/shopping-content/guides/quickstart) guide. For additional information about setting up and using the client libraries, see [Google API Client Libraries](/api-client-library).\n\nSamples and libraries for Content API v2.1 (stable version)\n-----------------------------------------------------------\n\n| Client library | Code examples | Client library reference for Content API |\n|:-----------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------|---|\n| [Java](/api-client-library/java/apis/content/v2.1) | [View on GitHub](//github.com/googleads/googleads-shopping-samples/tree/HEAD/java) | [Reference docs](//googleapis.dev/java/google-api-services-content/latest/index.html) |\n| [Python](/api-client-library/python/apis/content/v2.1) | [View on GitHub](//github.com/googleads/googleads-shopping-samples/tree/HEAD/python) | [Reference docs](//googleapis.github.io/google-api-python-client/docs/dyn/content_v2_1.html) |\n| [.NET](//www.nuget.org/packages/Google.Apis.ShoppingContent.v2_1) | [View on GitHub](//github.com/googleads/googleads-shopping-samples/tree/HEAD/dotnet) | [Reference docs](//googleapis.dev/dotnet/Google.Apis.ShoppingContent.v2_1/latest/api/Google.Apis.ShoppingContent.v2_1.html) |\n| [PHP](/api-client-library/php) | [View on GitHub](//github.com/googleads/googleads-shopping-samples/tree/HEAD/php) | [Reference docs](//googleapis.github.io/google-api-php-client/main/) |\n| [Go](//github.com/google/google-api-go-client) | [View on GitHub](//github.com/googleads/googleads-shopping-samples/tree/HEAD/golang) | |\n| [Ruby](/api-client-library/ruby/apis/content/v2.1) | [View on GitHub](//github.com/googleads/googleads-shopping-samples/tree/HEAD/ruby) | |\n| [JavaScript](/api-client-library/javascript) | | | |\n| [Node.js](//github.com/googleapis/google-api-nodejs-client/tree/master/src/apis/content) | | |\n| [Objective-C](//github.com/google/google-api-objectivec-client-for-rest) | | |"]]