디맨드젠 캠페인의 보고 기능에 관한 자세한 내용은 디맨드젠 보고에 관한 Google Ads API 가이드를 참고하세요. 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.
}