Content API for Shopping'den raporları taşıma

Merchant Reports API'yi mevcut Content API for Shopping uygulamanızla nasıl entegre edeceğiniz aşağıda açıklanmıştır.

İstekler

Merchant Reports API için aşağıdaki istek URL'si biçimini kullanın:

POST https://merchantapi.googleapis.com/reports/v1beta/{parent}/reports:search

Aşağıda, search istekleri için Content API for Shopping ile Merchant Reports API'nin örnek bir karşılaştırmasını görebilirsiniz:

Content API Satıcı API'sı
URL https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/reports/search https://merchantapi.googleapis.com/reports/v1beta/{parent}/reports:search
Tanımlayıcılar {merchantId} {parent}

Yöntemler

ReportService.Search yöntemini çağırarak Merchant Reports API'yi sorgulayabilirsiniz.

Görüntüleme sayısı

Merchant API'de CammelCase olan tablo adları snake_case olarak değiştirilir.

MerchantPerformanceView artık product_performance_view.

Aşağıda, Content API for Shopping ve Merchant API'deki tablo adları arasındaki eşleme verilmiştir:

Content API Satıcı API'sı
MerchantPerformanceView product_performance_view
ProductView product_view
PriceCompetitivenesProductView price_competitiveness_product_view
PriceInsightsProductView price_insights_product_view
BestSellersBrandView best_sellers_brand_view
BestSellersProductClusterView best_sellers_product_cluster_view
CompetitiveVisibilityCompetitorView competitive_visibility_competitor_view
CompetitiveVisibilityTopMerchantView competitive_visibility_top_merchant_view
CompetitiveVisibilityBenchmarkView competitive_visibility_benchmark_view

Merchant API'de bir alan öneki (örneğin, segments.offer_id) belirtmek artık gerekli değildir. Bunun yerine, yalnızca offer_id alan adını kullanın.

Aşağıda, Content API for Shopping ve Merchant API'deki sorguların örnek bir karşılaştırması verilmiştir:

Content API Satıcı API'sı
   SELECT
     segments.offer_id,
     metrics.clicks
   FROM MerchantPerformanceView
   WHERE segments.date DURING LAST_7_DAYS
   
   SELECT
     offer_id,
     clicks
   FROM product_performance_view
   WHERE date DURING LAST_7_DAYS
   

Aşağıda örnek bir yanıt verilmiştir:

Content API Satıcı API'sı
{
  "segments":{
    "offerId":"abc"
  },
  "metrics":{
    "clicks":"123"
  }
}
{
  "productPerformanceView" : {
    "offerId": "abc",
    "clicks": "123"
  }
}

Tablo adı, alan öneki olarak kullanılabilir. Örneğin, Merchant API sorgusunda hem offer_id hem de product_performance_view.offer_id kabul edilir.

Performans

Merchant Reports API'deki performans görünümünde yapılan değişiklikler şunlardır:

Content API Satıcı API'sı Açıklama
segments.program: dize marketing_method: dize program segmentinin yerini yeni bir marketing_method alanı aldı. Ayrıntılar için Yeni marketing method değerlerini inceleyin.
metrics.ctr: çift clickThroughRate: çift ctr metrik, clickThroughRate olarak yeniden adlandırıldı
metrics.conversionValueMicros: tam sayı
segments.currencyCode: dize
conversionValue: {
object (Price)
}
Tutar mikroları ve para birimi alanları, Price türünde tek bir alanda birleştirilir
metrics.orders,
metrics.orderedItems,
Desteklenmiyor Google ile Satın Al metrikleri Merchant Reports API'de desteklenmez

Yeni pazarlama yöntemi değerleri

segments.program ile marketing_method değerleri arasındaki eşleme şöyledir:

Content API Satıcı API'sı
SHOPPING_ADS ADS
FREE_PRODUCT_LISTING ORGANIC
FREE_LOCAL_PRODUCT_LISTING ORGANIC
BUY_ON_GOOGLE_LISTING Desteklenmiyor

