โปรดดู
คู่มือ Google Ads API เกี่ยวกับการรายงาน Demand Gen เพื่อดูรายละเอียดทั้งหมด
เกี่ยวกับความสามารถในการรายงานของแคมเปญ Demand Gen คุณสามารถเรียกใช้คําค้นหาใดก็ได้ที่พบในหน้านั้น รวมถึงคําค้นหาที่กําหนดเองที่คุณสร้างขึ้น โดยใช้AdsApp.search()ฟังก์ชัน
ตัวอย่างเช่น หากต้องการเรียกใช้คําค้นหาการรายงานระดับแคมเปญ ให้ทำดังนี้
const searchResults = AdsApp.search(`
SELECT
campaign.id,
campaign.status,
campaign.bidding_strategy_type
FROM campaign
WHERE campaign.advertising_channel_type = DEMAND_GEN
`);
while (searchResults.hasNext()) {
const row = searchResults.next();
const campaign = row.campaign;
// Your custom logic here, fetching the selected fields to do your analysis.
}