Reporting
Stay organized with collections
Save and categorize content based on your preferences.
Consult the Performance Max reporting API
guide for full details about the
capabilities of reporting on Performance Max campaigns. You can run any query
found on that page, plus any custom query you create, using the
AdsApp.search()
function.
For example, to run the asset group performance query:
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.
}
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 2025-01-28 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 2025-01-28 UTC."],[[["Access comprehensive Performance Max campaign data through the dedicated reporting API guide and the `AdsApp.search()` function."],["Leverage pre-built queries or craft custom ones to extract desired insights from your Performance Max campaigns."],["Obtain crucial performance metrics like conversions, cost, clicks, and impressions at the asset group level using provided code samples."]]],[]]