การรายงาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โปรดดูรายละเอียดทั้งหมดเกี่ยวกับความสามารถในการรายงานแคมเปญ Performance Max ในคู่มือ API การรายงานของ Performance Max
คุณสามารถเรียกใช้การค้นหาใดก็ได้ที่พบในหน้านั้น รวมถึงการค้นหาที่กำหนดเองที่คุณสร้างขึ้น โดยใช้ฟังก์ชัน
AdsApp.search()
เช่น หากต้องการเรียกใช้การค้นหาประสิทธิภาพของกลุ่มชิ้นงาน ให้ทำดังนี้
const searchResults = AdsApp.search(`
SELECT
asset_group.id,
asset_group.name,
asset_group.primary_status,
metrics.conversions,
metrics.conversions_value,
metrics.cost_micros,
metrics.clicks,
metrics.impressions
FROM asset_group
WHERE campaign.id = CAMPAIGN_ID
AND segments.date DURING LAST_7_DAYS
`);
while (searchResults.hasNext()) {
const row = searchResults.next();
const assetGroup = row.assetGroup;
// Your custom logic here, fetching the selected fields to do your analysis.
}
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-27 UTC
[null,null,["อัปเดตล่าสุด 2025-08-27 UTC"],[[["\u003cp\u003eAccess comprehensive Performance Max campaign data through the dedicated reporting API guide and the \u003ccode\u003eAdsApp.search()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eLeverage pre-built queries or craft custom ones to extract desired insights from your Performance Max campaigns.\u003c/p\u003e\n"],["\u003cp\u003eObtain crucial performance metrics like conversions, cost, clicks, and impressions at the asset group level using provided code samples.\u003c/p\u003e\n"]]],[],null,["# Reporting\n\nConsult the [Performance Max reporting API guide](/google-ads/api/performance-max/reporting)\nfor full details about the capabilities of reporting on Performance Max\ncampaigns. You can run any query found on that page, plus any custom query you\ncreate, using the\n[`AdsApp.search()`](/google-ads/scripts/docs/features/reports#search_example)\nfunction.\n\nFor example, to run the asset group performance query: \n\n const searchResults = AdsApp.search(`\n SELECT\n asset_group.id,\n asset_group.name,\n asset_group.primary_status,\n metrics.conversions,\n metrics.conversions_value,\n metrics.cost_micros,\n metrics.clicks,\n metrics.impressions\n FROM asset_group\n WHERE campaign.id = CAMPAIGN_ID\n AND segments.date DURING LAST_7_DAYS\n `);\n\n while (searchResults.hasNext()) {\n const row = searchResults.next();\n const assetGroup = row.assetGroup;\n // Your custom logic here, fetching the selected fields to do your analysis.\n }"]]