คลิกเรียกใช้ เพื่อลองใช้ตัวอย่างใน API Explorer หลังจากคลิก
เรียกใช้ ให้อัปเดตรหัสผู้ขายที่เป็นตัวยึดตำแหน่งเป็นรหัสผู้ขายของคุณเองใน
URL ของคำขอ คุณสามารถแก้ไขคําค้นหาได้ คําค้นหาแบบเต็มต้องอยู่ในบรรทัดเดียวจึงจะใช้กับ API Explorer ได้
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"]],["อัปเดตล่าสุด 2026-07-06 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"]]