Ürün

Merchant Reports API'deki ürün görünümünde yapılan değişiklikler şunlardır:

Content API Satıcı API'sı Açıklama
productView.id: dize id: dize channel:language:targetCountry:offerId olan alan biçimi
channel~language~feedLabel~offerId olarak değiştirildi
productView.priceMicros: tam sayı
productView.currencyCode: dize
price: {
object (Price)
}
Tutar mikroları ve para birimi alanları, Price türünde tek bir alanda birleştirilir
productView.aggregated_destination_status: dize aggregated_reporting_context_status: dize aggregated_destination_status alanı, aggregated_reporting_context_status olarak yeniden adlandırıldı, değerler değişmedi
productView.item_issues: [
{
object (ItemIssue)
}
]
item_issues: [
{
object (ItemIssue)
}
]
ItemIssue tanımı değişti
Desteklenmiyor feedLabel: dize feedLabel alanı kullanıma sunuldu

Fiyat Analizleri

Merchant Reports API'deki fiyat analizleri görünümünde yapılan değişiklikler şunlardır:

Content API Satıcı API'sı Açıklama
productView.id: dize id: dize channel:language:targetCountry:offerId olan alan biçimi channel~language~feedLabel~offerId olarak değiştirildi
productView.priceMicros: tam sayı
productView.currencyCode: dize
price: {
object (Price)
}
Tutar mikroları ve para birimi alanları, Price türünde tek bir alanda birleştirilir
priceInsights.suggestedPriceMicros: tam sayı
priceInsights.suggestedPriceCurrencyCode: dize
suggestedPrice: {
object (Price)
}
Tutar mikroları ve para birimi alanları, Price türünde tek bir alanda birleştirilir
priceInsights.predictedGrossProfitChangeFraction: çift
priceInsights.predictedMonthlyGrossProfitChangeMicros: tam sayı
priceInsights.predictedMonthlyGrossProfitChangeCurrencyCode: dize
Desteklenmiyor Brüt kâr değişikliğiyle ilgili alanlar Merchant Reports API'de desteklenmez

Fiyat Rekabetçiliği

Merchant Reports API'deki fiyat rekabetçiliği görünümünde yapılan değişiklikler şunlardır:

Content API Satıcı API'sı Açıklama
productView.id: dize id: dize channel:language:targetCountry:offerId olan alan biçimi channel~language~feedLabel~offerId olarak değiştirildi
productView.priceMicros: tam sayı
productView.currencyCode: dize
price: {
object (Price)
}
Tutar mikroları ve para birimi alanları, Price türünde tek bir alanda birleştirilir
priceCompetitiveness.countryCode: dize reportCountryCode: dize countryCode alanının adı, reportCountryCode olarak değiştirildi
priceCompetitiveness.benchmarkPriceMicros: tam sayı
priceCompetitiveness.benchmarkPriceCurrencyCode: dize
benchmarkPrice: {
object (Price)
}
Tutar mikroları ve para birimi alanları, Price türünde tek bir alanda birleştirilir

Çok satanlar

Merchant Reports API'de çok satanlar görünümleriyle ilgili olarak yapılan değişiklikler şunlardır:

Content API Satıcı API'sı Açıklama
bestSellers.countryCode: dize reportCountryCode: dize countryCode alanının adı, reportCountryCode olarak değiştirildi
bestSellers.categoryId: int reportCategoryId: int categoryId alanının adı, reportCategoryId olarak değiştirildi

Görünürlük rekabeti

Merchant Reports API'deki görünürlük rekabeti görünümleriyle ilgili olarak yapılan değişiklikler şunlardır:

Content API Satıcı API'sı Açıklama
competitiveVisibility.countryCode: dize reportCountryCode: dize countryCode alanının adı, reportCountryCode olarak değiştirildi
competitiveVisibility.categoryId: tam sayı reportCategoryId: tam sayı categoryId alanının adı, reportCategoryId olarak değiştirildi