데이터 소스를 사용하면 Google에 제품을 업로드할 수 있습니다. 자동화된 데이터 소스를 사용하면 제품 데이터를 Google에 더 쉽게 전송할 수 있습니다. 자세한 내용은 판매자 데이터 소스 API 개요를 참고하세요.
다음은 Content API for Shopping의 요청과 판매자 데이터 소스 API의 요청을 비교한 샘플입니다.
Content API for Shopping | 판매자 데이터 소스 API | |
---|---|---|
URL | https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds | https://merchantapi.googleapis.com/datasources/v1beta/{parent}/dataSources |
식별자 | {id} | {name} |
방법
다음은 Content API for Shopping과 판매자 데이터 소스 API의 데이터 피드 메서드를 비교한 것입니다.
메서드 | Content API for Shopping | 판매자 데이터 소스 API |
---|---|---|
customBatch |
예 | 아니요 |
insert |
예 | 예 |
get |
예 | 예 |
update |
예 | 예 |
delete |
예 | 예 |
list |
예 | 예 |
fetchNow |
예 | 예 |
식별자
다른 리소스와 달리 데이터 소스의 이름은 ID 값이 변경되므로 Content API ID에서 생성할 수 없습니다. list 메서드를 호출하여 데이터 소스의 새 ID를 가져올 수 있습니다.
또는 accounts.products.get
메서드를 호출하고 product
리소스에서 새 데이터 소스 ID를 가져올 수 있습니다.
방법
판매자 데이터 소스 API의 데이터 피드에 대한 변경사항은 다음과 같습니다.
메서드 | Content API for Shopping의 URL | 판매자 데이터 소스 API의 URL | Content API for Shopping의 식별자 | 판매자 데이터 소스 API의 식별자 | 설명 |
---|---|---|---|---|---|
create |
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds |
POST https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources |
{merchantId} | {parent} |
Content API for Shopping의 유일한 create 시나리오는 기본 파일 피드 만들기입니다. 다른 모든 create 시나리오가 판매자 데이터 소스 API에 새로 도입되었습니다.
|
update |
PUT https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId} |
PATCH https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*} |
{merchantId}/datafeeds/ {datafeedId} |
{dataSource.name=accounts/*/dataSources/*} |
|
delete |
DELETE https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/datafeeds/ {datafeedId} |
DELETE https://merchantapi.googleapis.com/datasources/v1beta/ {name=accounts/*/dataSources/*} |
{merchantId}/datafeeds/{datafeedId} | {name=accounts/*/dataSources/*} | |
get |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/datafeeds/ {datafeedId} |
GET https://merchantapi.googleapis.com/datasources/v1beta/ {name=accounts/*/dataSources/*} |
{merchantId}/datafeeds/ {datafeedId} |
{name=accounts/*/dataSources/*} | |
list |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/datafeeds |
GET https://merchantapi.googleapis.com/datasources/v1beta/ {parent=accounts/*}/dataSources |
{merchantId} | {parent} | |
fetchnow |
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow | POST https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*}:fetch | {merchantId}/datafeeds/{datafeedId} | {name=accounts/*/dataSources/*} |