Google Business Performance API에는 단일 API 요청으로 여러 'DailyMetrics'를 가져올 수 있는
새로운 API 메서드가 있습니다.
v4 reportInsights API 메서드에서 Google Business Profile Performance API로 이전하려면
지원 중단 일정 및 안내를 검토하세요.
계정 데이터 사용
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 가이드에서는 계정 데이터를 사용하는 방법을 보여줍니다. My Business Account Management API를 사용하면 다음과 작업을 처리할 수 있습니다.
- 모든 계정의 목록 생성
- 특정 계정 반환
- 계정 업데이트
시작하기 전에
My Business Account Management API를 사용하기 전에 애플리케이션을 등록하고 OAuth 2.0 사용자 인증 정보를 획득해야 합니다.
Business Profile API를 시작하는 방법에 관한 자세한 내용은 기본 설정을 참고하세요.
모든 계정의 목록 생성
인증된 사용자와 연결된 계정의 유효성을 검사하는 좋은 방법은 모든 계정의 목록을
생성하는 것입니다. accounts.list
API를 사용하여
사용자와 연결된 모든 계정의 목록을 생성합니다.
인증된 사용자의 모든 계정을 목록으로 생성하려면 다음 코드를 사용합니다.
$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts
특정 계정 반환
인증된 사용자의 특정 계정에 관한 정보만 확인하고자 하는 경우가 있습니다. accounts.get
API를 사용하여
특정 계정을 반환하고 추가 계정 세부정보를 검토합니다.
이름으로 특정 계정을 반환하려면 다음 코드를 사용합니다.
$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}
계정 업데이트
계정 이름 변경은 기본적인 관리 작업입니다. accounts.update
API를 사용하여 계정 이름을
변경합니다.
이름으로 특정 계정을 업데이트하려면 다음 코드를 사용합니다.
$ PUT https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}
{
"account": {
"accountName": "Anne Droyd"
},
"languageCode": "en",
"validateOnly": "true"
}
제한사항
- 계정에서 수정할 수 있는 유일한 필드는
accountName
입니다. 전달된 다른
필드는 무시됩니다.
BUSINESS
유형의 계정만 이러한 방식으로 업데이트할 수 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-28(UTC)
[[["이해하기 쉬움","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"]],["최종 업데이트: 2024-11-28(UTC)"],[[["The My Business Account Management API allows you to manage business accounts, including listing all accounts, retrieving specific account details, and updating account names."],["Before using the API, you must register your application and obtain OAuth 2.0 credentials as outlined in the basic setup guide."],["You can retrieve a list of all accounts associated with an authenticated user or fetch details for a specific account using dedicated API endpoints."],["Updating an account is restricted to changing the account name for business type accounts only, with other fields being ignored."]]],[]]