Reporting
Stay organized with collections
Save and categorize content based on your preferences.
Consult the Google Ads API guide on reporting for full
details about the reporting capabilities for Search campaigns. You can run
queries using the
AdsApp.search()
function.
For example, to run a campaign level reporting query for Search campaigns:
const searchResults = AdsApp.search(`
SELECT
campaign.id,
campaign.name,
campaign.status,
campaign.bidding_strategy_type,
metrics.impressions,
metrics.clicks,
metrics.cost_micros
FROM campaign
WHERE campaign.advertising_channel_type = SEARCH
AND segments.date DURING LAST_7_DAYS
`);
while (searchResults.hasNext()) {
const row = searchResults.next();
const campaign = row.campaign;
// Your custom logic here, fetching the selected fields to do your analysis.
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-06 UTC."],[],[]]