판매자 계정과의 관계를 표시하려면 쇼핑 파트너가 먼저 accounts.link
메서드를 사용하여 연결 요청을 보내야 합니다.
연결 요청에는 요청을 수신하는 판매자를 식별하고 request
유형의 action
이 있는 linkedAccountId
이 포함됩니다. 각 링크는 파트너가 판매자에게 제공하는 기능을 열거하는 services
집합도 지정해야 합니다. 다음 services
값이 지원됩니다.
서비스 | 설명 |
---|---|
shoppingAdsProductManagement |
쇼핑 광고 제품 데이터 관리 |
shoppingActionsProductManagement |
'Google에서 구매'(이전 명칭: Shopping Actions) 제품 데이터 관리 |
shoppingActionsOrderManagement |
'Google에서 구매'(이전 명칭: Shopping Actions) 주문 관리 |
또한 요청에는 요청을 보내는 쇼핑 파트너의 유형을 설명하는 유효한 linkType
도 포함되어야 합니다. 쇼핑 파트너에게 다음 라벨 중 하나가 할당되며 API를 호출할 때 linkType
필드에 지정된 라벨을 사용해야 합니다.
유효한 linkTypes |
---|
channelPartner |
eCommercePlatform |
예
다음 API 호출은 파트너 계정 123456789
에서 "98765"
의 linkedAccountId
을 보유한 판매자에게 연결 요청을 전송합니다.
"eCommercePlatform"
linkType
는 파트너를 전자상거래 플랫폼으로 식별합니다. services
목록은 파트너가 "shoppingAdsProductManagement"
(쇼핑 광고용 제품 데이터 관리) 및 "shoppingActionsOrderManagement"
('Google에서 구매' 주문 관리, 이전 명칭은 Shopping Actions) 기능을 제공함을 나타냅니다.
POST https://shoppingcontent.googleapis.com/content/v2.1/123456789/accounts/123456789/link
{
"linkedAccountId": "98765",
"linkType": "eCommercePlatform",
"services": ["shoppingAdsProductManagement", "shoppingActionsOrderManagement"],
"action": "request"
}
다음 섹션에서는 기존 링크 목록을 가져오는 방법을 설명합니다.