Veri kaynakları yönetimini taşı

Veri kaynakları, ürünlerinizi Google'a yüklemenize olanak tanır. Otomatik veri kaynakları, ürün verilerinizin Google'a gönderilmesini kolaylaştırır. Daha fazla bilgi için Satıcı Veri Kaynakları API'sine genel bakış bölümüne bakın.

Content API for Shopping'deki isteklerin Merchant Data sources API ile karşılaştırılması aşağıda verilmiştir:

Content API for Shopping Satıcı Veri kaynakları API'si
URL https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds https://merchantapi.googleapis.com/datasources/v1beta/{parent}/dataSources
Tanımlayıcılar {id} {name}

Yöntemler

Aşağıda, Content API for Shopping ve Merchant Data resources API'deki veri feed'i yöntemlerinin bir karşılaştırması verilmiştir:

Yöntem Content API for Shopping Satıcı Veri kaynakları API'si
customBatch Evet Hayır
insert Evet Evet
get Evet Evet
update Evet Evet
delete Evet Evet
list Evet Evet
fetchNow Evet Evet

Tanımlayıcılar

Diğer kaynakların aksine, ID değerleri değiştiği için veri kaynağının adı Content API kimliğinden oluşturulamaz. Veri Kaynaklarının yeni kimliklerini almak için liste yöntemini çağırabilirsiniz.

Alternatif olarak accounts.products.get yöntemini çağırabilir ve product kaynağından yeni Veri Kaynağı Kimliğini alabilirsiniz.

Yöntemler

Merchant Data resources API'deki veri feed'leriyle ilgili olarak yapılan değişiklikler aşağıda belirtilmiştir:

Yöntem Content API for Shopping'deki URL Merchant Data resources API'deki URL Content API for Shopping'deki Tanımlayıcı Merchant Data resources API'deki tanımlayıcı Açıklama
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'de tek create senaryosu, birincil dosya feed'inin oluşturulmasıdır. Diğer tüm create senaryoları Merchant Data resources API'de kısa süre önce kullanıma sunuldu.
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}/verifeedleri/{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}/verifeedleri/{datafeedId} {name=accounts/*/dataSources/*}