Google API 클라이언트 라이브러리를 사용하여 쇼핑용 Content API를 설정하는 것이 좋습니다. 이 가이드에서는 Python Content API 클라이언트 라이브러리를 예로 사용하지만, 이러한 라이브러리는 여러 인기 프로그래밍 언어에서 사용할 수 있으며 인증, 요청 전송, 응답 파싱과 같은 일반적인 API 작업을 간소화합니다. 다른 언어의 클라이언트 라이브러리를 설정하는 데 도움이 필요한 경우 GitHub의 googleads/googleads-shopping-samples 저장소에서 해당 언어의 README.md를 참고하세요.
Python용 Google API 클라이언트 라이브러리를 설정하려면 다음 단계를 완료하세요.
클라이언트 라이브러리의 구성 및 인증 파일을 위한 디렉터리를 만듭니다. 홈 디렉터리 내에 다음 디렉터리를 만듭니다.
페이지 상단의 메뉴에서 프로젝트를 선택합니다. 아직 프로젝트가 없는 경우 새 프로젝트를 클릭하여 만듭니다.
이 프로젝트에 아직 Content API for Shopping을 사용 설정하지 않았다면 Google API 목록에서 Content API for Shopping을 검색하여 사용 설정하세요.
왼쪽 사이드바에서 사용자 인증 정보를 선택합니다. 이를 보려면 왼쪽 상단의 왼쪽 화살표를 클릭해야 할 수 있습니다.
서비스 계정을 설정하려면 사용자 인증 정보 만들기를 선택한 다음 서비스 계정을 선택합니다.
새 서비스 계정의 이름을 지정합니다. 이는 서비스 계정 ID의 기본 사용자 이름으로도 사용됩니다. 나중에 사용할 수 있도록 '@' 문자 뒤의 부분을 포함하여 서비스 계정 ID를 기록합니다. 만들기를 클릭한 다음 프로젝트 및 사용자에 대한 액세스 권한을 부여하는 선택적 단계를 진행하고 완료를 클릭합니다.
새 서비스 계정에 액세스할 수 있는 서비스 계정 페이지로 이동합니다.
JSON 비공개 키를 가져오려면 서비스 계정을 클릭한 다음 키 탭을 클릭합니다. 키 추가 > 새 키 만들기를 클릭한 다음 키 유형으로 JSON을 선택합니다. 만들기를 클릭하여 비공개 키를 컴퓨터에 다운로드합니다.
새 키가 자동으로 다운로드됩니다.
다운로드한 사용자 인증 정보 파일의 이름을 service-account.json으로 바꿉니다.
service-account.json 파일을 home directory/shopping-samples/content/로 이동합니다.
home directory/shopping-samples/content/에서 빈 merchant-info.json 파일을 만듭니다.
merchant-info.json에 다음 텍스트를 추가합니다.
{"merchantId":yourMerchantCentermerchantID,"accountSampleUser":"the email address associated with your Merchant Center account"}
새 서비스 계정을 판매자 센터 계정에 사용자로 추가합니다. 서드 파티 개발자인 경우 고객이 이 단계를 대신 수행해야 합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-06-19(UTC)"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of product data integration."],["To use the Merchant API, you need to set up the Google API client libraries, which are available for various programming languages and simplify API interactions."],["Setup involves creating necessary directories, downloading service account credentials, configuring a `merchant-info.json` file, and adding the service account to your Merchant Center account."],["You'll need to clone the `googleads/googleads-shopping-samples` GitHub repo and install the required dependencies using `pip install -r requirements.txt`."]]],["The content details the setup for using the Google API client library with the new Merchant API beta, an evolution of the Content API for Shopping. Key steps include: creating directories for configuration and authentication files; downloading service account credentials (including generating a JSON private key); setting up `merchant-info.json` with Merchant Center ID and email; adding the service account as a Merchant Center user with Admin access; cloning or downloading the `googleads-shopping-samples` repository; and installing required Python dependencies via `pip`.\n"]]