주의: 이 API의 REST 인터페이스에 대한 문서를 보고 있습니다. 대부분의 공식 클라이언트 라이브러리는 gRPC를 사용합니다. 자세한 내용은
REST 소개를 참조하세요.
서비스 메서드
Google Ads API의 설계는 기존의 list
, get
, create
, update
, delete
메서드 대신 주로 search
및 mutate,
와 같은 맞춤 메서드를 사용하기 때문에 기존 REST 아키텍처와 다릅니다.
이러한 작업은 :
의 HTTP 매핑 규칙을 사용하여 맞춤 동사를 나머지 URL과 구분하여 REST URL로 표현됩니다.
예를 들어 캠페인 수정 API 호출은 다음 URL을 사용합니다.
https://googleads.googleapis.com/v19/customers/1234567890/campaigns:mutate
API에서 맞춤 메서드를 사용하는 한 가지 이유는 여러 작업을 단일 API 요청으로 일괄 처리할 수 있도록 하기 위해서입니다. 엄격한 REST 시맨틱스는 한 번에 하나의 캠페인만 업데이트할 수 있습니다. 예를 들어 캠페인에 대한 기존 REST update
을 사용하려면 캠페인 리소스당 하나의 HTTP PATCH 요청을 전송해야 합니다.
Google Ads API는 여러 작업을 단일 요청 본문 내에 번들로 묶을 수 있도록 대신 대부분의 리소스에 맞춤 mutate
메서드를 정의합니다.
마찬가지로 API에서 일괄 읽기 (한 번에 여러 객체 가져오기)를 사용 설정하기 위해 API는 SQL과 유사한 Google Ads 쿼리 언어를 사용하는 맞춤 search
메서드를 사용합니다.
일반 메서드 페이지에서는 Google Ads API에서 가장 자주 사용되는 메서드에 대해 자세히 설명합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-04(UTC)
[null,null,["최종 업데이트: 2025-03-04(UTC)"],[[["The Google Ads API utilizes custom methods like `search` and `mutate` instead of standard REST methods for efficiency and batch operations."],["This approach allows for updating multiple campaigns or fetching numerous objects within a single request, unlike traditional REST."],["Custom methods are expressed in REST URLs using a colon to separate the verb from the rest of the URL, for example, `https://googleads.googleapis.com/v18/customers/1234567890/campaigns:mutate`."],["Batching operations, like updating many campaigns simultaneously, are enabled through the custom `mutate` method, improving efficiency over individual requests."],["The `search` method uses a SQL-like query language for batch reads, enabling retrieval of multiple objects in one API call."]]],["The Google Ads API uses custom methods like `search` and `mutate` instead of standard REST methods (e.g., `list`, `get`). This is indicated in URLs by a `:` separator. `Mutate` enables batching multiple operations into one request, unlike standard `update`, which handles one campaign at a time. Similarly, `search` allows fetching multiple objects in a single request, utilizing a SQL-like query language. This deviates from REST conventions to facilitate efficient batch processing and querying.\n"]]