Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Aşağıda, MerchantPerformanceView için örnek bir sorgu verilmiştir. Bu sorgu, hesabınızın son 30 gündeki performansını program ve offer_id'ye göre segmentlere ayırarak döndürür. Reports hizmetini tanımak için bu kısa örneği deneyebilirsiniz.
Örneği API Gezgini'nde denemek için Çalıştır'ı tıklayın. Çalıştır'ı tıkladıktan sonra, istek URL'sindeki satıcı kimliği yer tutucusunu kendi satıcı kimliğinizle güncelleyin. Sorguyu değiştirebilirsiniz. Tam sorgu, API Gezgini ile çalışmak için tek bir satırda kalmalıdır.
HTTP isteği URL'si
İstek, aşağıdaki URL'deki Content API for Shopping sunucusuna yönelik bir HTTP POST'tan oluşur:
Aşağıda, yukarıdaki rapor tanımının bir HTTP POST isteği içinde yer aldığı eksiksiz bir örnek verilmiştir:
POST/v2.1/merchantId/reports/searchHTTP/1.1Host:shoppingcontent.googleapis.comUser-Agent:curlContent-Type:application/jsonAccept:application/jsonAuthorization:Bearer access tokenParameters:{"query":"SELECT segments.program, segments.offer_id, metrics.impressions, metrics.clicks, metrics.ctr FROM MerchantPerformanceView WHERE segments.date BETWEEN '2020-11-01' AND '2020-11-30'"}
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-08-13 UTC."],[],["The beta version of the Merchant API, the new Content API for Shopping, is introduced. To use the `Reports` service, users with the Reporting manager role can query the `MerchantPerformanceView` for account performance. A sample query using Merchant Center Query Language is provided to retrieve data on `program`, `offer_id`, `impressions`, `clicks`, and `ctr` between '2020-11-01' and '2020-11-30'. Users can run the sample via the API Explorer, updating the merchant ID and modifying the query.\n"],null,[]]