클라이언트 라이브러리
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
여러 다양한 클라이언트 라이브러리 중에서 선택할 수 있습니다. 자세한 내용은 클라이언트 라이브러리 설명을 참조하세요.
Cloud 클라이언트 라이브러리
클라이언트 라이브러리를 사용하는 것이 좋습니다. 클라이언트 라이브러리가 향상된 보안 및 언어 통합을 제공하고 사용자 승인을 지원하기 때문입니다. CSS API 클라이언트 라이브러리는 gRPC를 사용하며 동일한 언어의 코드 샘플과 함께 작동하도록 설계되었습니다.
다음은 최신 클라이언트 라이브러리와 코드 샘플입니다.
클라이언트 라이브러리를 설정하려면 코드 샘플 중 하나를 다운로드하여 실행합니다.
Google API 클라이언트 라이브러리
Google API 클라이언트 라이브러리를 통해 CSS API에 액세스할 수도 있습니다.
이렇게 하면 REST 인터페이스에 직접 연결할 수 있습니다.
Cloud 클라이언트 라이브러리 대비 장점
- Java, Python, PHP, .NET, JavaScript, Objective-C, Dart, Ruby, Node.js, Go 등의 추가 언어 지원
- 일괄 처리 지원: 자세한 내용은 클라이언트 라이브러리별 문서(예: Python, 자바)를 참조하세요. 하지만 대부분의 Cloud 클라이언트 라이브러리는 일괄 처리를 불필요하게 하는 언어별 최적화를 구현합니다 (go에 대한 설명은 문제 675 참조).
- 대부분의 프로그래밍 언어의 기본 패키지 디렉터리에서 사용할 수 있습니다.
Cloud 클라이언트 라이브러리의 단점
샘플 코드
Google API 클라이언트용 샘플 코드를 사용할 수 있습니다.
클라이언트 라이브러리 없음
클라이언트 라이브러리 없이 프로그래밍 언어의 HTTP 기능을 사용하여 CSS API에 직접 연결할 수도 있습니다. REST API 참조 확인하기
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eThe Content API for Shopping provides client libraries for easier integration and enhanced security.\u003c/p\u003e\n"],["\u003cp\u003eCloud Client Libraries in Java, PHP, Go, Ruby, .NET, Python, and Node.js are available with corresponding code samples where applicable.\u003c/p\u003e\n"],["\u003cp\u003eGoogle API Client Libraries offer broader language support and batching capabilities but require manual call and data type management.\u003c/p\u003e\n"],["\u003cp\u003eDirect HTTP connection to the REST API is possible without a client library, offering maximum flexibility.\u003c/p\u003e\n"]]],[],null,["# Client libraries\n\nYou have the choice between multiple different client libraries. See also\n[Client libraries explained](https://cloud.google.com/apis/docs/client-libraries-explained)\nfor more details.\n\nCloud Client Libraries\n----------------------\n\nWe recommend using a client library, because they provide improved security and\nlanguage integration, and support user authorization. The CSS API client\nlibraries use gRPC and are designed to work with our [code\nsamples](/comparison-shopping-services/api/code-samples) in the same language.\n\nHere are our most recent client libraries and code samples:\n\n| Client libraries | Code samples |\n|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| [Java](https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css) | [Java](//github.com/googleads/comparison-shopping-service-api-samples/tree/main/java) |\n| [PHP](https://packagist.org/packages/google/shopping-css) | |\n| [Go](https://cloud.google.com/go/docs/reference/cloud.google.com/go/shopping/latest/css/apiv1/) | |\n| [Ruby](https://rubygems.org/gems/google-shopping-css-v1/) | |\n| [.NET](https://www.nuget.org/packages/Google.Shopping.Css.V1/) | |\n| [Python](https://pypi.org/project/google-shopping-css/) | |\n| [Node.js](https://www.npmjs.com/package/@google-shopping/css) | |\n\nTo set up a client library, download and run one of our code samples.\n\nGoogle API Client Libraries\n---------------------------\n\nYou can also access the CSS API through the [Google API Client\nLibraries](https://developers.google.com/api-client-library/).\nThis lets you to connect to the\n[REST](/comparison-shopping-services/api/reference/rest) interface directly.\n\n### Advantages over the Cloud Client Libraries\n\n- Supports additional languages: Java, Python, PHP, .NET, JavaScript, Objective-C, Dart, Ruby, Node.js, Go\n- Supports batching: see the client library specific documentation for details (examples: [Python](https://github.com/googleapis/google-api-python-client/blob/main/docs/batch.md \"Batching in Python\"), [Java](https://googleapis.github.io/google-api-java-client/batching.html \"Batching in Java\")). That said, most of the Cloud Client libraries implement language specific optimizations that make batching unnecessary (example explanation for go is in [issue\n 675](https://github.com/googleapis/google-cloud-go/issues/675)).\n- Available in the default package directories of most programming languages.\n\n### Disadvantages over the Cloud Client Libraries\n\n- Need to manage calls and data types yourself\n\n### Sample Code\n\nWe have [Sample code for Google API\nclients](/comparison-shopping-services/api/code-samples/gapi) available.\n\nNo client library\n-----------------\n\nYou can also connect to the CSS API without any client library, using the HTTP\ncapabilities of your programming language directly. Refer to the\n[REST API](/comparison-shopping-services/api/reference/rest) reference."]]