Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Sipariş sonuçları
ORDER BY ifadesini kullanarak yanıtınızda satır sırasını belirtebilirsiniz.
aşağıdakilerden oluşan bir veya daha fazla virgülle ayrılmış diziden oluşur:
FieldName ('ASC' | 'DESC')?
Alan adından sonra ASC veya DESC belirtmezseniz Reporting API
varsayılan olarak ASC değerine ayarlanır.
Aşağıdaki ORDER BY ifadesi, performans raporunu azalan düzende sıralar
gösterim sayısı ve artan ürün teklif kimlikleri:
ORDER BY metrics.impressions DESC, segments.offer_id ASC
Seçili olmayan metriklerde veya seçili olmayan segmentlerde ORDER BY kullanımına izin verilmez.
Sonuç sayısını sınırlandırın
LIMIT ifadesini kullanarak döndürülen toplam sonuç sayısını sınırlandırabilirsiniz.
Bunu sonuç sıralamasıyla birleştirerek, "ilk N"yi elde edebilirsiniz rapor gibi
son üç ay içinde en yüksek gösterime sahip beş ürünü içeren rapor
30 gün:
Örnek
SELECT
segments.offer_id,
metrics.impressions
FROM MerchantPerformanceView
WHERE segments.date BETWEEN '2020-12-01' AND '2020-12-31'
ORDER BY metrics.impressions DESC
LIMIT 5;
Metriklerde, seçilmeden filtrelemeye (WHERE ifadesi) izin verilmez.
[[["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: 2024-09-20 UTC."],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of product data integration."],["You can order results with the `ORDER BY` clause using fields and `ASC` or `DESC` for ascending or descending order respectively."],["The `LIMIT` clause enables you to specify the maximum number of returned results and can be combined with `ORDER BY` to generate \"top N\" reports."],["While a query's maximum result limit is 1000 rows, pagination with `pageToken` is necessary for retrieving additional results beyond this limit."],["Filtering using the `WHERE` clause on metrics necessitates their selection in the query."]]],["The Merchant API beta, a new version of the Content API for Shopping, is introduced. You can order response rows using the `ORDER BY` clause with `ASC` or `DESC` order for selected fields. The `LIMIT` clause restricts the total results, enabling \"top N\" reports. `ORDER BY` is limited to selected fields, and filtering (`WHERE`) is not available for metrics that aren't selected. The maximum number of rows returned is 1000, requiring pagination for more results.\n"]]