คลิกเรียกใช้เพื่อลองใช้ตัวอย่างในโปรแกรมสำรวจ API หลังจากคลิกเรียกใช้แล้ว ให้อัปเดตตัวยึดตําแหน่งรหัสผู้ขายเป็นรหัสผู้ขายของคุณเองใน URL คำขอ คุณสามารถแก้ไขการค้นหาได้ คําค้นหาแบบเต็มต้องอยู่ในบรรทัดเดียวจึงจะทํางานกับโปรแกรมสํารวจ API ได้
URL คำขอ HTTP
คําขอประกอบด้วย HTTP POST ไปยังเซิร์ฟเวอร์ Content API for Shopping ที่ URL ต่อไปนี้
ตัวอย่างที่สมบูรณ์ซึ่งแสดงคําจํากัดความของรายงานด้านบนซึ่งอยู่ภายในคําขอ HTTP POST มีดังนี้
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'"}
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-06-19 UTC"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["You can use the Merchant API to retrieve performance data, such as impressions, clicks, and CTR, segmented by program and offer ID."],["A sample query is provided to demonstrate how to retrieve performance data for the last 30 days using the `MerchantPerformanceView`."],["It's recommended to use one of the client libraries instead of directly making HTTP requests to the Content API for Shopping."]]],["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"]]